using System.Diagnostics; namespace RhythmBase.Events { /// /// Represents an event to add a free time beat. /// [DebuggerDisplay($"{{{nameof(GetDebuggerDisplay)}(),nq}}")] public class AddFreeTimeBeat : BaseBeat { /// /// Initializes a new instance of the class. /// public AddFreeTimeBeat() { } /// /// Gets or sets the hold duration of the beat. /// public float Hold { get; set; } /// /// Gets or sets the pulse value of the beat. /// public byte Pulse { get; set; } /// public override EventType Type { get; } = EventType.AddFreeTimeBeat; /// public override string ToString() => base.ToString() + $" {(Pulse + 1)}"; private string GetDebuggerDisplay() => ToString(); } }