use of de.mossgrabers.framework.daw.midi.IMidiOutput 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.IMidiOutput in project DrivenByMoss by git-moss.
the class MCUControlSurface method internalShutdown.
/**
* {@inheritDoc}
*/
@Override
protected void internalShutdown() {
final IMidiOutput output = this.getMidiOutput();
for (int i = 0; i < 8; i++) {
output.sendChannelAftertouch(0x10 * i, 0);
output.sendPitchbend(i, 0, 0);
}
output.sendChannelAftertouch(1, 0, 0);
output.sendChannelAftertouch(1, 0x10, 0);
output.sendPitchbend(8, 0, 0);
super.internalShutdown();
}
use of de.mossgrabers.framework.daw.midi.IMidiOutput in project DrivenByMoss by git-moss.
the class SLControllerSetup method createSurface.
/**
* {@inheritDoc}
*/
@Override
protected void createSurface() {
final IMidiAccess midiAccess = this.factory.createMidiAccess();
final IMidiOutput output = midiAccess.createOutput();
final IMidiInput input = midiAccess.createInput(this.isMkII ? "Novation SL MkII (Drumpads)" : "Novation SL MkI (Drumpads)", "90????", "80????");
final IMidiInput keyboardInput = midiAccess.createInput(1, this.isMkII ? "Novation SL MkII (Keyboard)" : "Novation SL MkI (Keyboard)", "80????", "90????", "B0????", "D0????", "E0????");
final IHost hostProxy = this.model.getHost();
final SLControlSurface surface = new SLControlSurface(hostProxy, this.colorManager, this.configuration, output, input, this.isMkII);
this.surfaces.add(surface);
surface.addPianoKeyboard(25, keyboardInput, true);
}
Aggregations