diff options
author | next2w | 2022-10-03 00:22:00 -0400 |
---|---|---|
committer | next2w | 2022-10-03 00:22:00 -0400 |
commit | 0456d34d7b8c7e1cb7176ab7035aaec26ac8c8ed (patch) | |
tree | 28a8532a09d01d831c035674ebef38470203de34 /src | |
parent | f710490b4f78c70ffb631a8af9996d5736a14853 (diff) |
More fixes
Diffstat (limited to 'src')
-rw-r--r-- | src/App.js | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -18,12 +18,12 @@ function App() { noteRange={{ first: firstNote, last: lastNote }} playNote={(midiNumber) => { console.log(midiNumber); - const freq = 440 * (2**((midiNumber - 69)/12)); - fetch('http://127.0.0.1:5000/startfreq/' + freq); + const freq = 880 * (2**((midiNumber - 69)/12)); + fetch('http://10.242.6.228:5000/startfreq/' + freq); }} stopNote={(midiNumber) => { - const freq = 440 * (2**((midiNumber - 69)/12)); - fetch('http://127.0.0.1:5000/stopfreq/' + freq); + const freq = 880 * (2**((midiNumber - 69)/12)); + fetch('http://10.242.6.228:5000/stopfreq/' + freq); }} width={1000} keyboardShortcuts={keyboardShortcuts} |