Keyboard with Stylus
In this demo, we're using the
The Keyboard is being played in Ribbon mode so we can use the stylus for a vibrato effect and slide between notes. Pitch guides are enabled so we can play in-tune when moving the stylus between notes.
A couple of other things we're doing here:
We added buttons for "8va" and "tune". The "8va" button instructs SuperCollider to transpose what we're playing up an octave. The "tune" button tells SuperCollider to ignore horizontal movements of the stylus (pitch bend), which makes it easier to not get out of tune when playing faster passages.
We're including information about the stylus' orientation and tilt, as well as vertical position on the key, which are used to control the timbre of the sound -- specifically, the frequency of a high pass filter, and the presence of a few artifacts an octave or two above the note.
In a few cases, it's easier for SuperCollider to do the heavy lifting in terms of math. For example, there's some logic that transforms notes below MIDI note 63 to lower notes so we hear some of the cool "impulse" artifacts from the Sawtooth wave.
Loading video…