Search in sources :

Example 1 with ModelSetup

use of de.mossgrabers.framework.daw.ModelSetup in project DrivenByMoss by git-moss.

the class LaunchkeyMiniMk3ControllerSetup method createModel.

/**
 * {@inheritDoc}
 */
@Override
protected void createModel() {
    final ModelSetup ms = new ModelSetup();
    ms.setHasFlatTrackList(true);
    ms.setHasFullFlatTrackList(this.configuration.areMasterTracksIncluded());
    ms.setNumScenes(2);
    ms.setNumSends(8);
    this.model = this.factory.createModel(this.configuration, this.colorManager, this.valueChanger, this.scales, ms);
    this.model.getTrackBank().setIndication(true);
}
Also used : ModelSetup(de.mossgrabers.framework.daw.ModelSetup)

Example 2 with ModelSetup

use of de.mossgrabers.framework.daw.ModelSetup in project DrivenByMoss by git-moss.

the class LaunchkeyMk3ControllerSetup method createModel.

/**
 * {@inheritDoc}
 */
@Override
protected void createModel() {
    final ModelSetup ms = new ModelSetup();
    ms.setHasFlatTrackList(true);
    ms.setHasFullFlatTrackList(this.configuration.areMasterTracksIncluded());
    ms.setNumParamPages(16);
    ms.setNumScenes(2);
    ms.setNumSends(2);
    this.model = this.factory.createModel(this.configuration, this.colorManager, this.valueChanger, this.scales, ms);
    this.model.getTrackBank().setIndication(true);
}
Also used : ModelSetup(de.mossgrabers.framework.daw.ModelSetup)

Example 3 with ModelSetup

use of de.mossgrabers.framework.daw.ModelSetup in project DrivenByMoss by git-moss.

the class MaschineControllerSetup method createModel.

/**
 * {@inheritDoc}
 */
@Override
protected void createModel() {
    final ModelSetup ms = new ModelSetup();
    ms.setHasFullFlatTrackList(true);
    ms.setNumTracks(this.maschine.hasGroupButtons() ? 8 : 16);
    ms.setNumDevicesInBank(16);
    ms.setNumScenes(16);
    this.model = this.factory.createModel(this.configuration, this.colorManager, this.valueChanger, this.scales, ms);
    final ITrackBank trackBank = this.model.getTrackBank();
    trackBank.setIndication(true);
    trackBank.addSelectionObserver((index, isSelected) -> this.handleTrackChange(isSelected));
}
Also used : ITrackBank(de.mossgrabers.framework.daw.data.bank.ITrackBank) ModelSetup(de.mossgrabers.framework.daw.ModelSetup)

Example 4 with ModelSetup

use of de.mossgrabers.framework.daw.ModelSetup in project DrivenByMoss by git-moss.

the class KontrolProtocolControllerSetup method createModel.

/**
 * {@inheritDoc}
 */
@Override
protected void createModel() {
    final ModelSetup ms = new ModelSetup();
    ms.enableDrumDevice(false);
    ms.enableDevice(DeviceID.NI_KOMPLETE);
    ms.setHasFullFlatTrackList(true);
    ms.setNumFilterColumnEntries(0);
    ms.setNumResults(0);
    ms.setNumDeviceLayers(0);
    ms.setNumDrumPadLayers(0);
    ms.setNumMarkers(0);
    this.model = this.factory.createModel(this.configuration, this.colorManager, this.valueChanger, this.scales, ms);
}
Also used : ModelSetup(de.mossgrabers.framework.daw.ModelSetup)

Example 5 with ModelSetup

use of de.mossgrabers.framework.daw.ModelSetup in project DrivenByMoss by git-moss.

the class OSCControllerSetup method createModel.

/**
 * {@inheritDoc}
 */
@Override
protected void createModel() {
    final int bankPageSize = this.configuration.getBankPageSize();
    final ModelSetup ms = new ModelSetup();
    ms.enableDevice(DeviceID.FIRST_INSTRUMENT);
    ms.enableDevice(DeviceID.EQ);
    ms.setHasFlatTrackList(false);
    ms.setNumTracks(bankPageSize);
    ms.setNumScenes(bankPageSize);
    ms.setNumSends(bankPageSize);
    ms.setNumDevicesInBank(bankPageSize);
    ms.setNumDeviceLayers(bankPageSize);
    ms.setNumParamPages(bankPageSize);
    ms.setNumParams(bankPageSize);
    ms.setNumUserPageSize(bankPageSize);
    ms.setNumMarkers(bankPageSize);
    this.model = this.factory.createModel(this.configuration, this.colorManager, this.valueChanger, this.scales, ms);
}
Also used : ModelSetup(de.mossgrabers.framework.daw.ModelSetup)

Aggregations

ModelSetup (de.mossgrabers.framework.daw.ModelSetup)11 ITrackBank (de.mossgrabers.framework.daw.data.bank.ITrackBank)1