use of de.mossgrabers.framework.controller.hardware.IHwFader in project DrivenByMoss by git-moss.
the class AbstractControllerSetup method addFader.
/**
* Create a hardware fader proxy on controller device 1, bind a continuous command to it and
* bind it to a MIDI pitchbend.
*
* @param surface The control surface
* @param continuousID The ID of the control (for later access)
* @param label The label of the fader
* @param command The command to bind
* @param midiChannel The MIDI channel
* @return The created fader
*/
protected IHwFader addFader(final S surface, final ContinuousID continuousID, final String label, final PitchbendCommand command, final int midiChannel) {
final IHwFader fader = surface.createFader(continuousID, label, true);
if (command != null)
fader.bind(command);
fader.bind(surface.getMidiInput(), BindType.PITCHBEND, midiChannel, 0);
return fader;
}
use of de.mossgrabers.framework.controller.hardware.IHwFader in project DrivenByMoss by git-moss.
the class AbstractControllerSetup method addFader.
/**
* Create a hardware fader proxy on a controller, bind a continuous command to it and bind it to
* a MIDI CC.
*
* @param surface The control surface
* @param continuousID The ID of the control (for later access)
* @param label The label of the fader
* @param command The command to bind
* @param bindType The MIDI bind type
* @param midiChannel The MIDI channel
* @param midiControl The MIDI CC or note
* @param isVertical True if the fader is vertical, otherwise horizontal
* @return The created fader
*/
protected IHwFader addFader(final S surface, final ContinuousID continuousID, final String label, final ContinuousCommand command, final BindType bindType, final int midiChannel, final int midiControl, final boolean isVertical) {
final IHwFader fader = surface.createFader(continuousID, label, isVertical);
fader.bind(command);
fader.bind(surface.getMidiInput(), bindType, midiChannel, midiControl);
return fader;
}
Aggregations