User Tools

Site Tools


macros:example:bpmmasters

This is an old revision of the document!


Example

BPM Masters

by: Alex del Bondio
published: October 2017
description: Macros for double, half, tap, reset each of the BPM masters.
remarks: This is based on the fixed Titan IDs which we found exactly for these macros.

functions

The file adb_bpmmaster.xml has the macros already written for all 4 BPM masters. Here, we use BPM master 1 to explain it.

Code

bpmmasters.xml
<?xml version="1.0" encoding="utf-8"?>
<avolites.macros xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="Avolites.Menus.xsd">
  <macro id="Avolites.Macros.BPM1half" name="adb_BPM1 /2">
    <sequence>
      <step>Masters.DoubleOrHalfSpeedMultiplier(1607,false)</step>
    </sequence>
  </macro>
 
  <macro id="Avolites.Macros.BPM1tap" name="adb_BPM1 tap">
    <sequence>
      <step>Masters.TapTempo(1607, Math.GetCurrentTimeStamp())</step>
    </sequence>
  </macro>
 
  <macro id="Avolites.Macros.BPM1double" name="adb_BPM1 *2">
    <sequence>
      <step>Masters.DoubleOrHalfSpeedMultiplier(1607,true)</step>
    </sequence>
  </macro>
 
  <macro id="Avolites.Macros.BPM1*1" name="adb_BPM1 *1">
    <sequence>
      <step>Masters.ResetSpeedMultiplier(1607)</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

  • Masters.DoubleOrHalfSpeedMultiplier(1607,false) halves the bpm speed of bpm master 1 which is identified by its fixed titan ID
  • Masters.DoubleOrHalfSpeedMultiplier(1607,true) doubles the bpm speed of bpm master 1 which is identified by its fixed titan ID
  • Masters.TapTempo(1607, Math.GetCurrentTimeStamp()) taps the bpm speed of bpm master 1 which is identified by its fixed titan ID. The timestamp is a required parameter for this function to work, see Masters.TapTempo
  • Masters.ResetSpeedMultiplier(1607) resets the bpm speed of bpm master 1 which is identified by its fixed titan ID

How to use it

  1. apply when needed (you'll see the results when you have BPM masters assigned)
You could leave a comment if you were logged in.
macros/example/bpmmasters.1512561298.txt.gz · Last modified: 2017/12/06 11:54 by icke_siegen

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki