![]() |
Forum Index : Microcontroller and PC projects : PLAY SOUND ..... Difference between " both " and " left and right " ?
Author | Message | ||||
hitsware2![]() Guru ![]() Joined: 03/08/2019 Location: United StatesPosts: 719 |
'Listen do for x= 0 to 1 select case x case 0 for y=0 to 7 play sound 1,b,s,200,10 pause 100 play sound 1,b,s,200,0 pause 500 print "both": next y case 1 for y=0 to 7 play sound 1,l,s,200,10 play sound 1,r,s,200,10 pause 100 play sound 1,l,s,200,0 play sound 1,r,s,200,0 pause 500 print "left and right": next y end select next x loop my site |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
I think this is what you are getting at. Setting both channels to 10 gives equal output. Setting one channel to 10 with the second channel still off gives the correct level for that channel. Setting one channel on but zero level gives zero output as expected BUT if you then set the second channel to 10, it's output is as expected 320mV and the other channel that should remain off has 790mV output. DO PLAY sound 1,B,O,200,0 PLAY sound 1,B,s,200,10 ' both channels 320mV PRINT "both" DO:LOOP UNTIL INKEY$ <> "" PLAY STOP 'play sound 1,L,s,200,0 PLAY sound 1,R,s,200,10 ' right 320mV, left zero PRINT "right" DO:LOOP UNTIL INKEY$ <> "" PLAY STOP PLAY sound 1,R,s,200,0 ' both channels zero PAUSE 2000 PLAY sound 1,L,s,200,10 ' right 790mV, left 320mV PRINT "left" DO:LOOP UNTIL INKEY$ <> "" PLAY STOP LOOP Jim VK7JH MMedit |
||||
hitsware2![]() Guru ![]() Joined: 03/08/2019 Location: United StatesPosts: 719 |
> If you then set the second channel to 10, > it's output is as expected 320mV and the other > channel that should remain off has 790mV output. Yes. I think we're on the same page . Aurally ( using 'both' ( my snippet ) ) there is the expected series of short duration tones. BUT Using 'L + R' there is one long tone ( as long as 8 pulses ) AND It even seems to change notes ! ( maybe up an octave ? ) my site |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10310 |
Found the problem - will be fixed in V5.05.05b11 |
||||
hitsware2![]() Guru ![]() Joined: 03/08/2019 Location: United StatesPosts: 719 |
I'll dance at your wedding ! .... ![]() Would you give a (simple as possible) explanation ? my site |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |