uk.org.toot.music.composition
Class BarContext

java.lang.Object
  extended by uk.org.toot.music.composition.BarContext

public class BarContext
extends java.lang.Object

A BarContext is passed to BarComposer.composeBar

Author:
st

Constructor Summary
BarContext()
           
 
Method Summary
 int[] getAvoidNotes()
           
 Key[] getKeys()
           
 int[] getKeyTimes()
           
 int getMeter()
           
 Key getPreviousKey()
           
 void reset()
           
 void setAvoidNotes(int[] avoidNotes)
           
 void setKeys(Key[] keys)
          Set the key changes
 void setKeyTimes(int[] keyTimes)
           
 void setMeter(int meter)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BarContext

public BarContext()
Method Detail

reset

public void reset()

getMeter

public int getMeter()

setMeter

public void setMeter(int meter)

getPreviousKey

public Key getPreviousKey()

getKeys

public Key[] getKeys()
Returns:
the key changes

setKeys

public void setKeys(Key[] keys)
Set the key changes

Parameters:
keys - the keys to set

getKeyTimes

public int[] getKeyTimes()
Returns:
the keyTimes

setKeyTimes

public void setKeyTimes(int[] keyTimes)
Parameters:
keyTimes - the keyTimes to set

setAvoidNotes

public void setAvoidNotes(int[] avoidNotes)

getAvoidNotes

public int[] getAvoidNotes()


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