Ejemplo n.º 1
0
    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);
    }
Ejemplo n.º 2
0
    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);
    }