C
Chris
Generating sound - not musical notes - via the sound card
I want a program that can "draw" sound.
Imagine drawing a graph of frequency against time -
and then being able to play it over the computer speakers.
As a start, consider this simple QBASIC program that generates random
frequencies:
10 frequency = 40 + 400 * RND
20 SOUND frequency, 7
30 GOTO 10
That's fine - except that it plays over the PC speaker - the one that's
just there for the happy beep - and not through the sound card and
proper speakers.
What language could that be done in?
I want a program that can "draw" sound.
Imagine drawing a graph of frequency against time -
and then being able to play it over the computer speakers.
As a start, consider this simple QBASIC program that generates random
frequencies:
10 frequency = 40 + 400 * RND
20 SOUND frequency, 7
30 GOTO 10
That's fine - except that it plays over the PC speaker - the one that's
just there for the happy beep - and not through the sound card and
proper speakers.
What language could that be done in?