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

java.lang.Object
  extended by uk.org.toot.music.tonality.Chord.PitchedVoicing
Enclosing class:
Chord

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

A PitchedVoicing is an aggregation of a Voicing and a root pitch.

Author:
st

Constructor Summary
Chord.PitchedVoicing(Chord.Voicing voicing, int root)
          Construct a new PitchedVoicing of the specified Voicing with the specified root pitch.
Chord.PitchedVoicing(Chord.Voicing voicing, int root, int slashBass)
          Construct a new PitchedVoicing of the specified Voicing with the specified root pitch and the specified bass pitch as applicable to slash chord notation.
 
Method Summary
 Chord getChord()
          Get the Chord for the chord voicing.
 int[] getPitches()
          Get the individual pitches for the pitched chord voicing.
 int getRoot()
          Get the root pitch for the chord voicing
 java.lang.String getSlashString()
          Get the string representation of the slash chord notation
 Chord.Voicing getVoicing()
          Get the Voicing
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Chord.PitchedVoicing

public Chord.PitchedVoicing(Chord.Voicing voicing,
                            int root)
Construct a new PitchedVoicing of the specified Voicing with the specified root pitch.

Parameters:
voicing - the Voicing
root - the root pitch

Chord.PitchedVoicing

public Chord.PitchedVoicing(Chord.Voicing voicing,
                            int root,
                            int slashBass)
Construct a new PitchedVoicing of the specified Voicing with the specified root pitch and the specified bass pitch as applicable to slash chord notation.

Parameters:
voicing - the Voicing
root - the root pitch
slashBass -
Method Detail

getVoicing

public Chord.Voicing getVoicing()
Get the Voicing

Returns:
the Voicing

getRoot

public int getRoot()
Get the root pitch for the chord voicing

Returns:
the root pitch

getChord

public Chord getChord()
Get the Chord for the chord voicing.

Returns:
the Chord

getPitches

public int[] getPitches()
Get the individual pitches for the pitched chord voicing.

Returns:
an array of ints for the note pitches.

getSlashString

public java.lang.String getSlashString()
Get the string representation of the slash chord notation

Returns:
the slash notation, e.g. " / C"

toString

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


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