public void AddRest(int track, int tick, int channel) { MidiEvents.Add(new RestEvent { Tick = tick, Track = track, Channel = channel }); }