uk.org.toot.music.composition
Class TonalComposer

java.lang.Object
  extended by uk.org.toot.music.composition.AbstractComposer
      extended by uk.org.toot.music.composition.TonalComposer
All Implemented Interfaces:
BarComposer

public class TonalComposer
extends AbstractComposer

This class composes melodies, one bar at a time.

Author:
st

Nested Class Summary
static class TonalComposer.Context
           
 
Constructor Summary
TonalComposer(java.lang.String name)
           
 
Method Summary
 int[] composeBar(BarContext barContext)
          Create a 4/4 bar of notes in the specified Keys, changed at the specified times.
 TonalComposer.Context getContext()
           
 java.lang.String getName()
           
 
Methods inherited from class uk.org.toot.music.composition.AbstractComposer
setContext
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TonalComposer

public TonalComposer(java.lang.String name)
Method Detail

getName

public java.lang.String getName()

composeBar

public int[] composeBar(BarContext barContext)
Description copied from interface: BarComposer
Create a 4/4 bar of notes in the specified Keys, changed at the specified times.


getContext

public TonalComposer.Context getContext()
Overrides:
getContext in class AbstractComposer
Returns:
the context


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