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, nick@didkovsky.com
  • Constructor Summary

    Constructors
    Constructor Description
    ScaleToTotalMusicShapeEditorOperator()  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getName()  
    void operate​(MusicShapeEditor se, MusicShape s)
    Scale the selected range of MusicShape so that the total of the elements in this dimension equals v1
    void setName​(java.lang.String n)  

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ScaleToTotalMusicShapeEditorOperator

      public ScaleToTotalMusicShapeEditorOperator()
  • Method Details