This diagram illustrates how the project could potentially work. Arduino is a micro controller used for prototyping and will be used to control the toggle. MaxMSP is a visual programming environment used for multi-media and music, it will act as the interface between Arduino and Modul8.
The user controls the visual / audio parameters by moving the physical toggle on/off. Max reads the analog input from Arduino and translates these values into midi messages which are routed to Modul8. These messages are mapped to Modul8 and the audio/visual will be seen/heard via the iPad and headphones.