From a13bd4a810707359027626a813c806ee0da8d89c Mon Sep 17 00:00:00 2001 From: Dhruv Venkataraman Date: Sun, 2 Oct 2022 23:52:27 -0400 Subject: ddd --- src/App.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.js b/src/App.js index a20ee84..cbfaa74 100644 --- a/src/App.js +++ b/src/App.js @@ -18,11 +18,11 @@ function App() { noteRange={{ first: firstNote, last: lastNote }} playNote={(midiNumber) => { console.log(midiNumber); - const freq = 440 * (2^((midiNumber - 69)/12)); + const freq = 440 * (2**((midiNumber - 69)/12)); fetch('http://127.0.0.1:5000/startfreq/' + freq); }} stopNote={(midiNumber) => { - const freq = 440 * (2^((midiNumber - 69)/12)); + const freq = 440 * (2**((midiNumber - 69)/12)); fetch('http://127.0.0.1:5000/stopfreq/' + freq); }} width={1000} -- cgit v1.2.3-70-g09d2