Computer Science Canada Questions about the 'sound' command |
Author: | Lapsus Antepedis [ Fri Oct 15, 2004 11:52 am ] |
Post subject: | Questions about the 'sound' command |
Hello Everyone! I am trying to make a DTMF dialer program in turing, but I do not want to use any external .wav files for the tones. Is there a way to convince turing to combine 2 frequencies and play them at the same time? Every time I try it turing plays the second freq. over the first. I would not mind using the .wav files, but I would prefer to make the program a standalone. (plus I cannot find any tones for the elusive A/B/C/D keys on the touchpad.) Any Ideas? -Lapsus |
Author: | Dan [ Fri Oct 15, 2004 1:55 pm ] |
Post subject: | |
I think you are going to have to use wav files for this. I think i whould be alot of work to get turing to procude the right tone. Also the only way of playing sounds at once using the sound comands in turing and not files whould be using a process witch whould lead to other issues and may still not work depending on the comps sound card, the turing verson and how the comand works. |
Author: | beard0 [ Sat Oct 16, 2004 4:05 pm ] |
Post subject: | |
As far as making the program standalone, depending on how much you know about .wav files, an option may be to have your program write the needed .wav files on start-up, and delete them once your done. As you are not taking about complicated sound waves, just a frequency, this should be possible, using a modified sin function to get the desired frequency. |
Author: | GlobeTrotter [ Sat Oct 16, 2004 5:04 pm ] | ||
Post subject: | |||
Here's an example, using turing's sounds commands, that produces notes. Its very glitchy, and the piano is not quite right, but it shows you the mathematics of sound if you wanted to produce a note. To produce two notes at the same time, I dont think would be possible.
|