32 use IntSaveIdMapTrait;
34 private function __construct(){
35 foreach(NoteInstrument::cases() as $case){
36 $this->
register(match($case){
37 NoteInstrument::PIANO => 0,
38 NoteInstrument::BASS_DRUM => 1,
39 NoteInstrument::SNARE => 2,
40 NoteInstrument::CLICKS_AND_STICKS => 3,
41 NoteInstrument::DOUBLE_BASS => 4,
42 NoteInstrument::BELL => 5,
43 NoteInstrument::FLUTE => 6,
44 NoteInstrument::CHIME => 7,
45 NoteInstrument::GUITAR => 8,
46 NoteInstrument::XYLOPHONE => 9,
47 NoteInstrument::IRON_XYLOPHONE => 10,
48 NoteInstrument::COW_BELL => 11,
49 NoteInstrument::DIDGERIDOO => 12,
50 NoteInstrument::BIT => 13,
51 NoteInstrument::BANJO => 14,
52 NoteInstrument::PLING => 15,