Live Production Software Forums

Welcome Guest! To enable all features please Login or Register.



Go to last post Go to first unread
#1 Posted : Wednesday, November 28, 2018 2:57:22 AM(UTC)

Rank: Advanced Member

Groups: Registered
Joined: 9/12/2017(UTC)
Posts: 36
Location: Germany

Thanks: 2 times
Was thanked: 10 time(s) in 9 post(s)

I´m currently facing a problem regarding volume parameters using the api.
I´m building a controller that has a volume control.
So I´m trying to read the current volume from the api and then increase or decrease that value when my encoder is turned.
If the volume is set to 75% (-3dB) in vMix, and I read that value from the api it will return the value 75.
However, when I now for example increase that value by +1 and write back 76 to the api the value afterwards will be 32% (-10dB).
So for some reason there is a different scale for reading and writing the volume levels.
Is that intended? How can I perform a calculation from one value to the other?

The commands I´m using are:
"ACTS InputVolume 1" for reading the current volume, however it´s the same value when I use "XMLTEXT vmix/inputs/input[1]/@volume" and
"FUNCTION SetVolume Value=75&Input=1" for writing the new volume level.

Hope someone can help me here.

#2 Posted : Thursday, November 29, 2018 10:25:47 AM(UTC)

Rank: Advanced Member

Groups: Registered
Joined: 8/5/2017(UTC)
Posts: 434
Location: Manitoba

Thanks: 76 times
Was thanked: 232 time(s) in 137 post(s)
The volume level returned from the API is not linear. This article should help you with the formula.

Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.