You don't need to duplicate your code. Put the code that the three functions share into a separate inline function and call that from the laf functions. Then you just add the part that's different to the laf functions.
@d-healey Oh I see! I thought this was for an additional custom location that has nothing to do with the main sample location, I lost myself overthinking...
@d-healey Yeah im using static routing matrix, the problem isn't in the routing but in the mic positions. This is what doesn't resize with sample reloading Screenshot 2023-04-15 at 2.18.23 PM.png
When I compiled the plugin with this settings works well with sample maps with 4 mic positions but if I load anything different doesn't work fine.
@Casmat
I tried it out and it seemed to work subtractive.
It worked for me by setting the Attack Time to the longest I want it and using the Modulator on that to shorten it.