Skip to content

Commit

Permalink
off dangling func
Browse files Browse the repository at this point in the history
  • Loading branch information
pd3v committed Mar 3, 2024
1 parent 4d00dee commit d442472
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions line.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -696,10 +696,8 @@ int main(int argc, char **argv) {
auto phase = sessionState.phaseAtTime(time, quantum);

if(!phrase.empty()) {
if (phase >= toNextBar && midiEvents) {
if (phase >= toNextBar && midiEvents)
_midiEvents = std::move(midiEvents);
danglingMidiEvents(noteMessage, midiOut);
}

if (rNotes)
for_each(_midiEvents->begin(), _midiEvents->end(), [&](MidiEvent& _midiEvent){_midiEvent.notesPlayStop(phase, noteMessage, midiOut);});
Expand Down

0 comments on commit d442472

Please sign in to comment.