Dva midi kanala (na oseh)
parent
e6187d6bd2
commit
1e1caf5767
10
kegel.js
10
kegel.js
|
@ -77,10 +77,12 @@ oscWS.on('message', ({ address, args }) => {
|
||||||
//const visina = rotVisina
|
//const visina = rotVisina
|
||||||
|
|
||||||
//console.log('posiljam midi', [144, visina, 127])
|
//console.log('posiljam midi', [144, visina, 127])
|
||||||
|
/*
|
||||||
oscWS.send({
|
oscWS.send({
|
||||||
address: '/midi',
|
address: '/midi',
|
||||||
args: [192, 0, 127]
|
args: [192, 0, 127]
|
||||||
})
|
})
|
||||||
|
*/
|
||||||
oscWS.send({
|
oscWS.send({
|
||||||
address: '/midi',
|
address: '/midi',
|
||||||
args: [144, visina, 127]
|
args: [144, visina, 127]
|
||||||
|
@ -92,7 +94,7 @@ oscWS.on('message', ({ address, args }) => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
oscWS.send({
|
oscWS.send({
|
||||||
address: '/midi',
|
address: '/midi',
|
||||||
args: [128, visina, 127]
|
args: [144, visina, 0]
|
||||||
})
|
})
|
||||||
console.log('izklopi', visina)
|
console.log('izklopi', visina)
|
||||||
}, izklop * 1000)
|
}, izklop * 1000)
|
||||||
|
@ -117,13 +119,15 @@ oscWS.on('message', ({ address, args }) => {
|
||||||
//const visina = rotVisina
|
//const visina = rotVisina
|
||||||
|
|
||||||
//console.log('posiljam midi', [144, visina, 127])
|
//console.log('posiljam midi', [144, visina, 127])
|
||||||
|
/*
|
||||||
oscWS.send({
|
oscWS.send({
|
||||||
address: '/midi',
|
address: '/midi',
|
||||||
args: [192, 1, 127]
|
args: [192, 1, 127]
|
||||||
})
|
})
|
||||||
|
*/
|
||||||
oscWS.send({
|
oscWS.send({
|
||||||
address: '/midi',
|
address: '/midi',
|
||||||
args: [144, visina, 127]
|
args: [145, visina, 127]
|
||||||
})
|
})
|
||||||
console.log('vklopi', visina)
|
console.log('vklopi', visina)
|
||||||
|
|
||||||
|
@ -132,7 +136,7 @@ oscWS.on('message', ({ address, args }) => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
oscWS.send({
|
oscWS.send({
|
||||||
address: '/midi',
|
address: '/midi',
|
||||||
args: [128, visina, 127]
|
args: [145, visina, 0]
|
||||||
})
|
})
|
||||||
console.log('izklopi', visina)
|
console.log('izklopi', visina)
|
||||||
}, izklop * 1000)
|
}, izklop * 1000)
|
||||||
|
|
Loading…
Reference in New Issue