Search in sources :

Example 6 with RecordQuantization

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

the class ITrack method previousRecordQuantization.

/**
 * Select the next automation write mode.
 */
default void previousRecordQuantization() {
    final RecordQuantization[] recordQuantizations = RecordQuantization.values();
    final RecordQuantization recordQuantization = this.getRecordQuantizationGrid();
    int pos = Arrays.asList(recordQuantizations).indexOf(recordQuantization) - 1;
    if (pos < 0)
        pos = recordQuantizations.length - 1;
    this.setRecordQuantizationGrid(recordQuantizations[pos]);
}
Also used : RecordQuantization(de.mossgrabers.framework.daw.constants.RecordQuantization)

Aggregations

RecordQuantization (de.mossgrabers.framework.daw.constants.RecordQuantization)6 ITrack (de.mossgrabers.framework.daw.data.ITrack)4