sinus wav file creation

Status
Not open for further replies.

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

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.
 

    mobile-it

    Points: 2
    Helpful Answer Positive Rating
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
 

    mobile-it

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…