Manual-23 – Rane SR 4 User Manual
Page 23

Manual-23
IQ
Input Query
Returns the current level and selection. Resets the command state to No Operation.
Send: IQ
Response: n1,n2,"OK"
Where: n1 is the current level. The level range is [1, 31].
n2 is the current selection. The selection range is [1, 8].
Example: 15,4, "OK" means that the current level is 15 and the
current selection is 4.
IR
Input Raw
Returns the current level, selection, command state, and the length of time the en-
coder button has been pressed. Resets the command state to No Operation.
Send: IR
Response: n1,n2,n3,n4,"OK"
Where: n1 is the current level. The level range is [1, 31].
n2 is the current selection. The selection range is [1, 8].
n3 is the current command state. The command state
represents the state of the encoder.
The possible states follow:
0 No Operation The encoder has not changed.
1 Encoder Left
The encoder has been turned counter clockwise.
2 Encoder Right The encoder has been turned clockwise
16 Selection Left The encoder has been pushed in and turned counter clockwise.
32 Selection Right The encoder has been pushed in and turned clockwise.
64 Enter The encoder has been pushed in and released without being turned.
n4 is the length of time the encoder button has been pressed. The time the
button has been pressed is in units of .01 seconds and the range is [0, 255]
or 0 to 2.55 seconds. The button timer starts at the press of the button and
is reset to zero when the button is released.
Example: 1,2,32,100,"OK" means the current level is 1, the
current selection is 2, the current command state byte
is a Selection Right and the button has been held in for
1
second.