Click here to Skip to main content
Click here to Skip to main content

Morse code. Some examples of how to produce sounds.

By , 3 Apr 2001
 

This program demonstrates how to use the waveOut APIs to produce sounds of different frequencies. Two classes can play sounds asynchronously (with some differences in implementation), and one show works in plain synchronous mode.

The sample program takes a string you supply, converts it into Morse code, and then plays this code. You can customize the frequency and duration of the sounds produced.

 [Sample Image - 33K]

Using the asynchronous classes, it is possible to change frequency smoothly when sounds are playing, but sound quality is not very good.

This code was tested only on VC++ 6.0 and Windows 98.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

Alexander Fedorov
Web Developer SEO
Ukraine Ukraine
Member
AlexF's Blog in Russian
Owner Spy competition analysis
Rating Burner Rating of blogs

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
Hint: For improved responsiveness ensure Javascript is enabled and choose 'Normal' from the Layout dropdown and hit 'Update'.
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
GeneralGreat article!memberDrABELL16 Sep '09 - 15:31 
GeneralSir, I want to change a existed wav's frequency, can you give me some advice or some code? Thank you.memberwangmike51816 Jan '08 - 3:31 
Smile | :)
Generalmultichannel rather than stereomemberwalkerjiao2 Dec '03 - 14:10 
QuestionHow to Store 16 Bit PCM WavememberMaria Jothi5 May '02 - 19:41 
GeneralAwesomememberMark Robert Strange12 Jul '01 - 3:37 
GeneralMuch staticmemberMichael S. Scherotter14 May '01 - 9:58 
GeneralTimed EventmemberUkJay13 May '01 - 13:32 
GeneralRe: Timed EventmemberBaFM22 Jun '01 - 2:59 
GeneralPhone TonesmemberAnonymous22 Jan '01 - 22:19 
GeneralRe: Phone TonesmemberCarsten Groen29 Jan '01 - 9:50 
GeneralRe: Phone TonesmemberRehan Khan4 Jun '01 - 15:46 
GeneralRe: Phone TonesmemberAlexandru Savescu27 Nov '01 - 22:52 
GeneralRe: Phone TonessussAnonymous20 May '04 - 22:35 
GeneralRe: Phone Tonesmemberrobbor1814 Aug '05 - 16:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Permalink | Advertise | Privacy | Mobile
Web01 | 2.6.130516.1 | Last Updated 4 Apr 2001
Article Copyright 2001 by Alexander Fedorov
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid