edu.columbia.ee.csmit.MidiKaraoke.MidiMessage
Interface KeySignature

All Superinterfaces:
MetaCommand, MidiCommand

public interface KeySignature
extends MetaCommand

Stores the information associated with a key signature command.

See Also:
KeySignatureParser

Method Summary
 int getSharpsFlats()
          Returns the number of sharps or flats in the key signature.
 boolean isMajor()
          Returns true if this is a major key and false if the key is minor.
 
Methods inherited from interface edu.columbia.ee.csmit.MidiKaraoke.MidiMessage.MidiCommand
getLength, getMessage
 

Method Detail

getSharpsFlats

int getSharpsFlats()
Returns the number of sharps or flats in the key signature. -7 indicates seven flats, 0 is no sharps or flats, and 7 indicates seven sharps. (The order of sharps is f-c-g-d-a-e-b. The order of flats is b-e-a-d-g-c-f.)

Returns:
number of sharps or flats

isMajor

boolean isMajor()
Returns true if this is a major key and false if the key is minor.

Returns:
true if major key