Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top