public BPMEvent(BPMEventType type, double beat_, double param) { beat = beat_; if (type == BPMEventType.BPMChange) { newBPM = param; } else { stopDuration = param; } }
private static BPMEvent ParseBPMEvent(Match ev, BPMEventType type) { return(new BPMEvent(type, double.Parse(ev.Groups[1].Value), double.Parse(ev.Groups[2].Value))); }