-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Defer computing merged_track #565
Conversation
Follows up on mido#470
Thanks, looks good on a surface level but… Doesn't this defeat the purpose of pre-computing
I'm planning on getting rid of it for mido 2.x. |
That moved the delay to all instantiations of |
Yeah, it wasn't a smart decision on my part to accept this PR as-is. |
I believe your approach is the better tradeoff for now. |
@rdoursenaud I absolutely know the feeling of trying to be cautious (being the maintainer of babel) 😄 As for 2.0, I think |
I'm new to the maintaining a popular library thing and still learning the ropes. |
This is a feature that I really need. I'm trying to remove a track from the event stream when playing but without success. I tried merging the remaining tracks and then playing them, but a small number of MIDI files would fail with this method. The best way is to know which track the event comes from, then remove them right there |
Follows up on #470.
There's no point in computing
merged_track
(quite expensively) until it's needed.However, the comment #470 (comment) should be addressed (separately): it's not clear that
merged_track
is a cached object, and changes totracks
or their contents will not be reflected automatically.