How to reset the counter on a Wave Player module?

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

Moderators: electrogear, exonerate

How to reset the counter on a Wave Player module?

Postby distante on Sun Apr 15, 2012 9:01 pm

I was checking the Wave Player module but I can't find where (or how) can I "reset" the counter in the player so I can "rewind" the music playing there.

I already have a play/pause button made some modification to the example that Mo show me here mixing it with the example of ChrisHooker about how to change a label here

I want to add a "stop" button (that already have) but don't know where to go back in the wave player...

Cheers!

Pd: Related question. It's the waveplayer the best way to reproduce a file?, considering CPU load and stuff...
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 reset the counter on a Wave Player module?

Postby Mo on Sun Apr 15, 2012 10:01 pm

To make start/stop, connect a switch to the retrigger input of the counter:

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

Re: How to reset the counter on a Wave Player module?

Postby distante on Sun Apr 15, 2012 10:21 pm

Thanks again Mo!

I will try to add that in my schematic.

About the second question, Is the wave player the best way to play audio? because it seems to charge a lot of cpu sometimes
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 reset the counter on a Wave Player module?

Postby Mo on Sun Apr 15, 2012 11:00 pm

distante wrote:Is the wave player the best way to play audio? because it seems to charge a lot of cpu sometimes

The stock wave player can change pitch, make precise looping and pause/stop functions. If you don't need all functions it can be optimized to not include some of those functions.

If you only need a very basic wave player, it can be done very simple using the Wave File primitive:

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

Re: How to reset the counter on a Wave Player module?

Postby distante on Sun Apr 15, 2012 11:09 pm

Thanks MO, I will take a look to your osm,

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


Return to Help

Who is online

Users browsing this forum: No registered users and 0 guests