diff options
Diffstat (limited to 'src/App.js')
-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} |