Dva midi kanala (na oseh)

main
Jurij Podgoršek 2022-05-27 11:16:18 +02:00
parent e6187d6bd2
commit 1e1caf5767
1 changed files with 7 additions and 3 deletions

View File

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