MIDI fix, popravek za IDje keglov
parent
660ca1098f
commit
d243b18f59
|
@ -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])
|
||||
|
|
Loading…
Reference in New Issue