popravek
parent
163ca09a8a
commit
811df247b0
3
kegel.js
3
kegel.js
|
@ -76,8 +76,9 @@ oscWS.on('message', ({ address, args }) => {
|
|||
|
||||
// Od 24 do 48
|
||||
const accval = Math.sin((acX - zaznava) / 3)
|
||||
console.log(acX, accval)
|
||||
// Acc visina
|
||||
const visina = 24 + Math.round(((accval / 2.5) + 0.5) * 48)
|
||||
const visina = 24 + Math.round((accval / 2.5) * 48)
|
||||
//const visina = rotVisina
|
||||
|
||||
//console.log('posiljam midi', [144, visina, 127])
|
||||
|
|
Loading…
Reference in New Issue