Converting TP levels to AutoPatch db volumes
PyroGuy
Posts: 121
Good day...
I need to determine the best way to translate a level value generated on an AMX touch panel (in this case AXT-CV12) which is tracking a volume level of 0% to 100% and convert it to the ABSOLUTE value that AP switcher is expecting. I need to be able to send that db volume (-70 to +10) to the switcher in an RS232 string.
I can only guess that there are other swithers that work in this fashion - my experience is limited to the previous AMX PLB-AS16 which let me send a level directly to it)
What is the best math to figure it out?
Hope I am not violating any protocols by posting here (as well as AP Forum) The AP forum doesn't get much traffic - yet) This one seems to have ALL of the answers.
Thanks!
I need to determine the best way to translate a level value generated on an AMX touch panel (in this case AXT-CV12) which is tracking a volume level of 0% to 100% and convert it to the ABSOLUTE value that AP switcher is expecting. I need to be able to send that db volume (-70 to +10) to the switcher in an RS232 string.
I can only guess that there are other swithers that work in this fashion - my experience is limited to the previous AMX PLB-AS16 which let me send a level directly to it)
What is the best math to figure it out?
Hope I am not violating any protocols by posting here (as well as AP Forum) The AP forum doesn't get much traffic - yet) This one seems to have ALL of the answers.
Thanks!
0
Comments
I would guess that most folk here watch all of the fora so posting the same request in two places is redundant.
The thread you noted is close (covers the AMX side of the problem) but not quite what I need.
The problem is matching up the level value - be it 0 to 100 or 0 to 255 with a decibel range on an audio router that works in dB. It swings from -70 to +10. There must be a calculation formula for such a conversion, but my math head seems to be on holidays.
Cheers!
(db + 70) * 1.25 = nVol for a level scale of 0-100.
(db + 70) * 3.1875 = nVol for a level scale of 0-255.
Level to Autopatch:
(nVol / 1.25) - 70 = db for level scale 0-100
(nVol / 3.1875) - 70 = db for level scale 0-255
I am on my way to the site so your timing is perfect. I'll give it a shot!
Cheers!
http://amxforums.com/showthread.php?t=3017