Пример #1
0
 private static int GetBeatLength(TimeSignature timeSignature, short ticksPerQuarterNote)
 {
     return(4 * ticksPerQuarterNote / timeSignature.Denominator);
 }
Пример #2
0
        private static int GetBarLength(TimeSignature timeSignature, short ticksPerQuarterNote)
        {
            var beatLength = GetBeatLength(timeSignature, ticksPerQuarterNote);

            return(timeSignature.Numerator * beatLength);
        }