1
0
mirror of https://github.com/SirusDoma/VoxCharger.git synced 2024-12-19 02:45:56 +01:00
VoxCharger/Sources/Events/Signature.cs

31 lines
734 B
C#
Raw Normal View History

2020-04-18 22:24:48 +02:00
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}";
}
}
}
}