MidiInput.GetKeyDown C# (CSharp) Method

GetKeyDown() public static method

public static GetKeyDown ( MidiChannel channel, int noteNumber ) : bool
channel MidiChannel
noteNumber int
return bool
    public static bool GetKeyDown(MidiChannel channel, int noteNumber)
    {
        return instance.channelArray [(int)channel].noteArray [noteNumber] > 1.0f;
    }

Same methods

MidiInput::GetKeyDown ( int noteNumber ) : bool

Usage Example

Esempio n. 1
0
 void CheckButton()
 {
     for (int i = 0; i < buttonCount; i++)
     {
         if (MidiInput.GetKeyDown(i))
         {
             Messenger.Broadcast(buttonEventPrefix + i);
         }
     }
 }
All Usage Examples Of MidiInput::GetKeyDown