logo

Live Production Software Forums


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

Notification

Icon
Error

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

Rank: Advanced Member

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

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

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.

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

Rank: Advanced Member

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

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

https://www.vmix.com/kno...44/vmix-api-audio-levels
Users browsing this topic
Guest
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.