I just started building my own controller using the Control Surface Arduino library for MIDI control surfaces (input and output). My first approach was using the FLEXI Script by MOSS which is a great starter AND it has the 'Tracks: Scroll Tracks' action. Now I started building my own script and got stuck at the point of using an encounter to quickly scroll up & down the Tracks.
I tried this but it's not leading anywhere:
function onMidi0(status, data1, data2) {
switch (data1) {
case KNOB_1:
var value = data2 > 64 ? 64 - data2 : data2;
cursorTrack.select ().inc (value);
return true;
}
Can anyone help?
Scrolling Tracks w/ Encounter
- KVRist
- 324 posts since 12 Apr, 2020
it looks like select() doesn't exist on that object or its been deprecated. Also not sure how to use the relative encoder values but you could try translating it then calling selectNext() or selectPrevious() on the cursor track.
I hope that helps some.
I hope that helps some.
----------------------------------------------------------------------
http://instagram.com/kirkwoodwest/
http://soundcloud.com/kirkwoodwest
http://instagram.com/kirkwoodwest/
http://soundcloud.com/kirkwoodwest