User Tools

Site Tools


macros:example:tapspecificbpm

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
macros:example:tapspecificbpm [2018/02/23 14:10] icke_siegenmacros:example:tapspecificbpm [2019/04/27 10:36] (current) sideshowbond
Line 1: Line 1:
 Example Example
  
-====== Tap specific BPM rate ======+====== Masters - BPM Master - Set Speed ======
  
 ^ by: | Sebastian Beutel | ^ by: | Sebastian Beutel |
Line 8: Line 8:
 ^ remarks: | Two possible ways - both have their pros and cons, and are discussed below. | ^ remarks: | Two possible ways - both have their pros and cons, and are discussed below. |
  
-{{tag>tap bpm master speed ]}}+{{tag>tap bpm master speed}} 
 + 
 +**The Titan IDs used in this example have changed in Titan v11 (and were different in v10), see [[macros:identifier:titanid|]]** 
 + 
 +**The former macro for v10 can be downloaded here: {{ :macros:example:tap85bpm.xml |}}**
  
 ==== functions ==== ==== functions ====
Line 16: Line 20:
  
 ===== Code ===== ===== Code =====
-<code xml tap85bpm.xml>+<code xml tapxbpm.xml>
 <?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
 <avolites.macros xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="Avolites.Menus.xsd"> <avolites.macros xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="Avolites.Menus.xsd">
-  <macro id="Avolites.Macros.TapAllBPM60" name="Tap all BPMs 60">+  <macro id="Avolites.Macros.TapAllBPM60.v11" name="Tap all BPMs 60 (v11)"> 
 +    <sequence> 
 +      <step>Masters.TapTempo(1612, Math.GetCurrentTimeStamp())</step> 
 +      <step>Masters.TapTempo(1616, Math.GetCurrentTimeStamp())</step> 
 +      <step>Masters.TapTempo(1620, Math.GetCurrentTimeStamp())</step> 
 +      <step>Masters.TapTempo(1624, Math.GetCurrentTimeStamp())</step> 
 +      <step pause="1.000">Masters.TapTempo(1612, Math.GetCurrentTimeStamp())</step> 
 +      <step>Masters.TapTempo(1616, Math.GetCurrentTimeStamp())</step> 
 +      <step>Masters.TapTempo(1620, Math.GetCurrentTimeStamp())</step> 
 +      <step>Masters.TapTempo(1624, Math.GetCurrentTimeStamp())</step> 
 +    </sequence> 
 +  </macro> 
 +   
 +  <macro id="Avolites.Macros.TapAllBPM85.v11" name="Tap all BPMs 85 (v11)"> 
 +    <sequence> 
 +      <step>Masters.TapTempo(1612, Math.GetCurrentTimeStamp())</step> 
 +      <step>Masters.TapTempo(1616, Math.GetCurrentTimeStamp())</step> 
 +      <step>Masters.TapTempo(1620, Math.GetCurrentTimeStamp())</step> 
 +      <step>Masters.TapTempo(1624, Math.GetCurrentTimeStamp())</step> 
 +      <step pause="0.706">Masters.TapTempo(1612, Math.GetCurrentTimeStamp())</step> 
 +      <step>Masters.TapTempo(1616, Math.GetCurrentTimeStamp())</step> 
 +      <step>Masters.TapTempo(1620, Math.GetCurrentTimeStamp())</step> 
 +      <step>Masters.TapTempo(1624, Math.GetCurrentTimeStamp())</step> 
 +    </sequence> 
 +  </macro> 
 +   
 +  <macro id="Avolites.Macros.AllBPM85.v11" name="All BPMs 85 (v11)">
     <sequence>     <sequence>
-      <step>Masters.TapTempo(1607Math.GetCurrentTimeStamp())</step> +      <step>Masters.SetSpeed(161285.000)</step> 
-      <step>Masters.TapTempo(1611Math.GetCurrentTimeStamp())</step> +      <step>Masters.SetSpeed(161685.000)</step> 
-      <step>Masters.TapTempo(1615Math.GetCurrentTimeStamp())</step> +      <step>Masters.SetSpeed(162085.000)</step> 
-      <step>Masters.TapTempo(1619Math.GetCurrentTimeStamp())</step> +      <step>Masters.SetSpeed(162485.000)</step>
-      <step pause="1.000">Masters.TapTempo(1607, Math.GetCurrentTimeStamp())</step> +
-      <step>Masters.TapTempo(1611, Math.GetCurrentTimeStamp())</step> +
-      <step>Masters.TapTempo(1615, Math.GetCurrentTimeStamp())</step> +
-      <step>Masters.TapTempo(1619, Math.GetCurrentTimeStamp())</step>+
     </sequence>     </sequence>
   </macro>   </macro>
      
-  <macro id="Avolites.Macros.TapAllBPM85" name="Tap all BPMs 85">+  <macro id="Avolites.Macros.AllBPM60.v11" name="All BPMs 60 (v11)">
     <sequence>     <sequence>
-      <step>Masters.TapTempo(1607Math.GetCurrentTimeStamp())</step> +      <step>Masters.SetSpeed(161260.000)</step> 
-      <step>Masters.TapTempo(1611Math.GetCurrentTimeStamp())</step> +      <step>Masters.SetSpeed(161660.000)</step> 
-      <step>Masters.TapTempo(1615Math.GetCurrentTimeStamp())</step> +      <step>Masters.SetSpeed(162060.000)</step> 
-      <step>Masters.TapTempo(1619Math.GetCurrentTimeStamp())</step> +      <step>Masters.SetSpeed(162460.000)</step>
-      <step pause="0.706">Masters.TapTempo(1607, Math.GetCurrentTimeStamp())</step> +
-      <step>Masters.TapTempo(1611, Math.GetCurrentTimeStamp())</step> +
-      <step>Masters.TapTempo(1615, Math.GetCurrentTimeStamp())</step> +
-      <step>Masters.TapTempo(1619, Math.GetCurrentTimeStamp())</step>+
     </sequence>     </sequence>
   </macro>   </macro>
      
-  <macro id="Avolites.Macros.AllBPM85" name="All BPMs 85">+    <macro id="Avolites.Macros.AllBPM0.v11" name="All BPMs 0 (v11)">
     <sequence>     <sequence>
-      <step>Masters.SetSpeed(160785.000)</step> +      <step>Masters.SetSpeed(16120.000)</step> 
-      <step>Masters.SetSpeed(161185.000)</step> +      <step>Masters.SetSpeed(16160.000)</step> 
-      <step>Masters.SetSpeed(161585.000)</step> +      <step>Masters.SetSpeed(16200.000)</step> 
-      <step>Masters.SetSpeed(161985.000)</step>+      <step>Masters.SetSpeed(16240.000)</step>
     </sequence>     </sequence>
   </macro>   </macro>
Line 73: Line 95:
  
  
-The 3rd macro directly sets the designated speed.+The next macros directly set the designated speed.
  
 ==== Pros and Cons ==== ==== Pros and Cons ====
macros/example/tapspecificbpm.1519395020.txt.gz · Last modified: 2018/02/23 14:10 by icke_siegen

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki