-
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add sound dropdown and fix a duplicate listener bug
- Loading branch information
Showing
13 changed files
with
1,478 additions
and
1,391 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
* | ||
|
||
!src/**/* | ||
!src-tauri/**/* | ||
!src/**/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
import { InstrumentName } from 'soundfont-player' | ||
|
||
export type SoundOptionType = { | ||
name: string | ||
code: InstrumentName | ||
} | ||
|
||
export type AvailableSoundsType = { | ||
[key in InstrumentName]?: SoundOptionType | ||
} | ||
|
||
export const AVAILABLE_SOUNDS: AvailableSoundsType = { | ||
acoustic_grand_piano: { | ||
name: 'Grand Piano', | ||
code: 'acoustic_grand_piano', | ||
}, | ||
brass_section: { | ||
name: 'Brass Section', | ||
code: 'brass_section', | ||
}, | ||
church_organ: { | ||
name: 'Church Organ', | ||
code: 'church_organ', | ||
}, | ||
flute: { | ||
name: 'Flute', | ||
code: 'flute', | ||
}, | ||
ocarina: { | ||
name: 'Ocarina', | ||
code: 'ocarina', | ||
}, | ||
french_horn: { | ||
name: 'French Horn', | ||
code: 'french_horn', | ||
}, | ||
acoustic_bass: { | ||
name: 'Acoustic Bass', | ||
code: 'acoustic_bass', | ||
}, | ||
electric_bass_finger: { | ||
name: 'Electric Bass', | ||
code: 'electric_bass_finger', | ||
}, | ||
synth_strings_2: { | ||
name: 'Synth Strings', | ||
code: 'synth_strings_2', | ||
}, | ||
clavinet: { | ||
name: 'Clavinet', | ||
code: 'clavinet', | ||
}, | ||
lead_2_sawtooth: { | ||
name: 'Lead Sawtooth', | ||
code: 'lead_2_sawtooth', | ||
}, | ||
music_box: { | ||
name: 'Music Box', | ||
code: 'music_box', | ||
}, | ||
xylophone: { | ||
name: 'Xylophone', | ||
code: 'xylophone', | ||
}, | ||
violin: { | ||
name: 'Violin', | ||
code: 'violin', | ||
}, | ||
vibraphone: { | ||
name: 'Vibraphone', | ||
code: 'vibraphone', | ||
}, | ||
} as const |
Oops, something went wrong.