I am wondering if a command exists to read the value of a specific potentiometer? At the moment the commands that I can find in the docs allow me to:
Set a Single Potentiometer
Set All Potentiometers
Store a Startup Value for a Specific Potentiometer
Read the Startup Value for a Specific Potentiometer
Are there any more commands available, or could anyone point me to a method to create my own commands?
There is not a command to read the currently set potentiometer value. The only resolution would be to store the last set potentiometer value in memory i.e.
var potentiometer_map = {
0: 127,
1: 0,
...
}
function set_potentiometer(potentiometer_num, value){
potentiometer_map[potentiometer_num] = value;
send_command([254,170, potentiometer_num, value]);
}
The above is psuedo code, but should give the idea.