From d243b18f59d4b74c0eb45f65cc4824a96995072b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jurij=20Podgor=C5=A1ek?= Date: Wed, 30 Nov 2022 15:31:30 +0100 Subject: [PATCH] MIDI fix, popravek za IDje keglov --- kegel2.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kegel2.js b/kegel2.js index ec8c75e..ad3cd61 100644 --- a/kegel2.js +++ b/kegel2.js @@ -49,7 +49,7 @@ oscWS.on('message', ({ address, args }) => { DEBUG.osc && console.log('MSG OSC', address, args.map(x => x.toFixed(4))) // Wavey Wind sporočila - const re = /\/ww\/(\d+)\/([a-zA-Z]+)/ + const re = /\/ww\/0\/ww\/(\d+)\/([a-zA-Z]+)/ const m = address.match(re) if (m) { @@ -162,7 +162,8 @@ oscWS.on('message', ({ address, args }) => { mi.on('message', (deltaTime, message) => { console.log(`midi in: ${message} d: ${deltaTime}`); - const args = [150, message[1], message[2]]; + const args = [150, message[1], message[2]] + mo.send([150, message[1], message[2]]) // Ugasni cez en cas let izklop = razponTona[0] + Math.random() * (razponTona[1] - razponTona[0])