Playing with Familiar Periodic Phenomena: Music and Instruments
Let's see if we can play this: l
We will play it, but it probably not what was intended...
We create a rest of a fixed length, and then use Riffle to insert a rest after each note. We use a new function, called SoundNote, with None as the first argument, we get no sound.
SoundNote can take general strings for arguments as well, here we enter the musical notes from above (as characters), but one octave lower..
The default is to use a piano to make the sound; here we ask for a duration of 6/10 of a second.
We can use other MIDI instruments as well; here is a bagpipe
And, now for the birds.
Now, a little Bach meets Beethoven
Created by Wolfram Mathematica 6.0 (24 October 2007) | ![]() |