uk.org.toot.music.composition
Class TonalComposer.Context
java.lang.Object
uk.org.toot.music.composition.AbstractComposer.Context
uk.org.toot.music.composition.TonalComposer.Context
- Enclosing class:
- TonalComposer
public static class TonalComposer.Context
- extends AbstractComposer.Context
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TonalComposer.Context
public TonalComposer.Context()
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.