How to have Play(not autoplay), pause in Wave Player module

If you require help or assistance with anything then please post here

Moderators: electrogear, exonerate

How to have Play(not autoplay), pause in Wave Player module

Postby distante on Sat Apr 14, 2012 1:03 am

Hello!

I'm trying to make a wave player with Play and Pause button but I can't figure out how to do this since the WaveFile module only have the option "load" and "Del.

Any tip of how SM manage the player?

This is my (very poor) initial schematic:
test.osm
(139.43 KiB) Downloaded 47 times


Cheers!
Sorry If I don't make myself clear sometimes, my English sucks!
User avatar
distante
essemist
 
Posts: 138
Joined: Thu Mar 15, 2012 4:22 pm

Re: How to have Play(not autoplay), pause in Wave Player module

Postby Mo on Sun Apr 15, 2012 8:51 am

Hi,

Here's the wave player with a simple pause button and also redraw on delete:

PauseTest.osm
(141.76 KiB) Downloaded 61 times
User avatar
Mo
essemilian
 
Posts: 439
Joined: Thu Jan 24, 2008 2:00 pm
Location: Copenhagen

Re: How to have Play(not autoplay), pause in Wave Player module

Postby distante on Sun Apr 15, 2012 2:54 pm

Thanks mo! that works perfect.

Can you give me a little explain of the logic that you use please? I want to understand that. :)

Cheers!
Sorry If I don't make myself clear sometimes, my English sucks!
User avatar
distante
essemist
 
Posts: 138
Joined: Thu Mar 15, 2012 4:22 pm

Re: How to have Play(not autoplay), pause in Wave Player module

Postby Mo on Sun Apr 15, 2012 6:57 pm

distante wrote:Can you give me a little explain of the logic that you use please? I want to understand that.

The counter inside the wave player can be stopped by set steps to 0, so steps is multiplied with a switch 0-1 to make the pause button.
User avatar
Mo
essemilian
 
Posts: 439
Joined: Thu Jan 24, 2008 2:00 pm
Location: Copenhagen

Re: How to have Play(not autoplay), pause in Wave Player module

Postby distante on Sun Apr 15, 2012 7:15 pm

I see, great !!!

Thanks you Mo
Sorry If I don't make myself clear sometimes, my English sucks!
User avatar
distante
essemist
 
Posts: 138
Joined: Thu Mar 15, 2012 4:22 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 1 guest

cron