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])