use of de.mossgrabers.controller.ni.kontrol.mkii.controller.KontrolProtocolControlSurface in project DrivenByMoss by git-moss.
the class KontrolProtocolControllerSetup method startup.
/**
* {@inheritDoc}
*/
@Override
public void startup() {
final KontrolProtocolControlSurface surface = this.getSurface();
surface.getViewManager().setActive(Views.CONTROL);
surface.getModeManager().setActive(Modes.VOLUME);
surface.initHandshake();
}
use of de.mossgrabers.controller.ni.kontrol.mkii.controller.KontrolProtocolControlSurface in project DrivenByMoss by git-moss.
the class KontrolProtocolControllerSetup method layoutControls.
/**
* {@inheritDoc}
*/
@Override
protected void layoutControls() {
final KontrolProtocolControlSurface surface = this.getSurface();
surface.getButton(ButtonID.PLAY).setBounds(20.25, 149.5, 31.75, 22.75);
surface.getButton(ButtonID.NEW).setBounds(20.25, 179.5, 31.75, 22.75);
surface.getButton(ButtonID.RECORD).setBounds(63.0, 149.25, 31.75, 22.75);
surface.getButton(ButtonID.REC_ARM).setBounds(63.0, 179.25, 31.75, 22.75);
surface.getButton(ButtonID.STOP).setBounds(105.75, 149.5, 31.75, 22.75);
surface.getButton(ButtonID.LOOP).setBounds(20.25, 120.5, 31.75, 22.75);
surface.getButton(ButtonID.METRONOME).setBounds(63.0, 120.5, 31.75, 22.75);
surface.getButton(ButtonID.TAP_TEMPO).setBounds(105.75, 120.5, 31.75, 22.75);
surface.getButton(ButtonID.UNDO).setBounds(21.0, 43.0, 31.75, 22.75);
surface.getButton(ButtonID.REDO).setBounds(21.0, 75.5, 31.75, 22.75);
surface.getButton(ButtonID.QUANTIZE).setBounds(63.75, 43.0, 31.75, 22.75);
surface.getButton(ButtonID.AUTOMATION).setBounds(106.5, 43.0, 31.75, 22.75);
surface.getButton(ButtonID.DELETE).setBounds(225.75, 120.5, 31.75, 22.75);
surface.getButton(ButtonID.MUTE).setBounds(194.0, 43.0, 24.25, 22.75);
surface.getButton(ButtonID.SOLO).setBounds(226.25, 43.0, 24.25, 22.75);
surface.getButton(ButtonID.ROW_SELECT_1).setBounds(276.0, 43.0, 39.75, 16.0);
surface.getButton(ButtonID.ROW_SELECT_2).setBounds(330.5, 43.0, 39.75, 16.0);
surface.getButton(ButtonID.ROW_SELECT_3).setBounds(385.0, 43.0, 39.75, 16.0);
surface.getButton(ButtonID.ROW_SELECT_4).setBounds(439.5, 43.0, 39.75, 16.0);
surface.getButton(ButtonID.ROW_SELECT_5).setBounds(494.0, 43.0, 39.75, 16.0);
surface.getButton(ButtonID.ROW_SELECT_6).setBounds(548.5, 43.0, 39.75, 16.0);
surface.getButton(ButtonID.ROW_SELECT_7).setBounds(602.75, 43.0, 39.75, 16.0);
surface.getButton(ButtonID.ROW_SELECT_8).setBounds(657.25, 43.0, 39.75, 16.0);
surface.getButton(ButtonID.ROW1_1).setBounds(276.0, 67.5, 39.75, 16.0);
surface.getButton(ButtonID.ROW1_2).setBounds(330.5, 67.5, 39.75, 16.0);
surface.getButton(ButtonID.ROW1_3).setBounds(385.0, 67.5, 39.75, 16.0);
surface.getButton(ButtonID.ROW1_4).setBounds(439.5, 67.5, 39.75, 16.0);
surface.getButton(ButtonID.ROW1_5).setBounds(494.0, 67.5, 39.75, 16.0);
surface.getButton(ButtonID.ROW1_6).setBounds(548.5, 67.5, 39.75, 16.0);
surface.getButton(ButtonID.ROW1_7).setBounds(602.75, 67.5, 39.75, 16.0);
surface.getButton(ButtonID.ROW1_8).setBounds(657.25, 67.5, 39.75, 16.0);
surface.getButton(ButtonID.ROW2_1).setBounds(276.0, 92.25, 39.75, 16.0);
surface.getButton(ButtonID.ROW2_2).setBounds(330.5, 92.25, 39.75, 16.0);
surface.getButton(ButtonID.ROW2_3).setBounds(385.0, 92.25, 39.75, 16.0);
surface.getButton(ButtonID.ROW2_4).setBounds(439.5, 92.25, 39.75, 16.0);
surface.getButton(ButtonID.ROW2_5).setBounds(494.0, 92.25, 39.75, 16.0);
surface.getButton(ButtonID.ROW2_6).setBounds(548.5, 92.25, 39.75, 16.0);
surface.getButton(ButtonID.ROW2_7).setBounds(602.75, 92.25, 39.75, 16.0);
surface.getButton(ButtonID.ROW2_8).setBounds(657.25, 92.25, 39.75, 16.0);
surface.getButton(ButtonID.ROW3_1).setBounds(276.0, 116.75, 39.75, 16.0);
surface.getButton(ButtonID.ROW3_2).setBounds(330.5, 116.75, 39.75, 16.0);
surface.getButton(ButtonID.ROW3_3).setBounds(385.0, 116.75, 39.75, 16.0);
surface.getButton(ButtonID.ROW3_4).setBounds(439.5, 116.75, 39.75, 16.0);
surface.getButton(ButtonID.ROW3_5).setBounds(494.0, 116.75, 39.75, 16.0);
surface.getButton(ButtonID.ROW3_6).setBounds(548.5, 116.75, 39.75, 16.0);
surface.getButton(ButtonID.ROW3_7).setBounds(602.75, 116.75, 39.75, 16.0);
surface.getButton(ButtonID.ROW3_8).setBounds(657.25, 116.75, 39.75, 16.0);
surface.getButton(ButtonID.BANK_LEFT).setBounds(188.5, 78.5, 29.75, 20.5);
surface.getButton(ButtonID.BANK_RIGHT).setBounds(225.75, 78.5, 29.75, 20.5);
surface.getButton(ButtonID.MOVE_TRACK_LEFT).setBounds(705.5, 188.5, 29.75, 20.5);
surface.getButton(ButtonID.MOVE_TRACK_RIGHT).setBounds(751.0, 188.5, 29.75, 20.5);
surface.getButton(ButtonID.ARROW_UP).setBounds(727.25, 163.25, 29.75, 20.5);
surface.getButton(ButtonID.ARROW_DOWN).setBounds(727.25, 211.5, 29.75, 20.5);
surface.getButton(ButtonID.CLIP).setBounds(512.75, 0.75, 31.75, 22.75);
surface.getButton(ButtonID.STOP_CLIP).setBounds(550.25, 0.75, 31.75, 22.75);
surface.getButton(ButtonID.SCENE1).setBounds(588.0, 0.75, 31.75, 22.75);
surface.getButton(ButtonID.F1).setBounds(637.5, 0.75, 31.75, 22.75);
surface.getButton(ButtonID.F2).setBounds(675.25, 0.75, 31.75, 22.75);
surface.getContinuous(ContinuousID.MOVE_TRANSPORT).setBounds(713.5, 40.75, 27.75, 29.75);
surface.getContinuous(ContinuousID.MOVE_LOOP).setBounds(752.25, 40.75, 27.75, 29.75);
surface.getContinuous(ContinuousID.NAVIGATE_VOLUME).setBounds(713.5, 80.75, 27.75, 29.75);
surface.getContinuous(ContinuousID.NAVIGATE_PAN).setBounds(752.25, 80.75, 27.75, 29.75);
surface.getContinuous(ContinuousID.KNOB1).setBounds(284.0, 143.25, 28.0, 29.25);
surface.getContinuous(ContinuousID.FADER1).setBounds(284.0, 178.5, 28.0, 29.25);
surface.getContinuous(ContinuousID.KNOB2).setBounds(338.25, 143.25, 28.0, 29.25);
surface.getContinuous(ContinuousID.FADER2).setBounds(338.25, 178.5, 28.0, 29.25);
surface.getContinuous(ContinuousID.KNOB3).setBounds(392.5, 143.25, 28.0, 29.25);
surface.getContinuous(ContinuousID.FADER3).setBounds(392.75, 178.5, 28.0, 29.25);
surface.getContinuous(ContinuousID.KNOB4).setBounds(446.75, 143.25, 28.0, 29.25);
surface.getContinuous(ContinuousID.FADER4).setBounds(447.0, 178.5, 28.0, 29.25);
surface.getContinuous(ContinuousID.KNOB5).setBounds(501.25, 143.25, 28.0, 29.25);
surface.getContinuous(ContinuousID.FADER5).setBounds(501.25, 178.5, 28.0, 29.25);
surface.getContinuous(ContinuousID.KNOB6).setBounds(555.5, 143.25, 28.0, 29.25);
surface.getContinuous(ContinuousID.FADER6).setBounds(555.75, 178.5, 28.0, 29.25);
surface.getContinuous(ContinuousID.KNOB7).setBounds(609.75, 143.25, 28.0, 29.25);
surface.getContinuous(ContinuousID.FADER7).setBounds(610.0, 178.5, 28.0, 29.25);
surface.getContinuous(ContinuousID.KNOB8).setBounds(664.25, 143.25, 28.0, 29.25);
surface.getContinuous(ContinuousID.FADER8).setBounds(664.25, 178.5, 28.0, 29.25);
surface.getContinuous(ContinuousID.MODULATION_WHEEL).setBounds(100.0, 222.75, 22.75, 67.5);
surface.getContinuous(ContinuousID.PITCHBEND_WHEEL).setBounds(65.5, 222.75, 22.75, 67.5);
surface.getPianoKeyboard().setBounds(162.75, 218.5, 531.5, 79.75);
}
use of de.mossgrabers.controller.ni.kontrol.mkii.controller.KontrolProtocolControlSurface 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);
}
Aggregations