From 1e1caf576743ac00f6cfbe104c33a13207450634 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jurij=20Podgor=C5=A1ek?= Date: Fri, 27 May 2022 11:16:18 +0200 Subject: [PATCH] Dva midi kanala (na oseh) --- kegel.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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)