|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfugue.KeySignature
public class KeySignature
Represents key signature changes. Key signatures are kept for the whole song, independent of tracks. You may change the key signature during a song. The Player will automatically adjust note values based on the current key signature - for example, in an F Major key signature, B will be converted to B-flat automatically, unless the B is noted as a natural B (i.e., "Bn")
Constructor Summary | |
---|---|
KeySignature(byte keySig,
byte scale)
Creates a new key signature object, with the specified tempo value. |
Method Summary | |
---|---|
byte |
getKeySig()
Returns the key signature for this object. |
java.lang.String |
getMusicString()
Returns the Music String representing this element and all of its settings. |
byte |
getScale()
Returns the scale for this object. |
void |
setKeySig(byte keySig)
Sets the key signature, from -7 to +7, for this object. |
void |
setScale(byte scale)
Sets the scale - 0 for major, 1 for minor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KeySignature(byte keySig, byte scale)
keySig
- the key signature for this object, -7 to +7 - see MIDI specification for more detailsscale
- whether this is a major (0) or minor (1) key signatureMethod Detail |
---|
public void setKeySig(byte keySig)
keySig
- the key signature for this objectpublic void setScale(byte scale)
scale
- the scale for this objectpublic byte getKeySig()
public byte getScale()
public java.lang.String getMusicString()
K
keysig,
where 'keysig' is a root note followed by 'maj' or 'min' (i.e., Cbmaj for C-flat major)
getMusicString
in interface JFugueElement
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |