aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDhruv Venkataraman2022-10-02 23:51:37 -0400
committerDhruv Venkataraman2022-10-02 23:51:37 -0400
commitc2903eac0a573d9346e10da407c9dd4613c42c24 (patch)
tree39855e46770ef9f882328e33cc812229c9348499 /src
parentcb9c7e58fa12e182af08918dcf952a9ec8c546ad (diff)
asdhshs
Diffstat (limited to 'src')
-rw-r--r--src/App.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/App.js b/src/App.js
index 3127b5e..a20ee84 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}