MIDI fix, popravek za IDje keglov

main
Jurij Podgoršek 2022-11-30 15:31:30 +01:00
parent 660ca1098f
commit d243b18f59
1 changed files with 3 additions and 2 deletions

View File

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