User Tools

Site Tools


macros:example:audiotriggersonoff

Example

Trigger - Toggle Audio Triggers On/Off

by: Sebastian Beutel
published: Januar 2018
description: Toggle Audio Triggers On/Off
remarks: based on Timecode - Enable/Disable
idea: https://www.facebook.com/groups/AvolitesTitanOne/permalink/1221271414675655/

functions

affected properties

Code

AudioTriggersMacro.xml
<?xml version="1.0" encoding="utf-8"?>
<avolites.macros>
  <macro id="Avolites.Macros.Audiotrigger.Enable" name="Enable Audiotrigger">
    <description>Enable Audio Trigger.</description>
    <sequence>
      <step>ActionScript.SetProperty.Boolean("Audio.AudioTriggersEnabled", true)</step>
    </sequence>
  </macro>
  <macro id="Avolites.Macros.Audiotrigger.Disable" name="Disable Audiotrigger">
    <description>Disable Audio Trigger.</description>
    <sequence>
      <step>ActionScript.SetProperty.Boolean("Audio.AudioTriggersEnabled", false)</step>
    </sequence>
  </macro>
  <macro id="Avolites.Macros.Audiotrigger.Toggle" name="Toggle Audiotrigger">
    <description>Toggle Audio Trigger.</description>
    <active binding="Audio.AudioTriggersEnabled" />
    <sequence>
      <step>ActionScript.SetProperty.Boolean("Audio.AudioTriggersEnabled", !Audio.AudioTriggersEnabled)</step>
    </sequence>
  </macro>
</avolites.macros>

Explanation

This explains the functional steps within the sequence. For all the other XML details please refer to Formats and syntax

This sets the property AudioTriggersEnabled to true or false, thus enabling/disabling the audio triggers.

How to use it

You could leave a comment if you were logged in.
macros/example/audiotriggersonoff.txt · Last modified: 2019/12/09 20:34 by gregory

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki