Inertial Slider

Whoa, that is so cool! How could I have not known that this *Formula Device exists the whole time…

Someone asked whether you could make “something like a mass spring” with this… Behold the Spring Slider:

Click to view contents
  
<?xml version="1.0" encoding="UTF-8"?>  
<filterdeviceclipboard doc_version="0"><br>
  <deviceslot type="FormulaMetaDevice"><br>
    <isactive>true</isactive><br>
    <isselected>true</isselected><br>
    <selectedpresetname>Init</selectedpresetname><br>
    <selectedpresetismodified>true</selectedpresetismodified><br>
    <ismaximized>true</ismaximized><br>
    <customdevicename>Spring Slider</customdevicename><br>
    <formulaparagraphs><br>
      <formulaparagraph>doit(A, B*B, 1-C*C)</formulaparagraph><br>
    </formulaparagraphs><br>
    <functionsparagraphs><br>
      <functionsparagraph>curVelocity= 0</functionsparagraph><br>
      <functionsparagraph>function doit(target, velocity, damping)</functionsparagraph><br>
      <functionsparagraph> curVelocity= (curVelocity + (target - OUTPUT) * velocity) * damping</functionsparagraph><br>
      <functionsparagraph> return OUTPUT + curVelocity</functionsparagraph><br>
      <functionsparagraph>end</functionsparagraph><br>
    </functionsparagraphs><br>
    <inputnamea>Target</inputnamea><br>
    <inputnameb>Velocity</inputnameb><br>
    <inputnamec>Damping</inputnamec><br>
    <editorvisible>true</editorvisible><br>
    <panelvisible>1</panelvisible><br>
    <inputa><br>
      <value>0.314814806</value><br>
      <visualization>Device only</visualization><br>
    </inputa><br>
    <inputb><br>
      <value>0.27111119</value><br>
      <visualization>Device only</visualization><br>
    </inputb><br>
    <inputc><br>
      <value>0.179999962</value><br>
      <visualization>Device only</visualization><br>
    </inputc><br>
    <desttrack><br>
      <value>-1</value><br>
      <visualization>Device only</visualization><br>
    </desttrack><br>
    <desteffect><br>
      <value>0.0</value><br>
      <visualization>Device only</visualization><br>
    </desteffect><br>
    <destparameter><br>
      <value>1.0</value><br>
      <visualization>Device only</visualization><br>
    </destparameter><br>
  </deviceslot><br>
</filterdeviceclipboard>  
  

I love this. Apparently it’s been there since 2.6?! How come it never made it out of the “alpha” stage and into the Track DSP selection box?

1 Like