I have hit a bit of a wall in my java/api understanding and am throwing myself upon the mercy of the forum to help me out. I have googled, I have read the API docs, I have tried to interpret other scripts (Moss ofc) to no avail.
I am updating my controller script for the Atom SQ. It has a nice display, and I want to display the name and value of whatever an encoder is currently mapped to momentarily on the display when it being rotated/the value is being changed. Display text and changing the text based on the current mode is no problem. Such things are setup on button press. I need this bit to be momentary, so I want it to check if the knob is currently being moved, then update the display appropriately.
My idea so far is to check in Flush if the encoder is being activated, and if so, write the name/value to the display. My problem is that I cannot figure out the "If" part of this equation. I have the following parameters "marked" in Init:
in Flush I print f.e. the "isUpdatingTargetValue" and "isBeingTouched" but both return false, although the name and value change appropriately (f.e. if I switch to a new instrument or rotate the encoder).
So at this point I have 2 questions:
1. Is there a better way to go about this? Just want to check.![Smile :)]()
2. How can I capture the "is being currently rotated" value/boolean properly (the encoders are setup as RelativeHardwareControls)?
I would be grateful for any and all suggestions.![Smile :)]()
I am updating my controller script for the Atom SQ. It has a nice display, and I want to display the name and value of whatever an encoder is currently mapped to momentarily on the display when it being rotated/the value is being changed. Display text and changing the text based on the current mode is no problem. Such things are setup on button press. I need this bit to be momentary, so I want it to check if the knob is currently being moved, then update the display appropriately.
My idea so far is to check in Flush if the encoder is being activated, and if so, write the name/value to the display. My problem is that I cannot figure out the "If" part of this equation. I have the following parameters "marked" in Init:
Code:
mEncoders[0].targetName().markInterested();mEncoders[0].targetValue().markInterested();mEncoders[0].isUpdatingTargetValue().markInterested();mEncoders[0].modulatedTargetDisplayedValue().markInterested();mEncoders[0].targetDisplayedValue().markInterested();mEncoders[0].isBeingTouched().markInterested();
So at this point I have 2 questions:
1. Is there a better way to go about this? Just want to check.

2. How can I capture the "is being currently rotated" value/boolean properly (the encoders are setup as RelativeHardwareControls)?
I would be grateful for any and all suggestions.

Statistics: Posted by Creepr — Mon Apr 01, 2024 9:19 am — Replies 0 — Views 12