use of de.mossgrabers.framework.daw.midi.IMidiAccess in project DrivenByMoss by git-moss.
the class Kontrol1ControllerSetup method createSurface.
/**
* {@inheritDoc}
*/
@Override
protected void createSurface() {
final Kontrol1UsbDevice usbDevice = new Kontrol1UsbDevice(this.modelIndex, this.host);
usbDevice.init();
final IMidiAccess midiAccess = this.factory.createMidiAccess();
final IMidiInput input = midiAccess.createInput("Komplete Kontrol 1", "80????", /* Note off */
"90????", /* Note on */
"B040??", "B001??", /* Sustain pedal + Modulation */
"D0????", /* Channel After-touch */
"E0????");
final Kontrol1ControlSurface surface = new Kontrol1ControlSurface(this.host, this.colorManager, this.configuration, input, usbDevice);
usbDevice.setCallback(surface);
this.surfaces.add(surface);
final Kontrol1Display display = new Kontrol1Display(this.host, this.valueChanger.getUpperBound(), this.configuration, usbDevice);
surface.addTextDisplay(display);
surface.getModeManager().setDefaultID(Modes.TRACK);
}
use of de.mossgrabers.framework.daw.midi.IMidiAccess in project DrivenByMoss by git-moss.
the class KontrolProtocolControllerSetup method createSurface.
/**
* {@inheritDoc}
*/
@Override
protected void createSurface() {
final IMidiAccess midiAccess = this.factory.createMidiAccess();
final IMidiOutput output = midiAccess.createOutput();
final IMidiInput pianoInput = midiAccess.createInput(1, "Keyboard", "8?????", /* Note off */
"9?????", /* Note on */
"B?????", /* Sustain pedal + Modulation + Strip */
"D?????", /* Channel After-touch */
"E?????");
final KontrolProtocolControlSurface surface = new KontrolProtocolControlSurface(this.host, this.colorManager, this.configuration, output, midiAccess.createInput(null), this.version);
this.surfaces.add(surface);
surface.addPianoKeyboard(49, pianoInput, true);
}
use of de.mossgrabers.framework.daw.midi.IMidiAccess in project DrivenByMoss by git-moss.
the class LaunchkeyMiniMk3ControllerSetup method createSurface.
/**
* {@inheritDoc}
*/
@Override
protected void createSurface() {
final IMidiAccess midiAccess = this.factory.createMidiAccess();
final IMidiOutput output = midiAccess.createOutput();
final IMidiInput input = midiAccess.createInput("Pads", "80????", "90????", "81????", "91????", "82????", "92????", "83????", "93????", "84????", "94????", "85????", "95????", "86????", "96????", "87????", "97????", "88????", "98????", "89????", "99????", "8A????", "9A????", "8B????", "9B????", "8C????", "9C????", "8D????", "9D????", "8E????", "9E????");
this.inputKeys = midiAccess.createInput(1, "Keyboard", "8?????", /* Note off */
"9?????", /* Note on */
"B?01??", /* Modulation */
"B?40??", /* Sustainpedal */
"E?????");
final LaunchkeyMiniMk3ControlSurface surface = new LaunchkeyMiniMk3ControlSurface(this.host, this.colorManager, this.configuration, output, input, this::processProgramChangeAction);
this.surfaces.add(surface);
surface.addPianoKeyboard(25, this.inputKeys, true);
this.mvHelper = new MVHelper<>(this.model, surface);
}
Aggregations