Myriad Playout v5 using Commands to "Duck" and restore the volume of all Media players

Modified on Tue, 24 Sep at 12:49 PM

Introduction

Sometimes when you are working remotely from studio but feeding live audio, it can be useful to be able to "duck" the levels of audio played by Myriad - for example talking over a Music Bed.
 
This can easily be accomplished by using the Myriad Command Language and creating a Media Item with the instructions to reduce the level of the Media Players.
 

Details

A typical command script might be:
REM Ignore any failures so we fade all players
Commands.IgnoreFails()

REM Fade each player to 80% taking 500msec
Players.FadeTo(-1,1,500,80)
Players.FadeTo(-1,2,500,80)
Players.FadeTo(-1,3,500,80)
Players.FadeTo(-1,4,500,80)

REM This returns zero so that no message box is displayed if the last player above is empty.
Commands.Return(0)
 
This command will fade the first 4 media players to 80%, and take 500msec (e.g. half a second) to do it if the media is playing.
 

Usage:

 
Once you have created these Media Items, you can then easily assign them to Favourites for remote use which are also ideal for remote use.
 

QuickPlay Example:

Alternatively you can use the QuickPlay tile introduced in Myriad Playout v5.21 to permanently dock these on screen. 
 
mceclip1.png
 

Stream Deck configuration 

Note: the following Stream Deck information is not fully tested and is not supported by Broadcast Radio, and should be considered "use at your own risk"

By using the REST API (introduced in Myriad v5.26) you can also remotely "play" media items such as the commands above.  If you are using an Elgato Stream Deck then you can use the "API Ninja" plugin to send HTTP POST messages to the Myriad v5 REST API. 

To enable the REST API, you will need to go in Myriad Application Settings, then on the Remote Connections tab select the "Always allow HTTP 'Service' Connections... " option. For this example and to use the plugin files below, you will also need to turn off the 2 options for requiring API Keys. 

mceclip0.png

(Note: once you have completed testing, you should turn the API key options back on, and then alter the API Ninja configuration to use the API Keys. Consult the BarRaider documentation on how to send the API Key in the POST header)

Once you have made those changes, click OK and then close and restart Myriad Playout.

Then download the 2 attached Play400.ninja and Play401.ninja files and import those onto available buttons on your StreamDeck. Pressing those buttons should then "play" media item 400 and 401 respectively which will lower the volume all players to 80% and restore it back to 100%.

Example files

Attached to this article is a zip file that contains several files. These are 3 Media Transport Files that contain example commands to Duck to 80%, 20%, and to restore to full volume. 
 
There is also also a Layout file with an example of the Quick Play Tile with those items assigned to 3 buttons - note that you will need to import the 3 transport files into Media ID's 9081-9083, or alternatively edit the Layout file to show the Media ID's that you have imported them into.
 

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article