Control-Surface icon indicating copy to clipboard operation
Control-Surface copied to clipboard

Last state smart potentiometer get value?

Open Nivolp1976 opened this issue 2 years ago • 4 comments

Hi there. I was able to get the current value not activated from a smart potentiometer. is it possible to get the latest status on a scale of up to 117? is to work on a display.

Nivolp1976 avatar Sep 03 '21 17:09 Nivolp1976

Like CCSmartPotentiometer::getPreviousValue()?

on a scale of up to 117

127

tttapa avatar Sep 03 '21 18:09 tttapa

ok sorry, my learning is slow.

Nivolp1976 avatar Sep 03 '21 18:09 Nivolp1976

When I move a control from the daw and I get the value with a callback, can I update the last value in the smart potentiometer? something like potentiometer.set_lastvalue () = callback_lastvalue;

Nivolp1976 avatar Sep 21 '21 09:09 Nivolp1976

You should be able to add a setPreviousValue(setting_t bank, analog_t value) function to the SmartMIDIFilteredAnalog class: https://tttapa.github.io/Control-Surface-doc/Doxygen/db/dbc/SmartMIDIFilteredAnalog_8hpp_source.html

tttapa avatar Sep 23 '21 14:09 tttapa