jcaas.midi
Class Chord
java.lang.Object
jcaas.midi.StaffProperty
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)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 chordoctave
- the octave to play the note at, 0 is the octave of middle C
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