Problem with vu meter in fx plugin (Solved)
-
I'm working on a midi controlled fx plugin using 10 "FX Slots" and to test it while developing I have a sine generator inside it,
when I compile it for testing in daws I just remove the generator and move the Slots and attach them to the main container.
I open it as an "au midi-controlled effect" in Logic and route the audio tracks to the plugin and it works great.
Now I have implemented a VU meter, I'm using a modified version of Christophs VU meter, and in Hise it works fine but compiled it doesn't work at all.
What can I have made wrong?
Any hints are appreciated. -
@ulrik I also tried to load Hise, as a plugin, in Logic and develop from there, but you can't get audio in to Hise as I understand it, I can only load Hise as an instrument in Logic
-
the VU meter script picks up the signal using this code:
if(this.data.fx) { lvalue = getNormalizedPeakValue(this.data.fx.getCurrentLevel(0)); rvalue = getNormalizedPeakValue(this.data.fx.getCurrentLevel(1)); } else { lvalue = getNormalizedPeakValue(Engine.getMasterPeakLevel(0)); rvalue = getNormalizedPeakValue(Engine.getMasterPeakLevel(1)); }
-
@ulrik Have you used
ENABLE_ALL_PEAK_METERS=1
extra definition in Hise settings? -
@orange yes
-
@orange the VU meter works with a sine wave generator but as soon as I remove the generator the vu fails
-
@ulrik Stupid me, I forgot to:
inline function setModule(vuMeter, module) { vuMeter.data.fx = module; }
VuMeter.setModule(VuMeter.outputMeter, Synth.getEffect("MasterOut"));
Now it's working, sorry for this thread, you can delete it
-
@ulrik said in Problem with vu meter in fx plugin (Solved):
you can delete it
Leave it for others who have the same issue :)