| This is
the simplest SoundCipher program. It imports and initialises
SoundCipher and plays a single middle C note on the default piano sound
for two beats. 
 
 
 The three lines of code do the following:
 1. Add the SoundCipher functionality to Processing by importing all
elements of it.
 2. Create a SoundCipher instance called sc. We will then send messages
to it.
 3.
Ask SoundCipher [sc] to play a note on the JavaSound synthesizer with
pitch 60 [middle C], dynamic 100 [loudness], duration 2.0 [length in
beats].
 
 Try changing these values to hear the difference it makes.
 
 The first two lines in this example are required in every Processing
program that uses SoundCipher.
 |