View Single Post
Old 05-05-2019, 06:17 AM   #467
Human being with feelings
mrelwood's Avatar
Join Date: Nov 2006
Location: Finland
Posts: 1,358

I'm having trouble figuring out how to get a bunch of nested functions to reference to the correct parameters while oversampling. I'm not sure if this can even be done exactly this way. If not, I'd love to hear suggestions. I'm not very advanced with coding, and JS is the only language I (somewhat) know.

The issue is with assigning the fixed parameters (red text) for each filter, that should then be referenced to from the nested functions. There are multiple hp-filters and multiple calls from the oversampled section.

The way I observe "this.." call to work is this:
this.param1 -> first.second.third.param1
this..param1 -> first.second.param1

So the root level ("first") is always included. Problem is that the root function title is different when creating the parameter and when executing the "hp-run" function.
"first.this.third.param1" would solve the issue, but it doesn't work, "this" can only be in the beginning.

So, how do I create the fixed parameters in multiple "hp-init" functions that can be called from the nested "hp-run" function?
______Announcing__mrelwood plugins______
.. MacBook Pro 15" Late '13 .. Scarlett 6i6, Saffire Pro 24 DSP (+ADA8000) .. FCA610 .. EVE: SC207 .. Focal: Alpha 65, CMS 40, Listen Pro ..
mrelwood is offline   Reply With Quote