Inertial Slider

Can this be saved inside a LUA script, so one could press a button and load this in? I’m trying to figure out how I could call the Formula Device with my usual “load native effect” or “load VST/AU effect” scriptage?

Here, have an upvote and a thanks.
I would love to, of course, understand it a bit more deeply as regards how the Formula Device can be hijacked to do actual LUA work.
Also, I’m totally vague on the aspect where the Formula Device could be used across multiple patterns, I can only see “LINE” and “LINEF” in ( What Is The Formula Device? )… the BEATS, TICK seem very complex to me.

Is there a way to print this kind of stuff in the LUA terminal to better be able to understand what kind of number crunching one would have to apply to use SEQPOS, BEATS or TICK, or TICKCOUNTER in a useful fashion?

You could instantiate the formula device via scripting, and then you could activate the preset afterwards?

But, AFAIK you’d have to (1) save the preset and (2) hardcode the preset index in your calling script.
Not pretty, but I think it would work.

I’m wondering how to hardcode the Formula Device into a script so i can press a key and load it. Loading a preset index would be childsplay compared to that :)

Awesome +1

Thanks for this tool, it’s really useful!

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?

  • It’s been known to crash. Renoise prides itself on being “rock solid” and if Taktik knows something can crash the app, and he can’t actually put the time in to fix it, he has nightmares and wakes up crying.

  • By hiding it, Renoise doesn’t officially support this. So, if you ruin your song by crashing it out of existence, it’s your fault.

  • Too nerdy. No one wants to have to answer support emails in an official capacity about this device.

renoise.song():track(renoise.song().selected_track_index):insert_device_at(“Audio/Effects/Native/*Formula”, 2)

I think you know the rest?

Awesome, thanks!
I just need a bouncing ball formula now, yay for physics based formulas

I wrapped this up into a tool for myself. It inserts a formula device to the right of the currently selected device. Get it here: https://dl.dropboxusercontent.com/u/4211304/com.afta8.InsertFormulaDevice_Rns280_V1.xrnx

You can also save formulas as presets and there are a few to collect around here. Happy days!

yeah, i got it sorted, and wrote something to show the documentation too in a popup window :) (then didn’t really know where to go and what to do with it ;) )

Think it should be a native device.