diff options
author | next2w | 2022-10-03 00:22:00 -0400 |
---|---|---|
committer | next2w | 2022-10-03 00:22:00 -0400 |
commit | 0456d34d7b8c7e1cb7176ab7035aaec26ac8c8ed (patch) | |
tree | 28a8532a09d01d831c035674ebef38470203de34 | |
parent | f710490b4f78c70ffb631a8af9996d5736a14853 (diff) |
More fixes
-rw-r--r-- | backend/app.py | 1 | ||||
-rw-r--r-- | package-lock.json | 19 | ||||
-rw-r--r-- | src/App.js | 8 | ||||
-rw-r--r-- | 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", @@ -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} @@ -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" |