Sorry, I'd forgotten to post the code, but there it is now. In fact, my real goal is learning audio programming and synthesis using C/C++. Generate a sinewave is just the first step to that but it´s a decisive one, so I'm putting a great effort into it.
Thanks for your post and please keep helping!
Search found 2 matches
- Sat Nov 28, 2009 9:44 pm
- Forum: General Audio Programming
- Topic: Why this code (sinewave generator) doesn't work?
- Replies: 3
- Views: 2346
- Sat Nov 28, 2009 2:43 pm
- Forum: General Audio Programming
- Topic: Why this code (sinewave generator) doesn't work?
- Replies: 3
- Views: 2346
Why this code (sinewave generator) doesn't work?
The code below is supposed to generate a 4-seconds long wave file of a sinewave at 440 Hz frequency, 16 bits per sample and at 44100 Hz sampling rate. The code compiles fine and I run it in Windows console with the command "wave.exe > sine440.wav". However, when I play the resulting file I hear a ho...