aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authornext2w2022-10-03 00:22:00 -0400
committernext2w2022-10-03 00:22:00 -0400
commit0456d34d7b8c7e1cb7176ab7035aaec26ac8c8ed (patch)
tree28a8532a09d01d831c035674ebef38470203de34 /src
parentf710490b4f78c70ffb631a8af9996d5736a14853 (diff)
More fixes
Diffstat (limited to 'src')
-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}