uk.org.toot.music.tonality
Class Chord.AbstractProgression

java.lang.Object
  extended by uk.org.toot.music.tonality.Chord.AbstractProgression
All Implemented Interfaces:
Chord.Progression
Direct Known Subclasses:
Chord.CountdownProgression, Chord.I_bIII_bVI_bII_TurnAround, Chord.ii_V7_I_I_Progression
Enclosing class:
Chord

public abstract static class Chord.AbstractProgression
extends java.lang.Object
implements Chord.Progression


Constructor Summary
Chord.AbstractProgression(int barCount, int stepCount)
           
 
Method Summary
 int getBarCount()
           
 int[] getPitches(int bar, int step, int root)
           
 Chord.RelativeVoicing getRelativeVoicing(int bar, int step)
           
 int getStepCount()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Chord.AbstractProgression

public Chord.AbstractProgression(int barCount,
                                 int stepCount)
Method Detail

getBarCount

public int getBarCount()
Specified by:
getBarCount in interface Chord.Progression

getStepCount

public int getStepCount()
Specified by:
getStepCount in interface Chord.Progression

getRelativeVoicing

public Chord.RelativeVoicing getRelativeVoicing(int bar,
                                                int step)
Specified by:
getRelativeVoicing in interface Chord.Progression
Returns:
a RelativeVoicing or null

getPitches

public int[] getPitches(int bar,
                        int step,
                        int root)
Specified by:
getPitches in interface Chord.Progression
Parameters:
bar - - the bar within the progression
step - - the step within the bar
root - - the root of the relative voicing
Returns:
int[] of pitches


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