Create some sketches using oscillators and sound file playback.
Look at all of the p5 sound examples to get a sense of what is possible with the library.
Consider digging deeper into the library (.FFT, .Amplitude, .AudioIn would all be good to explore with a sketch)
Challenge: Comp Score
Find a ~30 second video clip, perhaps a commercial or movie scene. Use p5.js to create a sound track to play over the video clip. Consider muting your video or choosing a scene with dialog but no music.
Make a sketch that plays random chords (where chords are any two tones at the same time)
Make a sketch that plays a series of ascending tones, then starts back at a low tone.
Make an instrument: something that accepts user input to control sound.
Add a third oscillator to the modulator example. Have the new oscillator change the frequency of the modulator. Basically chain one modulator into another.
Recording Sound Output
// uses the p5 SoundRecorder and SoundFile classes to record the audio output.// begins recording when called. records for _length_ time in milliseconds.functionrecord(length){
var soundRecorder = new p5.SoundRecorder();
var soundFile = new p5.SoundFile();
soundRecorder.record(soundFile);
setTimeout(function() {
console.log("Recording Complete");
soundRecorder.stop();
save(soundFile, "output.wav");
}, length);
}