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
r5dad  
#1 Posted : Wednesday, February 21, 2018 4:34:34 PM(UTC)
r5dad

Rank: Advanced Member

Groups: Registered
Joined: 10/20/2016(UTC)
Posts: 57
Location: Virginia-USA

Thanks: 5 times
Was thanked: 6 time(s) in 4 post(s)
I was wondering if I can create a few shortcuts that increase/decrease audio by a set amount, say +/- 5db or 10 (value) or whatnot.

I've tried a few of the functions, but they seem to set and not have logic capabilities.

Thoughts?

Jon
Cpilcher  
#2 Posted : Wednesday, February 21, 2018 6:43:43 PM(UTC)
Cpilcher

Rank: Advanced Member

Groups: Registered
Joined: 8/3/2015(UTC)
Posts: 323
Location: Chicago, IL

Thanks: 22 times
Was thanked: 57 time(s) in 47 post(s)
A user left me this bit of information after I had gone looking for the same thing a while back. I have never implemented it, so if you get it to work, please post a followup and hopefully I can get it setup as well. It would be a huge help in my production. Hope it helps.



From User "Jairod"...

It is possible the audio fade, I do.
Only Vmix 17 creates this audio fade, other versions have failed

In the section triggers its INPUT, you should stringing depending on whether you want to transition IN or OUT transition.


TRIGGER-------------FUNCTION-----INPUT------DURATION---DELAY---VALUE
On transition OUT--Set volumen--your input----10--------------80--------100
On transition OUT--Set volumen--your input----10--------------80--------90
On transition OUT--Set volumen--your input----10--------------80--------80
On transition OUT--Set volumen--your input----10--------------80--------70
On transition OUT--Set volumen--your input----10--------------80--------60

- Change the values (DELAY) according to the speed of molten wishing
- Change the values (VALUE) that amount of volume they want to get off
- Add more to zero


ENJOY
IceStream  
#3 Posted : Wednesday, February 21, 2018 7:36:33 PM(UTC)
IceStream

Rank: Advanced Member

Groups: Registered
Joined: 3/7/2012(UTC)
Posts: 2,600
Man
Location: Canada

Thanks: 33 times
Was thanked: 501 time(s) in 470 post(s)
@ r5dad & Cpilcher

You can use a Shortcut to either raise or lower the volume in increments (similar to increasing or decreasing the score in a scoreboard XAML graphic)
Function: SetVolume
Value: +=5 (for example which represents 5% increase per button push but can be set anywhere between 0-100 depending on how many button pushes you want to do)
Similarly, for decrease
Value: -=5 (for a 5% decrease per button push)


Ice
thanks 2 users thanked IceStream for this useful post.
r5dad on 2/21/2018(UTC), KnKproductions on 5/28/2020(UTC)
r5dad  
#4 Posted : Wednesday, November 28, 2018 4:55:10 AM(UTC)
r5dad

Rank: Advanced Member

Groups: Registered
Joined: 10/20/2016(UTC)
Posts: 57
Location: Virginia-USA

Thanks: 5 times
Was thanked: 6 time(s) in 4 post(s)
Wow, cleaning up and poking around on the forum I came across this thread. Sorry for the necro.

What I ended up doing in my application that remotely controls vmix is to setup effects with delays in between. It took me a while, but essentially I did the trigger suggestion from post #2, but in api function form. So I decrease by 5, pause 1, decrease by 5, pause 1, repeat about 10 times to ensure volume is all the way down.

Thanks for the help guys!

Jon
ebjorno  
#5 Posted : Thursday, December 6, 2018 6:04:56 AM(UTC)
ebjorno

Rank: Member

Groups: Registered
Joined: 7/20/2018(UTC)
Posts: 15
Location: Norway

Was thanked: 2 time(s) in 1 post(s)
Hi, I have successfully used the Function=SetVolume&Input=1&Value=-=2, but the other one (Value=+=2) gives an error (invalid parameters). How is this possible? Is it a bug?
magichamlet  
#6 Posted : Saturday, August 31, 2019 4:56:35 AM(UTC)
magichamlet

Rank: Newbie

Groups: Registered
Joined: 8/31/2019(UTC)
Posts: 1
Switzerland
Location: Zürich

Originally Posted by: ebjorno Go to Quoted Post
Hi, I have successfully used the Function=SetVolume&Input=1&Value=-=2, but the other one (Value=+=2) gives an error (invalid parameters). How is this possible? Is it a bug?


same problem here, did you have a solutions? or is this still in work ....
desmar  
#7 Posted : Saturday, August 31, 2019 5:46:01 AM(UTC)
desmar

Rank: Advanced Member

Groups: Registered
Joined: 8/21/2015(UTC)
Posts: 324
Man
Canada
Location: Cornwall, Ontario, Canada

Thanks: 18 times
Was thanked: 80 time(s) in 60 post(s)
Set volume can be set using a value from 0-100 that represents a percentage.

as martin stated in another post/video how volume work. the volume slider values are calculated via a formula.

eg.

if you send an api command of http://127.0.0.1:8088/API/?Function=SetMasterVolume&Value=100.

This sets the volume to 100%.

if you then send an api command of http://127.0.0.1:8088/API/? in the response it returns at the bottom in the audio section.

<audio>
<master volume="100" muted="False" meterF1="0" meterF2="0" headphonesVolume="100"/>
<busB volume="100" muted="False" meterF1="0" meterF2="0"/>
</audio>

if you send an api command of http://127.0.0.1:8088/API/?Function=SetMasterVolume&Value=50.

This sets the volume to 50%. you get

<audio>
<master volume="6.25" muted="False" meterF1="0" meterF2="0" headphonesVolume="100"/>
<busB volume="100" muted="False" meterF1="0" meterF2="0"/>
</audio>

You noticed the response is not

<audio>
<master volume="50" muted="False" meterF1="0" meterF2="0" headphonesVolume="100"/>
<busB volume="100" muted="False" meterF1="0" meterF2="0"/>
</audio>

same is true for 25% you get.

<audio>
<master volume="0.390625" muted="False" meterF1="0" meterF2="0" headphonesVolume="100"/>
<busB volume="100" muted="False" meterF1="0" meterF2="0"/>
</audio>

so -=5 and += won't work the way you would like.. and the reason you get the error.

Originally Posted by: magichamlet Go to Quoted Post
Originally Posted by: ebjorno Go to Quoted Post
Hi, I have successfully used the Function=SetVolume&Input=1&Value=-=2, but the other one (Value=+=2) gives an error (invalid parameters). How is this possible? Is it a bug?


same problem here, did you have a solutions? or is this still in work ....


MartLeib  
#8 Posted : Saturday, August 31, 2019 8:22:10 PM(UTC)
MartLeib

Rank: Advanced Member

Groups: Registered
Joined: 2/23/2017(UTC)
Posts: 189
Estonia

Thanks: 1 times
Was thanked: 52 time(s) in 42 post(s)
Instead of +=5 try: %20%3D5
Function=SetVolume&Input=1&Value=%20%3D5

Instead of -=5 try: -%3D5
Function=SetVolume&Input=1&Value=-%3D5

Basically + - = chars are encoded for URL.
ebjorno  
#9 Posted : Friday, September 20, 2019 1:02:11 AM(UTC)
ebjorno

Rank: Member

Groups: Registered
Joined: 7/20/2018(UTC)
Posts: 15
Location: Norway

Was thanked: 2 time(s) in 1 post(s)
Originally Posted by: MartLeib Go to Quoted Post
Instead of +=5 try: %20%3D5
Function=SetVolume&Input=1&Value=%20%3D5

Instead of -=5 try: -%3D5
Function=SetVolume&Input=1&Value=-%3D5

Basically + - = chars are encoded for URL.


Thanks for the suggestion, it got me thinking!

SOLUTION:


= is 3D
+ is 2B
- is 2D


Examples:

Function=SetPanX&Value=%2B%3D0.01&Input=24
Pans input 24 to the right for 0.01 units

Function=SetPanX&Value=%2D%3D0.01&Input=24
Pans input 24 to the left for 0.01 units
Hun  
#10 Posted : Saturday, September 26, 2020 2:42:04 AM(UTC)
Hun

Rank: Newbie

Groups: Registered
Joined: 9/26/2020(UTC)
Posts: 1
United States
Location: New York

Originally Posted by: desmar Go to Quoted Post
Set volume can be set using a value from 0-100 that represents a percentage.

as martin stated in another post/video how volume work. the volume slider values are calculated via a formula.

eg.

if you send an api command of http://127.0.0.1:8088/API/?Function=SetMasterVolume&Value=100.

This sets the volume to 100%.

if you then send an api command of http://127.0.0.1:8088/API/? in the response it returns at the bottom in the audio section.

<audio>
<master volume="100" muted="False" meterF1="0" meterF2="0" headphonesVolume="100"/>
<busB volume="100" muted="False" meterF1="0" meterF2="0"/>
</audio>

if you send an api command of http://127.0.0.1:8088/API/?Function=SetMasterVolume&Value=50.

This sets the volume to 50%. you get

<audio>
<master volume="6.25" muted="False" meterF1="0" meterF2="0" headphonesVolume="100"/>
<busB volume="100" muted="False" meterF1="0" meterF2="0"/>
</audio>

You noticed the response is not

<audio>
<master volume="50" muted="False" meterF1="0" meterF2="0" headphonesVolume="100"/>
<busB volume="100" muted="False" meterF1="0" meterF2="0"/>
</audio>

same is true for 25% you get.

<audio>
<master volume="0.390625" muted="False" meterF1="0" meterF2="0" headphonesVolume="100"/>
<busB volume="100" muted="False" meterF1="0" meterF2="0"/>
</audio>

so -=5 and += won't work the way you would like.. and the reason you get the error.

Originally Posted by: magichamlet Go to Quoted Post
Originally Posted by: ebjorno Go to Quoted Post
Hi, I have successfully used the Function=SetVolume&Input=1&Value=-=2, but the other one (Value=+=2) gives an error (invalid parameters). How is this possible? Is it a bug?


same problem here, did you have a solutions? or is this still in work ....





I also have a problem when I use VMix Api.
Anyone can help me to figure this out?
Thank you
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.