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]);
}
Aggregations