-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix empty MIDI clips not displaying name #7836
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
base: master
Are you sure you want to change the base?
Conversation
Why exactly do beat clips not render titles? |
My guess is because it would obscure the clip, which is not a problem for melody clips since you edit them by opening the piano roll. |
I should add that beat clips not rendering titles is explicitly defined in MidiClipView. So at least it's not a bug, though afaik it's not documented what the reasoning is. |
I find it a bit strange. Why can't a beat clip (a MIDI clip) show titles? All clips are meant to have titles, hence their Maybe it might be worth investigating this sometime later, but I suppose it is fine for now if for some reason this was the intention. @bratpeki can you test this PR to see if it fixes the issue you reported? |
Hi, sorry, been busy! I can checks, yes. |
Code-wise question, what the **** is a |
I reverted the change that causes this, thank you for testing. I missed it because it doesn't happen to the kicker plugin for some reason. The thing is, I made the change because empty midi clips being grey is also a bug. It happens because new clips are beat clips by default, until a note gets added and the type is checked. This can be checked by trying to name a newly created clip, the name will not render. This doesn't happen with other clips. |
I'd argue the gray clips are a nifty functionality, helping us differentiate between empty clips and clips with content.
My pleasure! Thank you for writing the PR. We'll get to the bottom of this, for sure.
Very odd. Why do they turn gray after deleting all notes then? Do they turn back into
Still curious about this! 🤔 |
My question as well. Does this mean the fix is actually moving that logic into the parent |
Beat clips don't render titles. checkType() always sets type to beat when there are no notes, so titles don't render on empty MIDI clips either.
Beat clips don't render titles. checkType() always sets type to beat when there are no notes, so titles don't render on empty MIDI clips either.
I changed the default type of MidiClips on construction to MelodyClip, otherwise the name would still not show until you start adding notes. I tested to make sure this doesn't cause the opposite issue for beat clips. If you name a new beat clip before adding any notes, it will still correctly not show the name title.
Fixes #7808