diff --git a/kegel.js b/kegel.js index 50836cb..f66147e 100644 --- a/kegel.js +++ b/kegel.js @@ -77,10 +77,12 @@ oscWS.on('message', ({ address, args }) => { //const visina = rotVisina //console.log('posiljam midi', [144, visina, 127]) + /* oscWS.send({ address: '/midi', args: [192, 0, 127] }) + */ oscWS.send({ address: '/midi', args: [144, visina, 127] @@ -92,7 +94,7 @@ oscWS.on('message', ({ address, args }) => { setTimeout(() => { oscWS.send({ address: '/midi', - args: [128, visina, 127] + args: [144, visina, 0] }) console.log('izklopi', visina) }, izklop * 1000) @@ -117,13 +119,15 @@ oscWS.on('message', ({ address, args }) => { //const visina = rotVisina //console.log('posiljam midi', [144, visina, 127]) + /* oscWS.send({ address: '/midi', args: [192, 1, 127] }) + */ oscWS.send({ address: '/midi', - args: [144, visina, 127] + args: [145, visina, 127] }) console.log('vklopi', visina) @@ -132,7 +136,7 @@ oscWS.on('message', ({ address, args }) => { setTimeout(() => { oscWS.send({ address: '/midi', - args: [128, visina, 127] + args: [145, visina, 0] }) console.log('izklopi', visina) }, izklop * 1000)