Shop OBEX P1 Docs P2 Docs Learn Events
vinculum vmusic2 — Parallax Forums

vinculum vmusic2

frosliefroslie Posts: 67
edited 2008-04-24 02:16 in BASIC Stamp
I need help!

I am using the Vinculum Vmusic2 with the BS2:

I have been spending some time going through the posts on this forum, but seem to be having trouble getting the most basic operation to work -- play and stop with a button. My connection are correct and it works, but not as it seems it should.

I can stop a file from playing by sending this:

SEROUT 1, 84, [noparse][[/noparse]$20, $0D] '

the player will clatter a bit an then stop, which is good.

But playing is difficult. I simply want to play the file when a button is active and then stop when it is not. It seems that I need to send this to start a file:

SEROUT 1,84,[noparse][[/noparse]$1D,$20,DEC t,".mp3",$0D]

I pulled this from the forum. The trouble is that it needs a pause afterward to keep playing and that it will only play for the duration of the pause. This is a problem as it needs to also keep checking if the button is not active. Also, every time it loops through this line - it restarts the file.

I understand that sending '$20' is a stop file, but if I remove it from the line, it will not even lay at all...

Can anyone help with this? I hope this is clearly written. It is making me crazy!

thanks so much
Sign In or Register to comment.