This repository has been archived on 2025-10-18. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files

32 lines
866 B
C#

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