com.softsynth.jmsl.util
Class ScaleToTotalMusicShapeEditorOperator
java.lang.Object
com.softsynth.jmsl.util.ScaleToTotalMusicShapeEditorOperator
- All Implemented Interfaces:
- Namable, MusicShapeEditorOperator
public class ScaleToTotalMusicShapeEditorOperator
- extends java.lang.Object
- implements MusicShapeEditorOperator
Sum the total of selected range. Rescale each element so that the sum equals the v1 value in MusicShapeEditor.
For example, select duration dimension of all notes in a measure of 4/4. Rescale to v1=3 and transpose into a measure of 3/4
- Author:
- Nick Didkovsky, didkovn@mail.rockefeller.edu
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScaleToTotalMusicShapeEditorOperator
public ScaleToTotalMusicShapeEditorOperator()
operate
public void operate(MusicShapeEditor se,
MusicShape s)
- Scale the selected range of MusicShape so that the total of the elements in this dimension
equals v1
- 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