private static TimedEvent GetSetTempoTimedEvent(ValueChangeEvent <Tempo> tempoChange)
        {
            Debug.Assert(tempoChange != null);

            return(new TimedEvent(new SetTempoEvent(tempoChange.Value.MicrosecondsPerQuarterNote),
                                  tempoChange.Time));
        }
        private static TimedEvent GetTimeSignatureTimedEvent(ValueChangeEvent <TimeSignature> timeSignatureChange)
        {
            Debug.Assert(timeSignatureChange != null);

            var timeSignature = timeSignatureChange.Value;

            return(new TimedEvent(new TimeSignatureEvent((byte)timeSignature.Numerator,
                                                         (byte)timeSignature.Denominator),
                                  timeSignatureChange.Time));
        }