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

java.lang.Object
  extended by uk.org.toot.music.tonality.Chord.Voicing
Direct Known Subclasses:
Chord.RelativeVoicing
Enclosing class:
Chord

public static class Chord.Voicing
extends java.lang.Object

A Chord.Voicing is an aggregation of a theoretical root position (i.e uninverted) Chord with all voicing information such as missing intervals and (one day) octave transpositions of present intervals. It isn't rooted to a pitch though, it's still just in terms of intervals.

Author:
st

Constructor Summary
Chord.Voicing(Chord chord)
          Construct a new Voicing with no missing intervals.
Chord.Voicing(Chord chord, int[] missingIndices)
          Construct a new Voicing with missing intervals.
 
Method Summary
 Chord getChord()
          Get the Chord that this Voicing uses.
 int[] getIntervals()
          Return the array of intervals that exist after missing intervals have been removed.
 int[] getMissingIndices()
          Return an array of the indices of the intervals which are missing.
 java.lang.String getMissingString()
          Get the string representation of the missing intervals.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Chord.Voicing

public Chord.Voicing(Chord chord)
Construct a new Voicing with no missing intervals.

Parameters:
chord - the Chord for this Voicing

Chord.Voicing

public Chord.Voicing(Chord chord,
                     int[] missingIndices)
Construct a new Voicing with missing intervals.

Parameters:
chord - the Chord for this Voicing
missingIndices - the array of the indices of the missing intervals
Method Detail

getChord

public Chord getChord()
Get the Chord that this Voicing uses.

Returns:
this Chord

getMissingIndices

public int[] getMissingIndices()
Return an array of the indices of the intervals which are missing.

Returns:
int[] the array of missing interval indices

getIntervals

public int[] getIntervals()
Return the array of intervals that exist after missing intervals have been removed.

Returns:
the array of intervals excluding missing intervals

getMissingString

public java.lang.String getMissingString()
Get the string representation of the missing intervals.

Returns:
the missing notation, e.g. " no 5"

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


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