use of de.mossgrabers.framework.daw.midi.IMidiAccess in project DrivenByMoss by git-moss.
the class LaunchpadControllerSetup method createSurface.
/**
* {@inheritDoc}
*/
@Override
protected void createSurface() {
final IMidiAccess midiAccess = this.factory.createMidiAccess();
final IMidiOutput output = midiAccess.createOutput();
final IMidiInput input = midiAccess.createInput(this.isPro ? "Novation Launchpad Pro" : "Novation Launchpad MkII", "80????", /* Note off */
"90????");
final LaunchpadControlSurface surface = new LaunchpadControlSurface(this.model.getHost(), this.colorManager, this.configuration, output, input, this.isPro);
this.surfaces.add(surface);
surface.setDisplay(new DummyDisplay(this.host));
surface.setLaunchpadToStandalone();
}
use of de.mossgrabers.framework.daw.midi.IMidiAccess in project DrivenByMoss by git-moss.
the class GenericFlexiControllerSetup method createSurface.
/**
* {@inheritDoc}
*/
@Override
protected void createSurface() {
final IMidiAccess midiAccess = this.factory.createMidiAccess();
final IMidiOutput output = midiAccess.createOutput();
final String inputName;
if (this.configuration.isMPEEndabled())
inputName = "Generic Flexi (MPE)";
else
inputName = this.configuration.getKeyboardChannel() < 0 ? null : "Generic Flexi";
final List<String> filters = this.getMidiFilters();
final IMidiInput input = midiAccess.createInput(inputName, filters.toArray(new String[filters.size()]));
final GenericFlexiControlSurface surface = new GenericFlexiControlSurface(this.host, this.configuration, this.colorManager, output, input);
this.surfaces.add(surface);
this.registerHandlers(surface);
this.configuration.setCommandObserver(this);
}
use of de.mossgrabers.framework.daw.midi.IMidiAccess in project DrivenByMoss by git-moss.
the class BeatstepControllerSetup method createSurface.
/**
* {@inheritDoc}
*/
@Override
protected void createSurface() {
final IMidiAccess midiAccess = this.factory.createMidiAccess();
final IMidiOutput output = midiAccess.createOutput();
final IMidiInput input = midiAccess.createInput("Control/Pads", "82????", "92????", "A2????");
// Sequencer 1 is on channel 1
final INoteInput seqNoteInput = input.createNoteInput("Hardware Sequencer", "90????", "80????");
final Integer[] table = new Integer[128];
for (int i = 0; i < 128; i++) {
// Block the Shift key
table[i] = Integer.valueOf(i == 7 ? -1 : i);
}
seqNoteInput.setKeyTranslationTable(table);
this.surfaces.add(new BeatstepControlSurface(this.host, this.colorManager, this.configuration, output, input));
}
use of de.mossgrabers.framework.daw.midi.IMidiAccess 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);
}
use of de.mossgrabers.framework.daw.midi.IMidiAccess in project DrivenByMoss by git-moss.
the class MaschineControllerSetup method createSurface.
/**
* {@inheritDoc}
*/
@Override
protected void createSurface() {
final IMidiAccess midiAccess = this.factory.createMidiAccess();
final IMidiOutput output = midiAccess.createOutput();
final IMidiInput input = midiAccess.createInput(this.maschine.getName(), "80????", "90????", "A0????", "D0????");
final MaschineControlSurface surface = new MaschineControlSurface(this.host, this.colorManager, this.maschine, this.configuration, output, input);
this.surfaces.add(surface);
if (this.maschine.hasMCUDisplay()) {
final MCUDisplay display = new MCUDisplay(this.host, output, true, false, false);
display.setCenterNotification(false);
surface.addTextDisplay(display);
}
}
Aggregations