uk.org.toot.music.composition
Class TonalComposer.Context

java.lang.Object
  extended by uk.org.toot.music.composition.AbstractComposer.Context
      extended by uk.org.toot.music.composition.TonalComposer.Context
Enclosing class:
TonalComposer

public static class TonalComposer.Context
extends AbstractComposer.Context


Constructor Summary
TonalComposer.Context()
           
 
Method Summary
 float getLeapProbability()
           
 float getLegato()
           
 int getMaxPitch()
           
 int getMaxPitchChange()
           
 int getMaxPoly()
           
 float getMelodyProbability()
           
 int getMinPitch()
           
 int getMinPoly()
           
 float getTertianProbability()
           
 int nextPitch(int pitch, Key key)
           
 void setLeapProbability(float stepProbability)
           
 void setLegato(float legato)
          Set the proportion of full legato that a note should sustain.
 void setMaxPitch(int maxPitch)
           
 void setMaxPitchChange(int maxPitchChange)
           
 void setMaxPoly(int maxPoly)
           
 void setMelodyProbability(float melody)
           
 void setMinPitch(int minPitch)
           
 void setMinPoly(int minPoly)
           
 void setTertianProbability(float tertianProbability)
           
 
Methods inherited from class uk.org.toot.music.composition.AbstractComposer.Context
getLevel, getLevelDeviation, getRepeatTimingProbability, getTimingStrategy, setLevel, setLevelDeviation, setRepeatTimingProbability, setTimingStrategy
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TonalComposer.Context

public TonalComposer.Context()
Method Detail

nextPitch

public int nextPitch(int pitch,
                     Key key)

getMinPitch

public int getMinPitch()
Returns:
the minPitch

setMinPitch

public void setMinPitch(int minPitch)
Parameters:
minPitch - the minPitch to set

getMaxPitch

public int getMaxPitch()
Returns:
the maxPitch

setMaxPitch

public void setMaxPitch(int maxPitch)
Parameters:
maxPitch - the maxPitch to set

getMaxPitchChange

public int getMaxPitchChange()
Returns:
the maxPitchChange

setMaxPitchChange

public void setMaxPitchChange(int maxPitchChange)
Parameters:
maxPitchChange - the maxPitchChange to set

getLegato

public float getLegato()
Returns:
the proportion of full legato that a note sustains

setLegato

public void setLegato(float legato)
Set the proportion of full legato that a note should sustain.

Parameters:
legato - the proportion of full legato, 0..1f

getMaxPoly

public int getMaxPoly()
Returns:
the maxPoly

setMaxPoly

public void setMaxPoly(int maxPoly)
Parameters:
maxPoly - the maxPoly to set

getMinPoly

public int getMinPoly()
Returns:
the minPoly

setMinPoly

public void setMinPoly(int minPoly)
Parameters:
minPoly - the minPoly to set

getMelodyProbability

public float getMelodyProbability()
Returns:
the melody

setMelodyProbability

public void setMelodyProbability(float melody)
Parameters:
melody - the melody to set

getTertianProbability

public float getTertianProbability()
Returns:
the tertianProbability

setTertianProbability

public void setTertianProbability(float tertianProbability)
Parameters:
tertianProbability - the tertianProbability to set

getLeapProbability

public float getLeapProbability()
Returns:
the stepProbability

setLeapProbability

public void setLeapProbability(float stepProbability)
Parameters:
stepProbability - the stepProbability to set


Copyright © 2004, 2005, 2006, 2007 Steve Taylor. All Rights Reserved.