jcaas.midi
Class Chord

java.lang.Object
  extended by jcaas.midi.StaffProperty
      extended by jcaas.midi.Chord

public class Chord
extends StaffProperty

Version:
created Jan 26, 2005 last modified 4/17/05 Chord represents the additional notes to play each note of a Song.
Author:
Conrad M. Hutcheson

Constructor Summary
Chord(java.lang.String name)
          Default class constructor taking a string name for the chord.
Chord(java.lang.String name, int octave)
           
 
Method Summary
 java.lang.String getChordName()
           
 java.lang.String getName()
          Returns the name for this type of Staff Property
 NoteVector getNotes()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Chord

public Chord(java.lang.String name)
Default class constructor taking a string name for the chord.

Parameters:
name - the string name for the chord (i.e. C, Am, etc.)

Chord

public Chord(java.lang.String name,
             int octave)
Parameters:
name - the string name of the chord
octave - the octave to play the note at, 0 is the octave of middle C
Method Detail

getChordName

public java.lang.String getChordName()
Returns:
Returns the chordName.

getNotes

public NoteVector getNotes()
Returns:
Returns the notes.

getName

public java.lang.String getName()
Description copied from class: StaffProperty
Returns the name for this type of Staff Property

Specified by:
getName in class StaffProperty
Returns:
a string name