|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjcaas.midi.StaffProperty
jcaas.midi.KeySignature
public class KeySignature
KeySignature represents a Key Signature for a Song. Extends Song Property. At present, this class contains no information regarding which sharps and flats are active in the key signature. Nor does it contain information about how a key signature should modify a song as it plays. Someone with more musical knowledge than the author will have to implement it.
| Constructor Summary | |
|---|---|
KeySignature()
Default construtor, makes a key signature of C-Major (no sharps or flats) |
|
KeySignature(java.lang.String signature)
Constructor, makes a key signature with the given string. |
|
| Method Summary | |
|---|---|
static Note |
convert(Note n,
KeySignature inSig,
KeySignature outSig)
A method to convert a note from one key signature to another. |
java.lang.String |
getKeySig()
Returns the key signature description string. |
java.lang.String |
getName()
Returns the name for this type of Staff Property |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public KeySignature()
public KeySignature(java.lang.String signature)
| Method Detail |
|---|
public java.lang.String getKeySig()
public static Note convert(Note n,
KeySignature inSig,
KeySignature outSig)
n - the note to be convertedinSig - the key signature n is given inoutSig - the key signature to convert n to
public java.lang.String getName()
StaffProperty
getName in class StaffProperty
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||