aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backend/app.py1
-rw-r--r--package-lock.json19
-rw-r--r--src/App.js8
-rw-r--r--yarn.lock5
4 files changed, 29 insertions, 4 deletions
diff --git a/backend/app.py b/backend/app.py
index f983eff..97f9491 100644
--- a/backend/app.py
+++ b/backend/app.py
@@ -44,3 +44,4 @@ if __name__ == "__main__":
+
diff --git a/package-lock.json b/package-lock.json
index b028e9d..19b42b2 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -14393,6 +14393,19 @@
"is-typedarray": "^1.0.0"
}
},
+ "node_modules/typescript": {
+ "version": "4.8.4",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.4.tgz",
+ "integrity": "sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==",
+ "peer": true,
+ "bin": {
+ "tsc": "bin/tsc",
+ "tsserver": "bin/tsserver"
+ },
+ "engines": {
+ "node": ">=4.2.0"
+ }
+ },
"node_modules/unbox-primitive": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz",
@@ -24763,6 +24776,12 @@
"is-typedarray": "^1.0.0"
}
},
+ "typescript": {
+ "version": "4.8.4",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.4.tgz",
+ "integrity": "sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==",
+ "peer": true
+ },
"unbox-primitive": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz",
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}
diff --git a/yarn.lock b/yarn.lock
index 08857bb..c05db07 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -8284,6 +8284,11 @@
dependencies:
"is-typedarray" "^1.0.0"
+"typescript@^3.2.1 || ^4", "typescript@>= 2.7", "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta":
+ "integrity" "sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ=="
+ "resolved" "https://registry.npmjs.org/typescript/-/typescript-4.8.4.tgz"
+ "version" "4.8.4"
+
"unbox-primitive@^1.0.2":
"integrity" "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw=="
"resolved" "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz"