Interaction and Audio Playback
- Aaron Lockwood
- Feb 23, 2021
- 1 min read
Attached is the current working script which takes my previous progress on controlling the lights on the Launchpad X with just a tap and adds on sound control and animation. Using an array of light indexes, I created a horizontal scrolling bar that would queue a sound clip every-time it went over a lit square. For the audio clips I used three local files of kick drums from a sound pack which I mapped to the three sections of rows on the launchpad. On top of playing back audio, I added a basic tempo changing function that is mapped to the top left two buttons on the launchpad. By pressing the very top left button the horizontal bar will move to the next index after 250 milliseconds, if you click the one to the right of that the delay changes to 150 milliseconds. My plan for the next iteration would be to start making different scrolling methods such as a dilating circle and to make a more robust tempo changer. Those two will be fairly easy to implement but to make the launchpad feel more like a standalone instrument I plan on making different layers for the user to use different sounds and have multiple layers playing at once to make a song.
Comments