Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat: Add MIDI constants #26

Merged
merged 4 commits into from
Jul 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions drums.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
// General MIDI drum patches, track 10
module.exports = {

ACOUSTIC_BASS_DRUM : 35,
BASS_DRUM : 36,
SIDE_STICK : 37,
ACOUSTIC_SNARE : 38,
HAND_CLAP : 39,
ELECTRIC_SNARE : 40,
LOW_FLOOR_TOM : 41,
CLOSED_HI_HAT : 42,
HIGH_FLOOR_TOM : 43,
PEDAL_HI_HAT : 44,
LOW_TOM : 45,
OPEN_HI_HAT : 46,
LOW_MID_TOM : 47,
HI_MID_TOM : 48,
CRASH_CYMBAL_1 : 49,
HIGH_TOM : 50,
RIDE_CYMBAL_1 : 51,
CHINESE_CYMBAL : 52,
RIDE_BELL : 53,
TAMBOURINE : 54,
SPLASH_CYMBAL : 55,
COWBELL : 56,
CRASH_CYMBAL_2 : 57,
VIBRA_SLAP : 58,
RIDE_CYMBAL_2 : 59,
HI_BONGO : 60,
LOW_BONGO : 61,
MUTE_HI_CONGA : 62,
OPEN_HI_CONGA : 63,
LOW_CONGA : 64,
HIGH_TIMBALE : 65,
LOW_TIMBALE : 66,
HIGH_AGOGO : 67,
LOW_AGOGO : 68,
CABASA : 69,
MARACAS : 70,
SHORT_WHISTLE : 71,
LONG_WHISTLE : 72,
SHORT_GUIRO : 73,
LONG_GUIRO : 74,
CLAVES : 75,
HI_WOOD_BLOCK : 76,
LOW_WOOD_BLOCK : 77,
MUTE_CUICA : 78,
OPEN_CUICA : 79,
MUTE_TRIANGLE : 80,
OPEN_TRIANGLE : 81,
};
132 changes: 132 additions & 0 deletions instruments.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
// General MIDI patches
module.exports = {

ACOUSTIC_GRAND_PIANO : 0,
BRIGHT_ACOUSTIC_PIANO : 1,
ELECTRIC_GRAND_PIANO : 2,
HONKY_TONK_PIANO : 3,
ELECTRIC_PIANO_1 : 4,
ELECTRIC_PIANO_2 : 5,
HARPSICHORD : 6,
CLAVI : 7,
CELESTA : 8,
GLOCKENSPIEL : 9,
MUSIC_BOX : 10,
VIBRAPHONE : 11,
MARIMBA : 12,
XYLOPHONE : 13,
TUBULAR_BELLS : 14,
DULCIMER : 15,
DRAWBAR_ORGAN : 16,
PERCUSSIVE_ORGAN : 17,
ROCK_ORGAN : 18,
CHURCH_ORGAN : 19,
REED_ORGAN : 20,
ACCORDION : 21,
HARMONICA : 22,
TANGO_ACCORDION : 23,
ACOUSTIC_GUITAR_NYLON : 24,
ACOUSTIC_GUITAR_STEEL : 25,
ELECTRIC_GUITAR_JAZZ : 26,
ELECTRIC_GUITAR_CLEAN : 27,
ELECTRIC_GUITAR_MUTED : 28,
OVERDRIVEN_GUITAR : 29,
DISTORTION_GUITAR : 30,
GUITAR_HARMONICS : 31,
ACOUSTIC_BASS : 32,
ELECTRIC_BASS_FINGER : 33,
ELECTRIC_BASS_PICK : 34,
FRETLESS_BASS : 35,
SLAP_BASS_1 : 36,
SLAP_BASS_2 : 37,
SYNTH_BASS_1 : 38,
SYNTH_BASS_2 : 39,
VIOLIN : 40,
VIOLA : 41,
CELLO : 42,
CONTRABASS : 43,
TREMOLO_STRINGS : 44,
PIZZICATO_STRINGS : 45,
ORCHESTRAL_HARP : 46,
TIMPANI : 47,
STRING_ENSEMBLE_1 : 48,
STRING_ENSEMBLE_2 : 49,
SYNTHSTRINGS_1 : 50,
SYNTHSTRINGS_2 : 51,
CHOIR_AAHS : 52,
VOICE_OOHS : 53,
SYNTH_VOICE : 54,
ORCHESTRA_HIT : 55,
TRUMPET : 56,
TROMBONE : 57,
TUBA : 58,
MUTED_TRUMPET : 59,
FRENCH_HORN : 60,
BRASS_SECTION : 61,
SYNTHBRASS_1 : 62,
SYNTHBRASS_2 : 63,
SOPRANO_SAX : 64,
ALTO_SAX : 65,
TENOR_SAX : 66,
BARITONE_SAX : 67,
OBOE : 68,
ENGLISH_HORN : 69,
BASSOON : 70,
CLARINET : 71,
PICCOLO : 72,
FLUTE : 73,
RECORDER : 74,
PAN_FLUTE : 75,
BLOWN_BOTTLE : 76,
SHAKUHACHI : 77,
WHISTLE : 78,
OCARINA : 79,
LEAD_1_SQUARE : 80,
LEAD_2_SAWTOOTH : 81,
LEAD_3_CALLIOPE : 82,
LEAD_4_CHIFF : 83,
LEAD_5_CHARANG : 84,
LEAD_6_VOICE : 85,
LEAD_7_FIFTHS : 86,
LEAD_8_BASS_AND_LEAD : 87,
PAD_1_NEW_AGE : 88,
PAD_2_WARM : 89,
PAD_3_POLYSYNTH : 90,
PAD_4_CHOIR : 91,
PAD_5_BOWED : 92,
PAD_6_METALLIC : 93,
PAD_7_HALO : 94,
PAD_8_SWEEP : 95,
FX_1_RAIN : 96,
FX_2_SOUNDTRACK : 97,
FX_3_CRYSTAL : 98,
FX_4_ATMOSPHERE : 99,
FX_5_BRIGHTNESS : 100,
FX_6_GOBLINS : 101,
FX_7_ECHOES : 102,
FX_8_SCIFI : 103,
SITAR : 104,
BANJO : 105,
SHAMISEN : 106,
KOTO : 107,
KALIMBA : 108,
BAG_PIPE : 109,
FIDDLE : 110,
SHANAI : 111,
TINKLE_BELL : 112,
AGOGO : 113,
STEEL_DRUMS : 114,
WOODBLOCK : 115,
TAIKO_DRUM : 116,
MELODIC_TOM : 117,
SYNTH_DRUM : 118,
REVERSE_CYMBAL : 119,
GUITAR_FRET_NOISE : 120,
BREATH_NOISE : 121,
SEASHORE : 122,
BIRD_TWEET : 123,
TELEPHONE_RING : 124,
HELICOPTER : 125,
APPLAUSE : 126,
GUNSHOT : 127,
};
Loading