diff --git a/kegel.js b/kegel.js index f991324..0754b46 100644 --- a/kegel.js +++ b/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])