Hearing a Sine Wave Oscillator
Let's hear what this sine wave sounds like. In this web page, we are running
a JSyn program that creates a SineOscillator, connects it to a LineOut,
and starts them both. It is a Java Applet so it can run from a web page
in a web browser. The Applet does not start the sine wave immediately.
It only starts it when you check the check box.
To Do:
-
Turn down the volume on your speakers.
-
Click on the check box below.
-
Turn up the volume. You should hear a smooth tone coming from you speakers.
-
If you do not hear any sound, please visit the JSyn
technical support page.
-
Click on the box again to turn the sound off. You will hear a small pop
sound when it is started and stopped because we are doing it so abruptly.
Later we will learn how to start and stop a sound gradually using envelopes.
Right below this line, you should see the message "JSyn (C)
... " below. If not, you can download the JSyn plugin from
here
To see how I did this, please look at the source
code for this 1.1 AWT style Java Applet.
Here is the source code
for the old style 1.0.2 AWT version of the same program.
[TOP] [PREVIOUS]
[NEXT]