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
NewsworthyVision  
#1 Posted : Wednesday, October 21, 2020 9:04:34 PM(UTC)
NewsworthyVision

Rank: Advanced Member

Groups: Registered
Joined: 7/19/2017(UTC)
Posts: 45
United Kingdom

Thanks: 11 times
Was thanked: 14 time(s) in 7 post(s)
Hello all, I'm finding that the volume settings put out by the API are done on a zero to one scale, but I'm finding that it is maybe Logarithmic as well?

Example, putting out a 0dBu signal via NDI shows 1.00, but then a -8dBu signal shows 0.5, a 50% drop. (Which for a logarithmic audio scale is correct I think?)

However within vMix itself, it doesn't show a drop of 50%, but a marginal drop only.

I don't suppose we could possibly get the API to show a dBu signal rather than a decimal scale? Or, does anyone have a method using Javascript or similar to convert to a Logarithmic scale from this basic 0-1 system?

Thanks all!

Nick
elgarf  
#2 Posted : Thursday, October 22, 2020 1:23:14 AM(UTC)
elgarf

Rank: Advanced Member

Groups: Registered
Joined: 10/23/2015(UTC)
Posts: 458
Man
Russian Federation

Thanks: 20 times
Was thanked: 227 time(s) in 129 post(s)
NewsworthyVision  
#3 Posted : Thursday, October 22, 2020 1:29:35 AM(UTC)
NewsworthyVision

Rank: Advanced Member

Groups: Registered
Joined: 7/19/2017(UTC)
Posts: 45
United Kingdom

Thanks: 11 times
Was thanked: 14 time(s) in 7 post(s)
Would you believe I discovered this moments ago too... Feeling a bit stupid today.

Thanks elgarf.
NewsworthyVision  
#4 Posted : Thursday, October 22, 2020 2:50:07 AM(UTC)
NewsworthyVision

Rank: Advanced Member

Groups: Registered
Joined: 7/19/2017(UTC)
Posts: 45
United Kingdom

Thanks: 11 times
Was thanked: 14 time(s) in 7 post(s)
For anyone else looking to do this, here is how I managed to convert it from Volume to Amplitude to match dBu in Javascript:

User guide: Volume = (Amplitude ^ 0.25) * 100
Javascript: const volume = ((input._attributes.meterF1 ** 0.25)*100).toFixed(2);

User guide: Amplitude = (Volume / 100) ^ 4
Javascript: const amplitude = ((input._attributes.volume / 100) ** 4).toFixed(2);
thanks 1 user thanked NewsworthyVision for this useful post.
ryanlehms on 4/27/2021(UTC)
Users browsing this topic
Guest (2)
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.