Midi Interactions and Deeper Light Control
- Aaron Lockwood
- Feb 15, 2021
- 1 min read
At this point I have been working in a script of ChucK that progresses the light control from the last post to something more interactive with the boards button controls. In this script I started using the MidiIn object to listen for the the Midi responses from hitting a button and from that returned a message dictating to toggle on or off the light. A large problem I faced was the integration of after-touch which would send a lot of messages at once when I only wanted the initial on off queue. To combat this I sporked off a lit method that was only called when the velocity from the touch was greater than one and the last velocity was zero. I then took the first velocity and set the color of the light to that decimal and toggled it either on or off. To keep track of all the lights on the board without using the SysEx messages, I used an int array from 0 to 99 to represent the light status of each button which I update every time I call lit. When the script runs you can toggle on or off any of the buttons and they will stay lit until clicked again. I hope to start using the light statuses of each button to control a looping set of sound clips and a much more impressive light show compared to where it is now

.
Comments