Package jmsltutorial

Class MutationMeanTransform

java.lang.Object
com.softsynth.jmsl.score.BinaryCopyBufferTransform
jmsltutorial.MutationMeanTransform
All Implemented Interfaces:
JMSLPlugin

public class MutationMeanTransform
extends BinaryCopyBufferTransform
implements JMSLPlugin
MutationMeanTransform
The resulting melody is the pitch mean and duration mean of the two sources, specifically:
  • the pitch of the resulting Noten = mean pitch of Aux1Noten and Aux2Noten
  • the duration of the resulting Noten = mean duration of Aux1Noten and Aux2Noten
Author:
Nick Didkovsky, copyright 2000 Nick Didkovsky, all rights reserved
  • Field Summary

    Fields
    Modifier and Type Field Description
    static java.lang.String copyright  
  • Constructor Summary

    Constructors
    Constructor Description
    MutationMeanTransform()  
  • Method Summary

    Modifier and Type Method Description
    double getMutationIndex()  
    void operate​(CopyBuffer fromBuffer1, CopyBuffer fromBuffer2, CopyBuffer toBuffer)
    Operate on CopyBuffer source1 & source2, sending result to CopyBuffer result.
    void setMutationIndex​(double m)  

    Methods inherited from class com.softsynth.jmsl.score.BinaryCopyBufferTransform

    getName, setName

    Methods inherited from class java.lang.Object

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

  • Constructor Details

    • MutationMeanTransform

      public MutationMeanTransform()
  • Method Details

    • setMutationIndex

      public void setMutationIndex​(double m)
    • getMutationIndex

      public double getMutationIndex()
    • operate

      public void operate​(CopyBuffer fromBuffer1, CopyBuffer fromBuffer2, CopyBuffer toBuffer)
      Description copied from class: BinaryCopyBufferTransform
      Operate on CopyBuffer source1 & source2, sending result to CopyBuffer result. Don't forget to result.removeAllElements() first!
      Specified by:
      operate in class BinaryCopyBufferTransform