From 80d7fd1485279364f5c3c101fd000cb6af47ff12 Mon Sep 17 00:00:00 2001 From: RaphiMC <50594595+RaphiMC@users.noreply.github.com> Date: Mon, 2 Dec 2024 21:47:56 +0100 Subject: [PATCH] Improved midi mappings --- .../format/midi/mapping/MidiMappings.java | 253 +++++++++--------- 1 file changed, 127 insertions(+), 126 deletions(-) diff --git a/src/main/java/net/raphimc/noteblocklib/format/midi/mapping/MidiMappings.java b/src/main/java/net/raphimc/noteblocklib/format/midi/mapping/MidiMappings.java index 2072184..f7108c2 100644 --- a/src/main/java/net/raphimc/noteblocklib/format/midi/mapping/MidiMappings.java +++ b/src/main/java/net/raphimc/noteblocklib/format/midi/mapping/MidiMappings.java @@ -22,6 +22,7 @@ import java.util.HashMap; import java.util.Map; +// Thanks u3002 for the mappings (https://gist.github.com/u3002/cf4daa83bc82b5917fc86fb23815578a) public class MidiMappings { public static final Map INSTRUMENT_MAPPINGS = new HashMap<>(); @@ -29,77 +30,77 @@ public class MidiMappings { static { INSTRUMENT_MAPPINGS.put((byte) 0, new InstrumentMapping(Instrument.HARP, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 1, new InstrumentMapping(Instrument.HARP, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 2, new InstrumentMapping(Instrument.BIT, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 3, new InstrumentMapping(Instrument.HARP, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 4, new InstrumentMapping(Instrument.BIT, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 5, new InstrumentMapping(Instrument.BIT, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 6, new InstrumentMapping(Instrument.HARP, (byte) 1)); - INSTRUMENT_MAPPINGS.put((byte) 7, new InstrumentMapping(Instrument.HARP, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 8, new InstrumentMapping(Instrument.COW_BELL, (byte) -1)); - INSTRUMENT_MAPPINGS.put((byte) 9, new InstrumentMapping(Instrument.COW_BELL, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 10, new InstrumentMapping(Instrument.COW_BELL, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 11, new InstrumentMapping(Instrument.COW_BELL, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 12, new InstrumentMapping(Instrument.COW_BELL, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 13, new InstrumentMapping(Instrument.XYLOPHONE, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 14, new InstrumentMapping(Instrument.BELL, (byte) -1)); - INSTRUMENT_MAPPINGS.put((byte) 15, new InstrumentMapping(Instrument.BELL, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 16, new InstrumentMapping(Instrument.BASS, (byte) 1)); - INSTRUMENT_MAPPINGS.put((byte) 17, new InstrumentMapping(Instrument.BASS, (byte) 1)); - INSTRUMENT_MAPPINGS.put((byte) 18, new InstrumentMapping(Instrument.HARP, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 19, new InstrumentMapping(Instrument.HARP, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 20, new InstrumentMapping(Instrument.HARP, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 21, new InstrumentMapping(Instrument.HARP, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 22, new InstrumentMapping(Instrument.HARP, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 23, new InstrumentMapping(Instrument.HARP, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 24, new InstrumentMapping(Instrument.GUITAR, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 25, new InstrumentMapping(Instrument.GUITAR, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 26, new InstrumentMapping(Instrument.GUITAR, (byte) 1)); - INSTRUMENT_MAPPINGS.put((byte) 27, new InstrumentMapping(Instrument.GUITAR, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 28, null); - INSTRUMENT_MAPPINGS.put((byte) 29, new InstrumentMapping(Instrument.GUITAR, (byte) -1)); - INSTRUMENT_MAPPINGS.put((byte) 30, new InstrumentMapping(Instrument.GUITAR, (byte) -1)); - INSTRUMENT_MAPPINGS.put((byte) 31, new InstrumentMapping(Instrument.GUITAR, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 32, new InstrumentMapping(Instrument.BASS, (byte) 1)); + INSTRUMENT_MAPPINGS.put((byte) 1, new InstrumentMapping(Instrument.PLING, (byte) 0)); + INSTRUMENT_MAPPINGS.put((byte) 2, new InstrumentMapping(Instrument.PLING, (byte) 0)); + INSTRUMENT_MAPPINGS.put((byte) 3, new InstrumentMapping(Instrument.PLING, (byte) 0)); + INSTRUMENT_MAPPINGS.put((byte) 4, new InstrumentMapping(Instrument.HARP, (byte) 0)); + INSTRUMENT_MAPPINGS.put((byte) 5, new InstrumentMapping(Instrument.HARP, (byte) 0)); + INSTRUMENT_MAPPINGS.put((byte) 6, new InstrumentMapping(Instrument.GUITAR, (byte) 1)); + INSTRUMENT_MAPPINGS.put((byte) 7, new InstrumentMapping(Instrument.BANJO, (byte) 0)); + INSTRUMENT_MAPPINGS.put((byte) 8, new InstrumentMapping(Instrument.BELL, (byte) -2)); + INSTRUMENT_MAPPINGS.put((byte) 9, new InstrumentMapping(Instrument.BELL, (byte) -2)); + INSTRUMENT_MAPPINGS.put((byte) 10, new InstrumentMapping(Instrument.BELL, (byte) -2)); + INSTRUMENT_MAPPINGS.put((byte) 11, new InstrumentMapping(Instrument.IRON_XYLOPHONE, (byte) 0)); + INSTRUMENT_MAPPINGS.put((byte) 12, new InstrumentMapping(Instrument.IRON_XYLOPHONE, (byte) 0)); + INSTRUMENT_MAPPINGS.put((byte) 13, new InstrumentMapping(Instrument.XYLOPHONE, (byte) -2)); + INSTRUMENT_MAPPINGS.put((byte) 14, new InstrumentMapping(Instrument.BELL, (byte) -2)); + INSTRUMENT_MAPPINGS.put((byte) 15, new InstrumentMapping(Instrument.GUITAR, (byte) 1)); + INSTRUMENT_MAPPINGS.put((byte) 16, new InstrumentMapping(Instrument.FLUTE, (byte) -1)); + INSTRUMENT_MAPPINGS.put((byte) 17, new InstrumentMapping(Instrument.IRON_XYLOPHONE, (byte) 0)); + INSTRUMENT_MAPPINGS.put((byte) 18, new InstrumentMapping(Instrument.FLUTE, (byte) -1)); + INSTRUMENT_MAPPINGS.put((byte) 19, new InstrumentMapping(Instrument.FLUTE, (byte) -1)); + INSTRUMENT_MAPPINGS.put((byte) 20, new InstrumentMapping(Instrument.FLUTE, (byte) -1)); + INSTRUMENT_MAPPINGS.put((byte) 21, new InstrumentMapping(Instrument.FLUTE, (byte) -1)); + INSTRUMENT_MAPPINGS.put((byte) 22, new InstrumentMapping(Instrument.FLUTE, (byte) -1)); + INSTRUMENT_MAPPINGS.put((byte) 23, new InstrumentMapping(Instrument.FLUTE, (byte) -1)); + INSTRUMENT_MAPPINGS.put((byte) 24, new InstrumentMapping(Instrument.GUITAR, (byte) 1)); + INSTRUMENT_MAPPINGS.put((byte) 25, new InstrumentMapping(Instrument.GUITAR, (byte) 1)); + INSTRUMENT_MAPPINGS.put((byte) 26, new InstrumentMapping(Instrument.HARP, (byte) 0)); + INSTRUMENT_MAPPINGS.put((byte) 27, new InstrumentMapping(Instrument.GUITAR, (byte) 1)); + INSTRUMENT_MAPPINGS.put((byte) 28, new InstrumentMapping(Instrument.BASS, (byte) 2)); + INSTRUMENT_MAPPINGS.put((byte) 29, new InstrumentMapping(Instrument.DIDGERIDOO, (byte) 2)); + INSTRUMENT_MAPPINGS.put((byte) 30, new InstrumentMapping(Instrument.DIDGERIDOO, (byte) 2)); + INSTRUMENT_MAPPINGS.put((byte) 31, new InstrumentMapping(Instrument.GUITAR, (byte) 3)); + INSTRUMENT_MAPPINGS.put((byte) 32, new InstrumentMapping(Instrument.BASS, (byte) 2)); INSTRUMENT_MAPPINGS.put((byte) 33, new InstrumentMapping(Instrument.BASS, (byte) 2)); INSTRUMENT_MAPPINGS.put((byte) 34, new InstrumentMapping(Instrument.BASS, (byte) 2)); INSTRUMENT_MAPPINGS.put((byte) 35, new InstrumentMapping(Instrument.BASS, (byte) 2)); - INSTRUMENT_MAPPINGS.put((byte) 36, new InstrumentMapping(Instrument.BASS, (byte) 2)); - INSTRUMENT_MAPPINGS.put((byte) 37, new InstrumentMapping(Instrument.BASS, (byte) 2)); + INSTRUMENT_MAPPINGS.put((byte) 36, new InstrumentMapping(Instrument.GUITAR, (byte) 1)); + INSTRUMENT_MAPPINGS.put((byte) 37, new InstrumentMapping(Instrument.GUITAR, (byte) 1)); INSTRUMENT_MAPPINGS.put((byte) 38, new InstrumentMapping(Instrument.BASS, (byte) 2)); - INSTRUMENT_MAPPINGS.put((byte) 39, new InstrumentMapping(Instrument.BASS, (byte) 2)); - INSTRUMENT_MAPPINGS.put((byte) 40, new InstrumentMapping(Instrument.FLUTE, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 41, new InstrumentMapping(Instrument.FLUTE, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 42, new InstrumentMapping(Instrument.FLUTE, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 43, new InstrumentMapping(Instrument.FLUTE, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 44, new InstrumentMapping(Instrument.HARP, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 45, new InstrumentMapping(Instrument.HARP, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 46, new InstrumentMapping(Instrument.CHIME, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 47, new InstrumentMapping(Instrument.SNARE, (byte) 1)); - INSTRUMENT_MAPPINGS.put((byte) 48, new InstrumentMapping(Instrument.HARP, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 49, new InstrumentMapping(Instrument.HARP, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 50, new InstrumentMapping(Instrument.HARP, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 51, new InstrumentMapping(Instrument.HARP, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 52, new InstrumentMapping(Instrument.HARP, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 53, new InstrumentMapping(Instrument.HARP, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 54, new InstrumentMapping(Instrument.HARP, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 55, new InstrumentMapping(Instrument.HARP, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 56, new InstrumentMapping(Instrument.HARP, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 57, new InstrumentMapping(Instrument.HARP, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 58, new InstrumentMapping(Instrument.HARP, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 59, new InstrumentMapping(Instrument.HARP, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 60, new InstrumentMapping(Instrument.HARP, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 61, new InstrumentMapping(Instrument.HARP, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 62, new InstrumentMapping(Instrument.BASS, (byte) 1)); - INSTRUMENT_MAPPINGS.put((byte) 63, new InstrumentMapping(Instrument.BASS, (byte) 1)); - INSTRUMENT_MAPPINGS.put((byte) 64, new InstrumentMapping(Instrument.FLUTE, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 65, new InstrumentMapping(Instrument.FLUTE, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 66, new InstrumentMapping(Instrument.FLUTE, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 67, new InstrumentMapping(Instrument.FLUTE, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 68, new InstrumentMapping(Instrument.FLUTE, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 69, new InstrumentMapping(Instrument.FLUTE, (byte) 0)); + INSTRUMENT_MAPPINGS.put((byte) 39, new InstrumentMapping(Instrument.PLING, (byte) 0)); + INSTRUMENT_MAPPINGS.put((byte) 40, new InstrumentMapping(Instrument.FLUTE, (byte) -1)); + INSTRUMENT_MAPPINGS.put((byte) 41, new InstrumentMapping(Instrument.FLUTE, (byte) -1)); + INSTRUMENT_MAPPINGS.put((byte) 42, new InstrumentMapping(Instrument.FLUTE, (byte) -1)); + INSTRUMENT_MAPPINGS.put((byte) 43, new InstrumentMapping(Instrument.FLUTE, (byte) -1)); + INSTRUMENT_MAPPINGS.put((byte) 44, new InstrumentMapping(Instrument.FLUTE, (byte) -1)); + INSTRUMENT_MAPPINGS.put((byte) 45, new InstrumentMapping(Instrument.BASS, (byte) 2)); + INSTRUMENT_MAPPINGS.put((byte) 46, new InstrumentMapping(Instrument.HARP, (byte) 0)); + INSTRUMENT_MAPPINGS.put((byte) 47, new InstrumentMapping(Instrument.SNARE, (byte) 0)); + INSTRUMENT_MAPPINGS.put((byte) 48, new InstrumentMapping(Instrument.FLUTE, (byte) -1)); + INSTRUMENT_MAPPINGS.put((byte) 49, new InstrumentMapping(Instrument.FLUTE, (byte) -1)); + INSTRUMENT_MAPPINGS.put((byte) 50, new InstrumentMapping(Instrument.FLUTE, (byte) -1)); + INSTRUMENT_MAPPINGS.put((byte) 51, new InstrumentMapping(Instrument.FLUTE, (byte) -1)); + INSTRUMENT_MAPPINGS.put((byte) 52, new InstrumentMapping(Instrument.FLUTE, (byte) -1)); + INSTRUMENT_MAPPINGS.put((byte) 53, new InstrumentMapping(Instrument.FLUTE, (byte) -1)); + INSTRUMENT_MAPPINGS.put((byte) 54, new InstrumentMapping(Instrument.FLUTE, (byte) -1)); + INSTRUMENT_MAPPINGS.put((byte) 55, new InstrumentMapping(Instrument.SNARE, (byte) -1)); + INSTRUMENT_MAPPINGS.put((byte) 56, new InstrumentMapping(Instrument.FLUTE, (byte) -1)); + INSTRUMENT_MAPPINGS.put((byte) 57, new InstrumentMapping(Instrument.FLUTE, (byte) -1)); + INSTRUMENT_MAPPINGS.put((byte) 58, new InstrumentMapping(Instrument.FLUTE, (byte) -1)); + INSTRUMENT_MAPPINGS.put((byte) 59, new InstrumentMapping(Instrument.DIDGERIDOO, (byte) 2)); + INSTRUMENT_MAPPINGS.put((byte) 60, new InstrumentMapping(Instrument.FLUTE, (byte) -1)); + INSTRUMENT_MAPPINGS.put((byte) 61, new InstrumentMapping(Instrument.DIDGERIDOO, (byte) 2)); + INSTRUMENT_MAPPINGS.put((byte) 62, new InstrumentMapping(Instrument.DIDGERIDOO, (byte) 2)); + INSTRUMENT_MAPPINGS.put((byte) 63, new InstrumentMapping(Instrument.FLUTE, (byte) -1)); + INSTRUMENT_MAPPINGS.put((byte) 64, new InstrumentMapping(Instrument.FLUTE, (byte) -1)); + INSTRUMENT_MAPPINGS.put((byte) 65, new InstrumentMapping(Instrument.FLUTE, (byte) -1)); + INSTRUMENT_MAPPINGS.put((byte) 66, new InstrumentMapping(Instrument.FLUTE, (byte) -1)); + INSTRUMENT_MAPPINGS.put((byte) 67, new InstrumentMapping(Instrument.FLUTE, (byte) -1)); + INSTRUMENT_MAPPINGS.put((byte) 68, new InstrumentMapping(Instrument.FLUTE, (byte) -1)); + INSTRUMENT_MAPPINGS.put((byte) 69, new InstrumentMapping(Instrument.FLUTE, (byte) -1)); INSTRUMENT_MAPPINGS.put((byte) 70, new InstrumentMapping(Instrument.FLUTE, (byte) -1)); - INSTRUMENT_MAPPINGS.put((byte) 71, new InstrumentMapping(Instrument.FLUTE, (byte) 0)); + INSTRUMENT_MAPPINGS.put((byte) 71, new InstrumentMapping(Instrument.FLUTE, (byte) -1)); INSTRUMENT_MAPPINGS.put((byte) 72, new InstrumentMapping(Instrument.FLUTE, (byte) -1)); INSTRUMENT_MAPPINGS.put((byte) 73, new InstrumentMapping(Instrument.FLUTE, (byte) -1)); INSTRUMENT_MAPPINGS.put((byte) 74, new InstrumentMapping(Instrument.FLUTE, (byte) -1)); @@ -108,66 +109,66 @@ public class MidiMappings { INSTRUMENT_MAPPINGS.put((byte) 77, new InstrumentMapping(Instrument.FLUTE, (byte) -1)); INSTRUMENT_MAPPINGS.put((byte) 78, new InstrumentMapping(Instrument.FLUTE, (byte) -1)); INSTRUMENT_MAPPINGS.put((byte) 79, new InstrumentMapping(Instrument.FLUTE, (byte) -1)); - INSTRUMENT_MAPPINGS.put((byte) 80, new InstrumentMapping(Instrument.HARP, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 81, new InstrumentMapping(Instrument.HARP, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 82, new InstrumentMapping(Instrument.HARP, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 83, new InstrumentMapping(Instrument.HARP, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 84, new InstrumentMapping(Instrument.HARP, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 85, new InstrumentMapping(Instrument.HARP, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 86, new InstrumentMapping(Instrument.HARP, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 87, new InstrumentMapping(Instrument.HARP, (byte) 1)); - INSTRUMENT_MAPPINGS.put((byte) 88, new InstrumentMapping(Instrument.HARP, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 89, new InstrumentMapping(Instrument.HARP, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 90, new InstrumentMapping(Instrument.HARP, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 91, new InstrumentMapping(Instrument.HARP, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 92, new InstrumentMapping(Instrument.HARP, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 93, new InstrumentMapping(Instrument.HARP, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 94, new InstrumentMapping(Instrument.HARP, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 95, new InstrumentMapping(Instrument.HARP, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 96, null); - INSTRUMENT_MAPPINGS.put((byte) 97, null); - INSTRUMENT_MAPPINGS.put((byte) 98, new InstrumentMapping(Instrument.BIT, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 99, new InstrumentMapping(Instrument.HARP, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 100, new InstrumentMapping(Instrument.HARP, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 101, null); - INSTRUMENT_MAPPINGS.put((byte) 102, null); - INSTRUMENT_MAPPINGS.put((byte) 103, null); + INSTRUMENT_MAPPINGS.put((byte) 80, new InstrumentMapping(Instrument.BIT, (byte) 0)); + INSTRUMENT_MAPPINGS.put((byte) 81, new InstrumentMapping(Instrument.FLUTE, (byte) -1)); + INSTRUMENT_MAPPINGS.put((byte) 82, new InstrumentMapping(Instrument.FLUTE, (byte) -1)); + INSTRUMENT_MAPPINGS.put((byte) 83, new InstrumentMapping(Instrument.FLUTE, (byte) -1)); + INSTRUMENT_MAPPINGS.put((byte) 84, new InstrumentMapping(Instrument.GUITAR, (byte) 1)); + INSTRUMENT_MAPPINGS.put((byte) 85, new InstrumentMapping(Instrument.FLUTE, (byte) -1)); + INSTRUMENT_MAPPINGS.put((byte) 86, new InstrumentMapping(Instrument.FLUTE, (byte) -1)); + INSTRUMENT_MAPPINGS.put((byte) 87, new InstrumentMapping(Instrument.BASS, (byte) 2)); + INSTRUMENT_MAPPINGS.put((byte) 88, new InstrumentMapping(Instrument.BELL, (byte) -2)); + INSTRUMENT_MAPPINGS.put((byte) 89, new InstrumentMapping(Instrument.FLUTE, (byte) -1)); + INSTRUMENT_MAPPINGS.put((byte) 90, new InstrumentMapping(Instrument.FLUTE, (byte) -1)); + INSTRUMENT_MAPPINGS.put((byte) 91, new InstrumentMapping(Instrument.FLUTE, (byte) -1)); + INSTRUMENT_MAPPINGS.put((byte) 92, new InstrumentMapping(Instrument.FLUTE, (byte) -1)); + INSTRUMENT_MAPPINGS.put((byte) 93, new InstrumentMapping(Instrument.FLUTE, (byte) -1)); + INSTRUMENT_MAPPINGS.put((byte) 94, new InstrumentMapping(Instrument.FLUTE, (byte) -1)); + INSTRUMENT_MAPPINGS.put((byte) 95, new InstrumentMapping(Instrument.CHIME, (byte) -2)); + INSTRUMENT_MAPPINGS.put((byte) 96, new InstrumentMapping(Instrument.CHIME, (byte) -2)); + INSTRUMENT_MAPPINGS.put((byte) 97, new InstrumentMapping(Instrument.FLUTE, (byte) -1)); + INSTRUMENT_MAPPINGS.put((byte) 98, new InstrumentMapping(Instrument.CHIME, (byte) -2)); + INSTRUMENT_MAPPINGS.put((byte) 99, new InstrumentMapping(Instrument.GUITAR, (byte) 1)); + INSTRUMENT_MAPPINGS.put((byte) 100, new InstrumentMapping(Instrument.PLING, (byte) 0)); + INSTRUMENT_MAPPINGS.put((byte) 101, new InstrumentMapping(Instrument.FLUTE, (byte) -1)); + INSTRUMENT_MAPPINGS.put((byte) 102, new InstrumentMapping(Instrument.FLUTE, (byte) -1)); + INSTRUMENT_MAPPINGS.put((byte) 103, new InstrumentMapping(Instrument.GUITAR, (byte) 1)); INSTRUMENT_MAPPINGS.put((byte) 104, new InstrumentMapping(Instrument.BANJO, (byte) 0)); INSTRUMENT_MAPPINGS.put((byte) 105, new InstrumentMapping(Instrument.BANJO, (byte) 0)); INSTRUMENT_MAPPINGS.put((byte) 106, new InstrumentMapping(Instrument.BANJO, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 107, new InstrumentMapping(Instrument.BANJO, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 108, new InstrumentMapping(Instrument.BASS, (byte) 1)); - INSTRUMENT_MAPPINGS.put((byte) 109, new InstrumentMapping(Instrument.HARP, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 110, new InstrumentMapping(Instrument.HARP, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 111, new InstrumentMapping(Instrument.HARP, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 112, new InstrumentMapping(Instrument.BELL, (byte) -1)); - INSTRUMENT_MAPPINGS.put((byte) 113, new InstrumentMapping(Instrument.HARP, (byte) 0)); + INSTRUMENT_MAPPINGS.put((byte) 107, new InstrumentMapping(Instrument.GUITAR, (byte) 1)); + INSTRUMENT_MAPPINGS.put((byte) 108, new InstrumentMapping(Instrument.IRON_XYLOPHONE, (byte) 0)); + INSTRUMENT_MAPPINGS.put((byte) 109, new InstrumentMapping(Instrument.FLUTE, (byte) -1)); + INSTRUMENT_MAPPINGS.put((byte) 110, new InstrumentMapping(Instrument.FLUTE, (byte) -1)); + INSTRUMENT_MAPPINGS.put((byte) 111, new InstrumentMapping(Instrument.FLUTE, (byte) -1)); + INSTRUMENT_MAPPINGS.put((byte) 112, new InstrumentMapping(Instrument.CHIME, (byte) -2)); + INSTRUMENT_MAPPINGS.put((byte) 113, new InstrumentMapping(Instrument.COW_BELL, (byte) -1)); INSTRUMENT_MAPPINGS.put((byte) 114, new InstrumentMapping(Instrument.IRON_XYLOPHONE, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 115, new InstrumentMapping(Instrument.HAT, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 116, new InstrumentMapping(Instrument.SNARE, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 117, new InstrumentMapping(Instrument.SNARE, (byte) -1)); + INSTRUMENT_MAPPINGS.put((byte) 115, new InstrumentMapping(Instrument.XYLOPHONE, (byte) -2)); + INSTRUMENT_MAPPINGS.put((byte) 116, new InstrumentMapping(Instrument.BASS_DRUM, (byte) 0)); + INSTRUMENT_MAPPINGS.put((byte) 117, new InstrumentMapping(Instrument.SNARE, (byte) 0)); INSTRUMENT_MAPPINGS.put((byte) 118, new InstrumentMapping(Instrument.SNARE, (byte) 0)); - INSTRUMENT_MAPPINGS.put((byte) 119, null); - INSTRUMENT_MAPPINGS.put((byte) 120, null); - INSTRUMENT_MAPPINGS.put((byte) 121, null); - INSTRUMENT_MAPPINGS.put((byte) 122, null); - INSTRUMENT_MAPPINGS.put((byte) 123, null); - INSTRUMENT_MAPPINGS.put((byte) 124, null); - INSTRUMENT_MAPPINGS.put((byte) 125, null); - INSTRUMENT_MAPPINGS.put((byte) 126, null); - INSTRUMENT_MAPPINGS.put((byte) 127, new InstrumentMapping(Instrument.HARP, (byte) 0)); + INSTRUMENT_MAPPINGS.put((byte) 119, new InstrumentMapping(Instrument.CHIME, (byte) -2)); + INSTRUMENT_MAPPINGS.put((byte) 120, new InstrumentMapping(Instrument.HAT, (byte) 1)); + INSTRUMENT_MAPPINGS.put((byte) 121, new InstrumentMapping(Instrument.FLUTE, (byte) -1)); + INSTRUMENT_MAPPINGS.put((byte) 122, new InstrumentMapping(Instrument.CHIME, (byte) -2)); + INSTRUMENT_MAPPINGS.put((byte) 123, new InstrumentMapping(Instrument.FLUTE, (byte) 1)); + INSTRUMENT_MAPPINGS.put((byte) 124, new InstrumentMapping(Instrument.BELL, (byte) 2)); + INSTRUMENT_MAPPINGS.put((byte) 125, new InstrumentMapping(Instrument.BASS_DRUM, (byte) 0)); + INSTRUMENT_MAPPINGS.put((byte) 126, new InstrumentMapping(Instrument.SNARE, (byte) 0)); + INSTRUMENT_MAPPINGS.put((byte) 127, new InstrumentMapping(Instrument.SNARE, (byte) 0)); - PERCUSSION_MAPPINGS.put((byte) 24, null); - PERCUSSION_MAPPINGS.put((byte) 25, null); - PERCUSSION_MAPPINGS.put((byte) 26, null); - PERCUSSION_MAPPINGS.put((byte) 27, null); - PERCUSSION_MAPPINGS.put((byte) 28, null); - PERCUSSION_MAPPINGS.put((byte) 29, null); - PERCUSSION_MAPPINGS.put((byte) 30, null); - PERCUSSION_MAPPINGS.put((byte) 31, null); - PERCUSSION_MAPPINGS.put((byte) 32, null); - PERCUSSION_MAPPINGS.put((byte) 33, null); - PERCUSSION_MAPPINGS.put((byte) 34, null); + PERCUSSION_MAPPINGS.put((byte) 24, new PercussionMapping(Instrument.BIT, (byte) 72)); + PERCUSSION_MAPPINGS.put((byte) 25, new PercussionMapping(Instrument.SNARE, (byte) 41)); + PERCUSSION_MAPPINGS.put((byte) 26, new PercussionMapping(Instrument.HAT, (byte) 58)); + PERCUSSION_MAPPINGS.put((byte) 27, new PercussionMapping(Instrument.SNARE, (byte) 51)); + PERCUSSION_MAPPINGS.put((byte) 28, new PercussionMapping(Instrument.SNARE, (byte) 60)); + PERCUSSION_MAPPINGS.put((byte) 29, new PercussionMapping(Instrument.HAT, (byte) 49)); + PERCUSSION_MAPPINGS.put((byte) 30, new PercussionMapping(Instrument.HAT, (byte) 46)); + PERCUSSION_MAPPINGS.put((byte) 31, new PercussionMapping(Instrument.HAT, (byte) 42)); + PERCUSSION_MAPPINGS.put((byte) 32, new PercussionMapping(Instrument.HAT, (byte) 39)); + PERCUSSION_MAPPINGS.put((byte) 33, new PercussionMapping(Instrument.HAT, (byte) 35)); + PERCUSSION_MAPPINGS.put((byte) 34, new PercussionMapping(Instrument.CHIME, (byte) 50)); PERCUSSION_MAPPINGS.put((byte) 35, new PercussionMapping(Instrument.BASS_DRUM, (byte) 43)); PERCUSSION_MAPPINGS.put((byte) 36, new PercussionMapping(Instrument.BASS_DRUM, (byte) 39)); PERCUSSION_MAPPINGS.put((byte) 37, new PercussionMapping(Instrument.HAT, (byte) 39)); @@ -204,20 +205,20 @@ public class MidiMappings { PERCUSSION_MAPPINGS.put((byte) 68, new PercussionMapping(Instrument.HAT, (byte) 36)); PERCUSSION_MAPPINGS.put((byte) 69, new PercussionMapping(Instrument.HAT, (byte) 53)); PERCUSSION_MAPPINGS.put((byte) 70, new PercussionMapping(Instrument.HAT, (byte) 56)); - PERCUSSION_MAPPINGS.put((byte) 71, null); - PERCUSSION_MAPPINGS.put((byte) 72, null); + PERCUSSION_MAPPINGS.put((byte) 71, new PercussionMapping(Instrument.FLUTE, (byte) 67)); + PERCUSSION_MAPPINGS.put((byte) 72, new PercussionMapping(Instrument.FLUTE, (byte) 66)); PERCUSSION_MAPPINGS.put((byte) 73, new PercussionMapping(Instrument.HAT, (byte) 50)); PERCUSSION_MAPPINGS.put((byte) 74, new PercussionMapping(Instrument.HAT, (byte) 44)); PERCUSSION_MAPPINGS.put((byte) 75, new PercussionMapping(Instrument.HAT, (byte) 51)); PERCUSSION_MAPPINGS.put((byte) 76, new PercussionMapping(Instrument.HAT, (byte) 42)); PERCUSSION_MAPPINGS.put((byte) 77, new PercussionMapping(Instrument.HAT, (byte) 38)); - PERCUSSION_MAPPINGS.put((byte) 78, null); - PERCUSSION_MAPPINGS.put((byte) 79, null); + PERCUSSION_MAPPINGS.put((byte) 78, new PercussionMapping(Instrument.DIDGERIDOO, (byte) 58)); + PERCUSSION_MAPPINGS.put((byte) 79, new PercussionMapping(Instrument.DIDGERIDOO, (byte) 59)); PERCUSSION_MAPPINGS.put((byte) 80, new PercussionMapping(Instrument.HAT, (byte) 50)); PERCUSSION_MAPPINGS.put((byte) 81, new PercussionMapping(Instrument.HAT, (byte) 55)); PERCUSSION_MAPPINGS.put((byte) 82, new PercussionMapping(Instrument.SNARE, (byte) 55)); - PERCUSSION_MAPPINGS.put((byte) 83, null); - PERCUSSION_MAPPINGS.put((byte) 84, null); + PERCUSSION_MAPPINGS.put((byte) 83, new PercussionMapping(Instrument.CHIME, (byte) 39)); + PERCUSSION_MAPPINGS.put((byte) 84, new PercussionMapping(Instrument.CHIME, (byte) 48)); PERCUSSION_MAPPINGS.put((byte) 85, new PercussionMapping(Instrument.HAT, (byte) 54)); PERCUSSION_MAPPINGS.put((byte) 86, new PercussionMapping(Instrument.BASS_DRUM, (byte) 47)); PERCUSSION_MAPPINGS.put((byte) 87, new PercussionMapping(Instrument.BASS_DRUM, (byte) 40));