Extron SSP volume control
dsjordan
Posts: 1
I'm very new to this and can really use some help!
I'm replacing a broken sony receiver that was controlled with IR to an Extron SSP 7.1 surround processor (requires a command such as 10V0D to set the the volume at 10% I have all the input switching and processing commands working fine, but I'm at a loss of where to start for the volume control.
Ideally I'd like a bar graph showing feedback with a + and - button for control (how to send 0-100 for the volume level, and then scale that to 0-255 for feedback.)
I already have it setting back to the default volume when switching sources to as to not hurt hearing or speakers if the new source is already playing at a much higher level.
any help would be greatly appreciated!
I'm replacing a broken sony receiver that was controlled with IR to an Extron SSP 7.1 surround processor (requires a command such as 10V0D to set the the volume at 10% I have all the input switching and processing commands working fine, but I'm at a loss of where to start for the volume control.
Ideally I'd like a bar graph showing feedback with a + and - button for control (how to send 0-100 for the volume level, and then scale that to 0-255 for feedback.)
I already have it setting back to the default volume when switching sources to as to not hurt hearing or speakers if the new source is already playing at a much higher level.
any help would be greatly appreciated!
0
Comments
When the down button is pressed, check to make sure that the value is greater than 0. If it is, then you can decrease the variable by 1 and send the appropriate commands.
For the feedback to a bargraph, it would be easier to set the limits of the bargraph to match the values you are going to send it rather than scale it. You can scale the value, and there is a good function here on the forums if you search for scale_range that I have used many times, but it would probably just be easier to change the limits on the bargraph.
Hope that helps.
//VOL UP
BUTTON_EVENT[dvTP,1]
{
PUSH:
{
if(nVOl<=99)
nVol=nVOl+1
send_command dvVOl,"'vol='itoa(nVol)"
send_level dvTP,1,vVol
}
hold[5]:
{
if(nVOl<=99)
nVol=nVOl+1
send_command dvVOl,"'vol='itoa(nVol)"
send_level dvTP,1,vVol
}
}
//VOL DN
BUTTON_EVENT[dvTP,2]
{
PUSH:
{
if(nVOl>=1)
nVol=nVOl-1
send_command dvVOl,"'vol='itoa(nVol)"
send_level dvTP,1,vVol
}
hold[5]:
{
if(nVOl>=1)
nVol=nVOl-1
send_command dvVOl,"'vol='itoa(nVol)"
send_level dvTP,1,vVol
}
}