Code for controlling a moire instrument (csound/arduino/pd)