-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
Add readOnly mode to PianoRoll #6
Conversation
@aure @wtholliday please review thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please make the line opacity a setting instead of a function of readOnly
.
I agree that readOnly seems to be an implementation detail. Someone else might readonly to do something quite different to the UI. |
# Conflicts: # Sources/PianoRoll/PianoRoll.swift
I'm sorry I think there's some confusion about variable naming and you were actually closer before the addition of note line opacity. I think removing the "handle" when you can't edit is an okay side effect. But I don't like the term "readOnly" for a boolean. I'd prefer "isEditable" or "editable" and its also a positive relationship can the user do something rather than can the user not do something. |
6b3267f
to
88c28e1
Compare
Renamed |
This PR adds
readOnly
mode toPianoRoll
, which disable adding / editing / removing any note.User can change black vertical line's opacity using PianoRoll's
noteLineOpacity
.