This page briefly documents the work I had to do in software, MAX/MSP to make the pitch sequencer lantern work.
The Patch works by taking the core audio from the line in, this can be changed in the system settings to whatever input you want. The audio input, in my case, is multiplied by 3 to get a more sensitive reading and this created more chance of getting an accurate sound reading.
The amplified sound is then fed into the fiddle object (download fiddle here). Fiddle then takes a reading of audio and samples amplitude and pitch. I then took a frequently outputted value for pitch and used if statements to divide the audible audio into 8 separate pitch sectors. When a pitch was recorded, the if statements would then trigger one event when the pitch reading in between its given values. The pitch would then dictate which the 1 of 8 events would be triggered.
I then fed these events being triggered into the iCube. The iCube has 8 outputs, so when 1 of the 8 events are triggered, the iCube will turn on 1 of the 8 outputs.
I then connected 8 LED's to the the 8 iCube outputs, to trigger the 8 LED sequences. Learn more about how I made the sequences.
The Patch.
Download my zipped MAX MSP patch, play with it, learn from it, develop on it.