Command to increase volume on a mixer Peavey Digitool MX

33 views
Skip to first unread message

Klaus

unread,
Oct 30, 2018, 6:40:56 PM10/30/18
to CommandFusion Software
I struggle on a button command to increase/decrease the volume of Channel 1 by 3 dB on a mixer Peavey Digitool MX.

The description of the RS-232 protocol says:

V: Level
For level changes the V argument is actually an index to a set of predefined values inside the Digitool. All level settings are given in dB. To change a signal level to unity or 0 dB, you set the V argument to 100 (Hex). From this setting, each increment or decrement of the V argument changes the level by +/- 0.5 dB. Therefore FE is -1 dB and 102 (Hex) is +1 dB. The general equation to calculate V, given a desired dB level is:
= (dB+128)*2
(Source: Peavey)

Examples are:

SET 1 A 0 F4 (set channel 1 input level to -6 dB)
SET 1 A 0 100 (set channel 1 input level to 0 dB)
SET 1 A 0 D8 (set channel 1 input level to -20 dB)
SET 1 A 0 7F (set channel 1 input level to -64,5 dB)

But how to increase the volume by 3 dB?

Jarrod Bell

unread,
Oct 30, 2018, 7:02:51 PM10/30/18
to comman...@googlegroups.com
The examples you posted are to set specific levels. Do they have an increment/decrement command in the documentation?
Otherwise you will need to use a slider to send a specific level command, or use feedback parsing in combination with some math and tokens (or JavaScript) to know the current volume, add 3db then send the final command.

Regards,

Jarrod Bell
CommandFusion
www.commandfusion.com

--
You received this message because you are subscribed to the Google Groups "CommandFusion Software" group.
To unsubscribe from this group and stop receiving emails from it, send an email to commandfusio...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Kol Johnson

unread,
Oct 30, 2018, 9:42:54 PM10/30/18
to comman...@googlegroups.com
Just keep track of V and increment/decrement it by 3 as needed then send the command.



--

Klaus

unread,
Oct 31, 2018, 5:29:34 AM10/31/18
to CommandFusion Software
I cannot follow why V = F4 means -6 dB (see first example).
Can anybody explain?
(Poor documentation: "increment" and "get volume" not documented...)

Kol Johnson

unread,
Oct 31, 2018, 12:34:04 PM10/31/18
to comman...@googlegroups.com
I am using hex values 

V = 100 = 0dB
V = 100 - 3 = FD = -1.5dB
V = FD - 3 = FA = -3dB
V = FA - 3 = F7 = -4.5dB
V = F7 - 3 = F4 = -6dB
V = F4 - 3 = F1 = -7.5dB

Recall that 100h is the same as 256 in decimal, and when the value is transmitted the actual bits sent out will be the same (1 0000 0000) so you can use decimal in your code to make it easier to read if you want.

I also apologize I should have said to increment or decrement by 6, not by 3, in order to realize a step of 3dB.

Make an integer variable called V.  When you press volume up do V = V+6 then transmit the command with the new value of V.  When you press volume down do V = V-6 then transmit the command with the new value of V.  If you want to get fancy you can check for a maximum or minimum volume level before changing V.

So when you press volume up do something like:
If(V < 250) then V = V+6
then transmit the command.  That way V will never exceed 256 (which is the same as 100h or 0db).

HTH

From: <comman...@googlegroups.com> on behalf of Klaus <cz...@panascan.de>
Reply-To: <comman...@googlegroups.com>
Date: Wednesday, October 31, 2018 at 2:29 AM
To: CommandFusion Software <comman...@googlegroups.com>
--

Klaus

unread,
Nov 4, 2018, 3:46:45 PM11/4/18
to CommandFusion Software
I would die without your help...!

Is there an easy JavaScript to change HEX in DEC within a runCommand?

Task: 
Send result of "GET 1 A" in DECIMAL to [@s1]

Example: 
GET 1 A = 0FD (= -3 dB) results in 253

Jarrod Bell

unread,
Nov 13, 2018, 6:15:36 PM11/13/18
to comman...@googlegroups.com, Klaus
var decimalValue = parseInt("0FD", 16)




Regards,

Jarrod Bell
CommandFusion
www.commandfusion.com

Reply all
Reply to author
Forward
0 new messages