MCPcopy Create free account
hub / github.com/DamRsn/NeuralNote / sortEvents

Method sortEvents

Lib/Model/Notes.h:75–80  ·  view source on GitHub ↗

* Inplace sort of note events. * @param inOutEvents */

Source from the content-addressed store, hash-verified

73 * @param inOutEvents
74 */
75 static inline void sortEvents(std::vector<Notes::Event>& inOutEvents)
76 {
77 std::sort(inOutEvents.begin(), inOutEvents.end(), [](const Event& a, const Event& b) {
78 return a.startFrame < b.startFrame || (a.startFrame == b.startFrame && a.endFrame < b.endFrame);
79 });
80 }
81
82 /**
83 * dropOverlappingPitchBends sets bends to an empty array to all the note events that are overlapping in time.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected