public static MetaEventType InsertEventTypeToMetaEventType(TextEventType type) { switch (type) { case TextEventType.Copyright: return(MetaEventType.Copyright); case TextEventType.Marker: return(MetaEventType.Marker); case TextEventType.Text: return(MetaEventType.TextEvent); case TextEventType.TrackName: return(MetaEventType.SequenceTrackName); default: throw new NotSupportedException(String.Format("Unsupported Event Type {0}", type)); } }
public TextEvent(ulong time, string text, TextEventType type) : base(time) { Text = text; Type = type; }