From 0456d34d7b8c7e1cb7176ab7035aaec26ac8c8ed Mon Sep 17 00:00:00 2001 From: next2w Date: Mon, 3 Oct 2022 00:22:00 -0400 Subject: More fixes --- backend/app.py | 1 + package-lock.json | 19 +++++++++++++++++++ src/App.js | 8 ++++---- yarn.lock | 5 +++++ 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" -- cgit v1.2.3-70-g09d2