diff options
author | Dhruv Venkataraman | 2022-10-02 23:52:27 -0400 |
---|---|---|
committer | Dhruv Venkataraman | 2022-10-02 23:52:27 -0400 |
commit | a13bd4a810707359027626a813c806ee0da8d89c (patch) | |
tree | 835b275e877507a04861139e9516b8fb6f1349ce | |
parent | c2903eac0a573d9346e10da407c9dd4613c42c24 (diff) |
ddd
-rw-r--r-- | src/App.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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} |