1
0
mirror of https://github.com/SirusDoma/VoxCharger.git synced 2024-12-18 10:25:54 +01:00
VoxCharger/Sources/Events/Signature.cs
2020-04-19 03:24:48 +07:00

31 lines
734 B
C#

using System;
namespace VoxCharger
{
public abstract partial class Event
{
public class TimeSignature : Event
{
public int Beat { get; set; }
public int Note { get; set; }
public TimeSignature(Time time, int beat, int note)
: base(time)
{
Beat = beat;
Note = note;
}
public static implicit operator (int beat, int note)(TimeSignature signature)
{
return (signature.Beat, signature.Note);
}
public override string ToString()
{
return $"{base.ToString()}\t{Beat}\t{Note}";
}
}
}
}