From 60b94e27850c16eba9156438cea06462802d149c Mon Sep 17 00:00:00 2001 From: Wren Hawthorne Date: Thu, 11 Jul 2024 03:35:02 -0700 Subject: [PATCH] Remove piano library --- package-lock.json | 11 +---------- package.json | 3 +-- src/components/AllSteps.tsx | 2 +- src/hooks/useChordSynth.ts | 5 ----- 4 files changed, 3 insertions(+), 18 deletions(-) diff --git a/package-lock.json b/package-lock.json index b5f70bb..5d6980b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22,8 +22,7 @@ "react": "^18.3.1", "react-dom": "^18.3.1", "tonal": "^6.0.1", - "tone": "^15.0.4", - "tonejs-instrument-piano-mp3": "^1.1.2" + "tone": "^15.0.4" }, "devDependencies": { "@types/react": "^18.3.3", @@ -4304,14 +4303,6 @@ "tslib": "^2.3.1" } }, - "node_modules/tonejs-instrument-piano-mp3": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/tonejs-instrument-piano-mp3/-/tonejs-instrument-piano-mp3-1.1.2.tgz", - "integrity": "sha512-5h67cOKqC4XeS13szLcf275SEKLjxcybQiVZwvJjeDsc/44srxIkiSEPv7KqvGltX/uPoTmyAfwMS284nDxjKQ==", - "peerDependencies": { - "tone": "^14.7.77" - } - }, "node_modules/ts-api-utils": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.3.0.tgz", diff --git a/package.json b/package.json index 139c5e8..d3745be 100644 --- a/package.json +++ b/package.json @@ -24,8 +24,7 @@ "react": "^18.3.1", "react-dom": "^18.3.1", "tonal": "^6.0.1", - "tone": "^15.0.4", - "tonejs-instrument-piano-mp3": "^1.1.2" + "tone": "^15.0.4" }, "devDependencies": { "@types/react": "^18.3.3", diff --git a/src/components/AllSteps.tsx b/src/components/AllSteps.tsx index cf8529c..7474a32 100644 --- a/src/components/AllSteps.tsx +++ b/src/components/AllSteps.tsx @@ -77,7 +77,7 @@ export const AllSteps = () => { {step === WorkflowStep.CHORDS &&

setChordPreset(ChordSynthPreset.DEFAULT)}>🖥️ - setChordPreset(ChordSynthPreset.PIANO)}>🎹 + {/* setChordPreset(ChordSynthPreset.PIANO)}>🎹 */} setChordPreset(ChordSynthPreset.KALIMBA)}>🔔

} { chordSynth.current?.disconnect() if (preset === ChordSynthPreset.DEFAULT) { chordSynth.current = new PolySynth(Synth, { volume: -10 }).toDestination() - } else if (preset === ChordSynthPreset.PIANO) { - chordSynth.current = new PianoMp3({ minify: true }).toDestination() } else if (preset === ChordSynthPreset.KALIMBA) { chordSynth.current = new PolySynth({ maxPolyphony: 100,