public void KnobInput(MidiChannel channel, int dialNumber, float valueChanged) { foreach (midiInput dial in AllDials) { if (dial.channel == channel && dial.number == dialNumber) { return; } } midiInput newInput = new midiInput(channel, dialNumber); AllDials.Add(newInput); }
public void ButtonPressed(MidiChannel channel, int noteNumber, float velocity) { foreach (midiInput button in AllButtons) { if (button.channel == channel && button.number == noteNumber) { return; } } midiInput newInput = new midiInput(channel, noteNumber); AllButtons.Add(newInput); }