aboutsummaryrefslogtreecommitdiff
path: root/src/App.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/App.js')
-rw-r--r--src/App.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/App.js b/src/App.js
index cbfaa74..8190cb1 100644
--- a/src/App.js
+++ b/src/App.js
@@ -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}