main
Jurij Podgoršek 2022-05-22 16:23:24 +02:00
parent 163ca09a8a
commit 811df247b0
1 changed files with 2 additions and 1 deletions

View File

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