Package com.softsynth.jmsl.util
Class ScrambleMusicShapeEditorOperator
java.lang.Object
com.softsynth.jmsl.util.ScrambleMusicShapeEditorOperator
- All Implemented Interfaces:
Namable
,MusicShapeEditorOperator
public class ScrambleMusicShapeEditorOperator extends java.lang.Object implements MusicShapeEditorOperator
Scramble selected range of a MusicShape in MusicShapeEditor
- Author:
- Nick Didkovsky, nick@didkovsky.com
-
Constructor Summary
Constructors Constructor Description ScrambleMusicShapeEditorOperator()
-
Method Summary
Modifier and Type Method Description java.lang.String
getName()
void
operate(MusicShapeEditor se, MusicShape s)
Scramble elements within selected range of musicshape.void
setName(java.lang.String n)
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ScrambleMusicShapeEditorOperator
public ScrambleMusicShapeEditorOperator()
-
-
Method Details
-
operate
Scramble elements within selected range of musicshape. Make method calls to MusicShapeEditor to get selected range and dimensionif (se.getRangeStartIndex() != -1 && se.getRangeEndIndex() != -1 && Limits.within(se.getDimension(), 0, s.dimension() - 1)) { s.scramble(se.getRangeStartIndex(), se.getRangeEndIndex(), se.getDimension()); }
- Specified by:
operate
in interfaceMusicShapeEditorOperator
-
getName
public java.lang.String getName() -
setName
public void setName(java.lang.String n)
-