-
Notifications
You must be signed in to change notification settings - Fork 37
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
Thomas/arturia keylab mk ii show remote control values #76
Thomas/arturia keylab mk ii show remote control values #76
Conversation
if (parameter.exists().get()) | ||
showNotificationOnDisplay(parameter.name(), parameter.displayedValue()); | ||
}); | ||
layer.bind(mEncoders[i], showNotificationAction); |
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.
is it possible the hardware control is mapped to something else than the parameter?
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.
Also why are we not just binding some text display computer to the current parameter to update the text display?
encoder.isUpdatingTargetValue().markInterested(); | ||
encoder.targetName().markInterested(); | ||
encoder.targetDisplayedValue().markInterested(); | ||
encoder.isBeingTouched().markInterested(); |
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.
Is this line strictly necessary? I don't see any use of the isBeingTouched value anywhere. Or am I just missing it?
|
||
private void showNotificationOnDisplay(final StringValue topRowText, final StringValue bottomRowText) | ||
{ | ||
final int notificationDurationInMs = 500; |
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.
One minor change. Maybe we can instead just have a pointer to the ConttinuousHardwareControl that we are adjusting rather than having a top and bottom row text?
No description provided.