* Inplace sort of note events. * @param inOutEvents */
| 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. |
nothing calls this directly
no outgoing calls
no test coverage detected