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
467
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.
 

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.
 

    mobile-it

    Points: 2
    Helpful Answer Positive Rating

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
 

    mobile-it

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top