Ejemplo n.º 1
0
 public MidiKeySignature(KeySignatureType ksigtype, bool ismaj)
 {
     SetSignature(ksigtype, ismaj);
 }
Ejemplo n.º 2
0
 public void SetSignature(KeySignatureType ksigtype, bool ismaj)
 {
     IsMajor = ismaj;
     KeyType = ksigtype;
 }
Ejemplo n.º 3
0
 public void Reset()
 {
     IsMajor = true; KeyType = KeySignatureType.C;
 }
Ejemplo n.º 4
0
 /// <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)));
 }
Ejemplo n.º 5
0
 public void SetSignature(byte key, byte maj)
 {
     IsMajor = maj == 0;
     KeyType = (KeySignatureType)key;
 }