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, didkovn@mail.rockefeller.edu
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScrambleMusicShapeEditorOperator
public ScrambleMusicShapeEditorOperator()
operate
public void operate(MusicShapeEditor se,
MusicShape s)
- Scramble elements within selected range of musicshape.
Make method calls to MusicShapeEditor to get selected range and dimension
if (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 interface MusicShapeEditorOperator
getName
public java.lang.String getName()
- Specified by:
getName
in interface Namable
setName
public void setName(java.lang.String n)
- Specified by:
setName
in interface Namable