Sep 21, 2008 #1 M mobile-it Advanced Member level 1 Joined Apr 24, 2004 Messages 464 Helped 22 Reputation 44 Reaction score 8 Trophy points 1,298 Activity points 3,344 sinus wav anyone an idea on howto write a function that creates a wav file where the users can select the frequency? thanks I don't want to use any library I want to create an easy example.
sinus wav anyone an idea on howto write a function that creates a wav file where the users can select the frequency? thanks I don't want to use any library I want to create an easy example.
Sep 24, 2008 #2 S samuelr Member level 4 Joined Sep 23, 2008 Messages 78 Helped 4 Reputation 8 Reaction score 2 Trophy points 1,288 Activity points 1,861 sinus.wav I believe you can do it by changing the sample rate on the header of the wav file. It should speed up or slow down the "music". Hope it helps.
sinus.wav I believe you can do it by changing the sample rate on the header of the wav file. It should speed up or slow down the "music". Hope it helps.
Sep 30, 2008 #3 zlatkoMM Full Member level 5 Joined Apr 4, 2008 Messages 296 Helped 13 Reputation 26 Reaction score 7 Trophy points 1,298 Location Croatia Activity points 2,884 sinus beep & music If i understand good you need program wich produce sinus wav sound. If is this you dont need function you only need API call Beep. here is example in Creative basic: DECLARE "kernel32",Beep(dwFreq:INT,dwDuration:INT),INT and you call them with simple: Beep(1600,100) wich means 1600 Hz with 1 second duration. If you wish complet program i will made one. regards zlatko
sinus beep & music If i understand good you need program wich produce sinus wav sound. If is this you dont need function you only need API call Beep. here is example in Creative basic: DECLARE "kernel32",Beep(dwFreq:INT,dwDuration:INT),INT and you call them with simple: Beep(1600,100) wich means 1600 Hz with 1 second duration. If you wish complet program i will made one. regards zlatko