public MidiKeySignature(KeySignatureType ksigtype, bool ismaj) { SetSignature(ksigtype, ismaj); }
public void SetSignature(KeySignatureType ksigtype, bool ismaj) { IsMajor = ismaj; KeyType = ksigtype; }
public void Reset() { IsMajor = true; KeyType = KeySignatureType.C; }
/// <summary> /// **Key Signature** message. /// /// For programs that display musical notation. /// </summary> /// <param name="channel">MIDI Channel No.</param> /// <param name="tick">absolute pulse count</param> /// <param name="sf">KeySignatureType</param> /// <param name="mi">if True, 'Minor' else 'Major'</param> public void AddKeySignature(int channel, long tick, KeySignatureType sf, bool mi) { AddV(channel, new MidiMessage(Stat16.KeySignature, tick, (byte)sf, (byte)(mi ? 1 : 0))); }
public void SetSignature(byte key, byte maj) { IsMajor = maj == 0; KeyType = (KeySignatureType)key; }