Controlling the sound using envelopes and MIDI
We are now okay to design small bits of a sound engine using Mozzi. There are other libraries around, and what we learned will be used with those two. Indeed, these are patterns.
Let's check how we can control our Arduino-based sound engine using a standard protocol from a computer or other device. Indeed, it would be interesting to be able to trigger notes to change sound parameters using a computer, for instance.
Both are protocols used in the music and new media related projects and works.
An overview of MIDI
MIDI is short for Musical Instrument Digital Interface. It is a specification standard that enables digital music instruments, computers, and all required devices to connect and communicate with one another. It was introduced in 1983, and at the time of writing has just celebrated its 30th anniversary. The reference website is http://www.midi.org.
MIDI can transport the following data over a basic serial link:
Notes (on/off, after touch...