Exemplo n.º 1
0
        byte[] size; //=6

        #endregion Fields

        #region Constructors

        /// <summary>Constructor</summary>
        public smf_mthd( byte[] head , byte[] size, byte[] fmt, byte[] ntk, byte[] div, smf_mtrk[] tk)
        {
            this.bHead = head;
            this.size = size;
            this.fmt = fmt;
            this.ntk = ntk;
            this.div = div;
            this.Tracks = tk;
        }
Exemplo n.º 2
0
 /// Key Signature
 public static string meta_FF59(smf_mtrk track,int offset, params int[] positions)
 {
     return string.Format(
         "Key Signature: {0} {1}",
         (KeySignatureType)track.track[offset+3],
         track.track[offset+4]==0?"Major":"Minor"
     );
 }
Exemplo n.º 3
0
 /// Midi Time Signature
 public static string meta_FF58(smf_mtrk track, int offset, params int[] positions)
 {
     return string.Format(
         "{0}/{1}, clocks: {2}, 32nds:{3}",
         track.track[offset+3],
         Math.Pow(-track.track[offset+4],2),
         track.track[offset+5],
         track.track[offset+6],
         track.Get32Bit(offset)
     );
 }
Exemplo n.º 4
0
 /// ?
 public static string meta_FF20(smf_mtrk track, int pos1)
 {
     return string.Format("{0}",track.track[pos1]);
 }