QB / QB64 Discussion Forum      Other Subforums, Links and Downloads
 Return to Index  

Playing multiple frequencies at one time with SOUND

May 10 2011 at 9:53 PM
  (Login blackboxfl)

So the 'SOUND f,l' command in Qbasic is used to play a sound, where f = the frequency of the tone in Hertz (cycles per second) and l = length of the tone in seconds or milliseconds. I am trying to play two tones at one time in order to create a dual-tone multi-frequency tone (DTMF). I can only seem to play one at a time. How can I play both sounds at the same time? Example: Combining a 697 Hz tone and a 1209 Hz tone, played for for 5 seconds.

 
 Respond to this message   
Responses

Newbies usually go to www.qbasic.com and click on The QBasic Forum
Forum regulars have their own ways, which include The QBasic Community Forums