Rank: Advanced Member
Groups: Registered
Joined: 7/19/2017(UTC) Posts: 45 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
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 10/23/2015(UTC) Posts: 458 Thanks: 20 times Was thanked: 227 time(s) in 129 post(s)
|
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 7/19/2017(UTC) Posts: 45 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.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 7/19/2017(UTC) Posts: 45 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);
|
1 user thanked NewsworthyVision for this useful post.
|
|
|
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.
Important Information:
The vMix Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close