Repository navigation
Midi looping preliminaries - #2218
Merged
Paul-Licameli merged 11 commits intoDec 6, 2021
Merged
Conversation
Paul-Licameli
marked this pull request as draft
December 2, 2021 02:08
Paul-Licameli
force-pushed
the
MIDI-looping-preliminaries
branch
from
December 5, 2021 16:54
f75f4dc to
c77f53b
Compare
Paul-Licameli
marked this pull request as ready for review
December 5, 2021 16:56
Paul-Licameli
force-pushed
the
MIDI-looping-preliminaries
branch
from
December 5, 2021 23:30
c77f53b to
a50723f
Compare
crsib
approved these changes
Dec 6, 2021
... So that if you play a MIDI selection non-looped, the notes at the start of it don't briefly replay when you reach the end. However the function Looping() will be eliminated in a later pull request.
... more fields to come
... And move the call to reset the iterator after outputting all-notes-off
... Assuming mHasSolo is false only if GetSolo() returns true for none of the the playing tracks. And the truth of that is supposed to be maintained (even as the user might change mute and solo settings during play) by AudioIoCallback::AudioCallback() counting the solo tracks each time through, and sending that to FillOtherBuffers.
... With many comments. The case where two MIDI tracks might merge events into the very same MIDI channel was never really handled right, as an experiment can verify (duplicate a track, offset one of them by a short duration, play both -- the note-off of one track also silences the other track's notes too early). So no fault if it remains unfixed. But this change should fix the behavior in case of changes of muting of tracks or MIDI channels (pressing the numbered buttons) during play. Events meant to change timbre of notes don't get lost even if the notes are muted; then unmuting them will make the desired sound.
Paul-Licameli
force-pushed
the
MIDI-looping-preliminaries
branch
from
December 6, 2021 21:24
a50723f to
41fbd88
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Prepares for the fixes for #2081
Some preliminary refactorings before the real fix for adjusting bounds of looping play of MIDI (and also, enabling scrubbing of MIDI). Not the complete fix . Minor behavior changes, as described in commit comments.
Recommended: