Delo na kontrolerju

main
Jurij Podgoršek 2022-11-30 14:54:31 +01:00
parent 3db4fbe9bd
commit 660ca1098f
2 changed files with 25 additions and 21 deletions

View File

@ -36,6 +36,7 @@ oscWS.on('ready', () => {
oscBW.on('ready', () => { oscBW.on('ready', () => {
console.log(`Povezan sem na bitwig ${bwIP}`) console.log(`Povezan sem na bitwig ${bwIP}`)
}) })
oscWSstanje.on('error', () => console.log('napaka stanja', arguments))
const STANJE = { const STANJE = {
predvajam: 0, predvajam: 0,

View File

@ -12,21 +12,22 @@ SLIPEncodedSerial SLIPSerial(Serial); // Change to Serial1 or Serial2 etc. for b
OSCBundle bundle; OSCBundle bundle;
byte knofi[] = { byte knofi[] = {
2, // gor (clip) A1,// levo (track)
3, // dol (clip) A0,// desno (track)
4, // levo (track) 2, // play / pause
5, // desno (track) 3, // overdub on/off
6, // quantize 4, // record arm on/off
7, // duplicate 5, //
8, // delete 6, // dol (clip)
9, // play/pavza 7, // gor (clip)
10,// overdub on/off 8, // quantize
11,// record arm on/off 9, // duplicate
12,// record 4 beats 10,// delete
13,// record 8 beats 11,// record 4 beats
14 // record on/off 12,// record 8 beats
13,// record on/off
}; };
byte KNOFI_LEN = 13; byte KNOFI_LEN = 14;
// Za stanje vrednosti // Za stanje vrednosti
byte knofi_prej[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; byte knofi_prej[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
@ -34,15 +35,17 @@ byte knofi_prej[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
int dvoklik_interval = 250; int dvoklik_interval = 250;
const char* kanali[16] = { const char* kanali[16] = {
"/track/previous",
"/track/next",
"/play", "/play",
"/overdub/launcher", "/overdub",
"/recarm", // rabi info o trenutno izbranem tracku "/recarm",
"",
"",
"",
"",
"",
"", "",
"/clip/next",
"/clip/previous",
"/quantize",
"/duplicate",
"/delete",
"/clip/create/4", "/clip/create/4",
"/clip/create/8", "/clip/create/8",
"/clip/record" // rabi info o trenutno izbranem clipu / tracku "/clip/record" // rabi info o trenutno izbranem clipu / tracku