Updating a volume bargraph
I have implemented my first volume preset (YAY it works!), but I am having difficulty getting my active bargraph to update accordingly. Here is my code:
I was resisting doing 2 graphs (one transparent) at this time simply because I'm trying to take one concept at a time, so please tell me if I'm being a dork (or making things more difficult for myself) by not doing it.
BUTTON_EVENT[dvJVCLT37X898Tp,405] //vol preset 1
{
HOLD[20]: //If Button is Held for 2 seconds
{
nVolPre = nTVVOL
SEND_COMMAND dvJVCLT37X898Tp,'ADBEEP' //double beeps panel
}
RELEASE:
{
SEND_COMMAND vdvJVCLT37X898, "'PASSTHRU-!',$82,$80,'VL',itoa(nVolPre),$0A"
}
}
LEVEL_EVENT[dvJVCLT37X898Tp,2]
{
nTVVOL=LEVEL.VALUE
SEND_COMMAND vdvJVCLT37X898, "'PASSTHRU-!',$82,$80,'VL',itoa(nTVVOL),$0A"
I was resisting doing 2 graphs (one transparent) at this time simply because I'm trying to take one concept at a time, so please tell me if I'm being a dork (or making things more difficult for myself) by not doing it.
0
Comments
BUTTON_EVENT[dvJVCLT37X898Tp,405] //vol preset 1 { HOLD [20]: // If Button is Held for 2 seconds { nVolPre = nTVVOL SEND_COMMAND dvJVCLT37X898Tp, 'ADBEEP' // double beeps panel } RELEASE: { SEND_LEVEL dvJVCLT37X898Tp, 2, nVolPre } } LEVEL_EVENT [ dvJVCLT37X898Tp, 2 ] { nTVVOL = LEVEL.VALUE SEND_COMMAND vdvJVCLT37X898, " 'PASSTHRU-!', $82, $80, 'VL', itoa ( nTVVOL ), $0A "you may want to consider renaming your TP Dev to something a bit easier to follow e.g. dvProjector or something! You can always put a comment after the DEFINE_DEVICE
Gotta run before I can walk....or something like that.
Sweet! Nice to be a help :-)