Example #1
0
 internal static int GetBeatLength(TimeSignature timeSignature, short ticksPerQuarterNote)
 {
     return(4 * ticksPerQuarterNote / timeSignature.Denominator);
 }
Example #2
0
 private static void SetGlobalTimeSignature(TempoMap tempoMap, TimeSignature timeSignature)
 {
     tempoMap.TimeSignatureLine.SetValue(0, timeSignature);
 }
Example #3
0
        internal static int GetBarLength(TimeSignature timeSignature, short ticksPerQuarterNote)
        {
            var beatLength = GetBeatLength(timeSignature, ticksPerQuarterNote);

            return(timeSignature.Numerator * beatLength);
        }