public static MidiEventCollection Complete(long deltaTime, byte channel, byte note, byte velocity, long duration) { MidiEventCollection events = new MidiEventCollection(); events.Add(new NoteOn(deltaTime, channel, note, velocity)); events.Add(new NoteOff(duration, channel, note, velocity)); return events; }