DixShtix

com.dixshtix.midi
Class KeySignature

java.lang.Object
  |
  +--com.dixshtix.midi.BinaryData
        |
        +--com.dixshtix.midi.KeySignature

public class KeySignature
extends BinaryData

Key Signature is good to represent standard major and minor keys.

Key Signature is unique; a signed byte of number of sharps (negative for flats) and is_minor is an unsigned byte with the value 0 indicating a major key, or 1 indicating a minor key.

Version:
0.1
Author:
Richard C. Penner II
See Also:
EventStatus.kmbKeySignature, EventType.kKeySignature

Fields inherited from class com.dixshtix.midi.BinaryData
data, maxPrintLength
 
Constructor Summary
KeySignature(byte num_sharps, byte is_minor)
          Initializer.
 
Method Summary
 java.lang.String toString()
          Produce a short, human-readable string.
 
Methods inherited from class com.dixshtix.midi.BinaryData
getData, getData, getLength, getMaxPrintLength, hashCode, setMaxPrintLength, simpleClass
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, notify, notifyAll, registerNatives, wait, wait, wait
 

Constructor Detail

KeySignature

public KeySignature(byte num_sharps,
                    byte is_minor)
Initializer. Note: The key signature doesn't affect playback, but does affect the NAME of the notes and their display.
Parameters:
num_sharps - If positive, the number of sharps; if negative, flats.
is_minor - If 0, Major key; if 1, Minor key.
Method Detail

toString

public java.lang.String toString()
Produce a short, human-readable string.
Overrides:
toString in class BinaryData
Following copied from class: com.dixshtix.midi.BinaryData
See Also:
BinaryData.maxPrintLength

DixShtix