From 811df247b01529a9c2de093d815fd4d07d3428c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jurij=20Podgor=C5=A1ek?= Date: Sun, 22 May 2022 16:23:24 +0200 Subject: [PATCH] popravek --- kegel.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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])