modulators, global & macro
-
- To be able to use Global Modulators & Macro Modulators inside FX plugins
- be able to getCurrentLevel from Global Modulators
Edited: I mean inside a FX plugin
-
@ulrik said in modulators, global & macro:
- be able to getCurrentLevel from Global Modulators
It works fine here
-
@ustk really how do you you get it? .getCurrentLevel isn't working for me
-
@ustk maybe I was not clear, I mean inside a fx plugin
(I changed the question so that it says inside a fx plugin) -
HiseSnippet 1188.3oc4W0saaTDEdVaOgZCTnPtBIjVkqbDEKaRH.BghINwQllervoAj3hpw6Nq8TO6LK6NaZbq5c77vq.bIWxi.Hd.fG.jfyL65cW25lZrRq.guvxm47y7Mm4Lemi6GJcnQQxPjU0ylFPQVuFdvTgZbmwDl.0aej0MwGShTzP6jk1aZ.IJh5hrrJendAqpUPlO+wt6Q3DgCMeID5bIygdDymoxWse66v37tDW5YL+BVuc6dNRQGIWFC3oLtIJf3LgLhdBQaVILxZsCbYJY3.EQQiPVU1S5NcvX4CDI1eNKhMjS0BsPCf.krbWI2UiX8uQcFy3t8mctiPHKb+7rP4jrv53iYtrr0yyFuoQgctGEyGVklGdkmCdsdVvaAPxp.jpj.oagG3DxBT4Zz34Uw8DvkiGAR6EgRhsnRkKg6HAKDpF9jIztgfPlG02oYyaaCes4mVqFj5iT1WPBsOp6oGKci4D3nzx9yrMEDMFQUYqVeCvF6bi1.BPt+2QHGp8a1FCd1Q5GHEfP8MLZ0NTbKUPgPH3xAhQLAsgSHExf5pivSGdepipNXuwlFQTkY8NDNeHTdT2KV3nXRQ8Mq8nZUg8LRxoMBBYvlM2Iwfi3vP.EGQufxquIDzpF3ni54DdLcI73w4PQQBS.S8sfT3LfXKEmHUzSSQTsGWy9IU44sPc5DVnjyg.tH0Ia0U3XcQr+PZ3sgTJbVxLDJglutbskqtzI49qfgRQOAScZ.MUN+gUqETEiRK.z0yoHDLUYpluYZ07.NykFhXPPdEr4t.Y.+LVg+7298cQ2s29DEYVXfHB6R.MTwzGFq8oW.bLIORph2mFMQICL1lVyA61ycSuLiF5GG1dZlP662NRMUmZVyXHxm45xo8kQLcpu.42O.bjACXOzf7Gs92e3u9vuaW+h7iHjO4xhzkQwddrKMDadLtejBvVOefuCY8V36FQscodjXtxNZBDGNSLg5dlzX+CXtpw.yk0WXgPiorQiUZoexPu9TTG.o0rZ5hLYZ56TE5yRQ5CMEg.NiSKh2mjdqxytLp4BYeWXQxRB2ag6yTNiWLdKs.7BkKunwaZyhWGefmGPRkC1J3te8U1Y3ZGJ2HAJuC9PtbHgmm.gGL.pnIcKd2T04T21YFz5JZs+yKaq8fkt0tU4qqdkUdQ099kZ88a+TWMQWquH+GLOTwgOdiDHiwPiwzL37s9e9fbOVfjSB056FR+1Xpvof9eYWc0Ru43I+JxETOYneJmdVjNhNB1yhqbFE33g4SbJ59.eoTMlIFMeM35sORJCNPPfLhawfzeLIR2SFFBnXX5DGoj9yvhg1c.vwaZEY8M3c1tA7w68ze+Icfu15zqGYz02XjkV5hO8kZ1sm958e4sCRPbV8z+AP7U1.q7+Oaf8kxXE7N8XBL5CLHD9jX+APGBGJfDgfxizC0TR+VLQtoV17DmJbMB+E7IUYKsrUpxVyT9RYO7INgx64jLiq9g2MLq.mag4utVE9Ozfrc1vsXbyFM0CSxtmiiNc+9sPnE6yGrB9r0J3y1qfOe3J3yNqfOezJ3yGek9nGC3yiA98jmhvB8OHgY2JqCgUYzeytxs4J
-
@ulrik oh ok! So once exported then... Sorry I did not try...
-
@ustk thank you, yes your example works but it will not work inside an compiled fx plugin
-
Does
ENABLE_ALL_PEAK_METERS=1
make a difference? -
@d-healey No I tried that with no luck
-
@d-healey the same with macro modulators, will not work once compiled as fx plugins
-
@ulrik The fact is that FX plugins don't export sub-containers afaik.
But does the modulator work in the exported plugin? I think it shouldn't anyway because it's not accessible from the main container's FXs -
@ustk oh, ok, no they don't work in a compiled fx plugin, so my work around is to add a simple gain and add a modulator to the delay chain (set the delay to zero) and read the modulator.getCurrentLevel() inside the Synth.timer to modulate other parameters.
That is not the best way though.I think the best, in my case, is to be able to use Macro Modulators and have hidden knobs connected to the macros and set all other parameters inside the hidden knobs cb, but it's not possible I'm afraid
-
@ulrik https://docs.hise.audio/working-with-hise/settings/project.html#enable-sound-generators-fx
That will give you the macros in an effect plugin.
-
@christoph-hart beautiful, thanks as always!
-
@ulrik what are the macros used for ?
-
-
@lalalandsynth I use them to control fx parameters that not has a modulation chain, or to control any parameter you like
Here the chorus rate
-
@christoph-hart yes it works but... it's very high cpu usage, I use 4 Macro LFO Modulators and when compiled the cpu peaks if using all 4 Mods controlling 8 parameters...
Actually my old system using 4 modulators inside 4 SimpleGains and read them using Synth.timer, is much more efficient and less cpu consuming.
I guess I must be doing something wrong with the macrosystem, or is it very demanding on the system?
-
@ulrik Can you make an example snippet that reproduces the high CPU usage? I never optimized it but that CPU level sounds super unreasonable so there is probably something fishy.
-
@christoph-hart the plugin I tried it on is much more complex than this example, and deals with a lot of data and calculations.
But I think you can see that using macro modulators are more cpu demanding than the comparing example I'll provide as well.
And when using the macro the cpu suddenly jumps up 10% more and then go back to normal again.The second example is exactly the same setup but I use 1 callback only and that is the Synth.timer at the speed of 1/200
Macro example:
HiseSnippet 2458.3oc6a07ababEmqjXRjrbPRSZCPOQHz.PUKugereIXjn0Ve3pDIsaz5Z0.AWaJxY2cp4RRSNqk2TD.2a8VOTzC9PQCP9GnW6gh5doWSuTzhdREAH4TAxgdtougj6xgRj6RsVRYSiWAHINy7l26868dy7l4wstqsNxyy1kK2r2pmChK277M5YQZuZaMrE2lqwk66xSPdDgNZ5t1BDaA81tXOtazyQyyCYvkK2z2jNzbyNCm+mubkanYpYoihZhi611XczV3NXRTq0q9dXSyMzLP2B2gYzEptots0p1l1cAwZZdINGM86q0BsiFcXSwyk6EV2.SrcaPz.YiK2L2v1nWi11GZEL9ai8vGXhnOHy0.lnfl2v1zfJwzV4VsM1znde02iiKGe8HvX5.v3042FafGzdDn7J9cHDQAKdjap3h2zwDOYVwShQ7RPjxwHRyDHRuJeCcWrCIpGp7bI9MsHH2lZ.ryJJAikaJo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