Beispiel #1
0
        public SimplisticPianoNote(ChannelMessage message)
        {
            message.NullCheck();
            SimplisticPianoNote.PianoNoteRetriever.IndexInRange((int)message.MidiChannel).AssertTrue();

            this.Note    = SimplisticPianoNote.PianoNoteRetriever.RetrieveNote(message).Note;
            this.Message = message;
        }
Beispiel #2
0
        public static GeneralMidiInstrument Instrument(this ChannelMessage message)
        {
            message.NullCheck();

            return((GeneralMidiInstrument)Enum.ToObject(typeof(GeneralMidiInstrument), message.MidiChannel));
        }