Laptop-Based Step Sequencer
From CCRMA Wiki
I decided to use the keystroke functionality within ChucK to create a step sequencer that can be operated directly from a laptop keyboard.
The bottom row of letters (keys "Z" through ",") represent the time steps in one measure. The top row of letters (keys "Q" through "I") correspond to a variety of percussion sounds that can be mapped to one of the time steps. The top row of numbers (keys "`" through "=") correspond to pitches that can also be mapped to the time steps.
Each assignment requires four succesive commands.
1. Press the key denoting the beat on which the sound (or series of sounds) should begin 2. Press the key representing the sound you want to assign 3. Press a number corresponding to the duration of the note (1 = whole note, 2 = half note, etc down to a 1/16 note) 4. Press a number indicating how many times the note is to be repeated.