예제 #1
0
        /// <summary>
        /// Gets the fermata for a given beat.
        /// </summary>
        /// <param name="beat">The beat to get the fermata for.</param>
        /// <returns></returns>
        internal Fermata GetFermata(Beat beat)
        {
            if (Fermata.ContainsKey(beat.PlaybackStart))
            {
                return(Fermata[beat.PlaybackStart]);
            }

            return(null);
        }
예제 #2
0
 /// <summary>
 /// Adds a fermata to the masterbar.
 /// </summary>
 /// <param name="offset">The offset of the fermata within the bar in midi ticks. </param>
 /// <param name="fermata">The fermata.</param>
 internal void AddFermata(int offset, Fermata fermata)
 {
     Fermata[offset] = fermata;
 }