Generating sound - not musical notes - via the sound card

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?
 
T

Thorkild Dalsgaard

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?

Here is not a language, but a tool:
http://www.david-taylor.pwp.blueyonder.co.uk/software/audio.html

SweepGen
SweepGen turns a PC into an Audio Oscillator and Sweep Generator which can
be used for testing audio or educational purposes. In conjunction with
audio test instruments, you can make frequency response plots. SweepGen
uses the sound card in your PC to produce sinewaves that are mathematically
correct almost to CD quality, indeed it's more likely that the quality of
your PC sound card will be the limiting factor rather than the code in
SweepGen.


Regards
Thorkild Dalsgaard
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top