public static bool GetKeyDown(MidiChannel channel, int noteNumber) { return instance.channelArray [(int)channel].noteArray [noteNumber] > 1.0f; }
void CheckButton() { for (int i = 0; i < buttonCount; i++) { if (MidiInput.GetKeyDown(i)) { Messenger.Broadcast(buttonEventPrefix + i); } } }