Re: Newbie question. Mixing Poly and Mono in schematics?
Posted: Wed Nov 23, 2022 6:44 pm
I'm surprise with the difference between the MV and prim dezipper.
I was thinking they was almost the same. And prim dezipper are reputed to take no cpu.
But seeing the code with the analyzer they are really different.
The difference in CPU is probably seen as negligible to most here... It might take a complete idiot like me
actually use several hundreds simultaneously connected modulation connections and de-zippers in a plugin. For good or bad
Did you use a lot of envelope ? Might be strange because they are hopped, but they take lot of cpu.
I think that optimized form exist but i didn't try them so much.
Or a lot of lfo that add together ? Maybe you could use hopped lfo, add them, then lowpass the result.
(I'm not even sure that the lowpass is necessary but like smoothing thing.)
Or maybe the best think to do is to isolate a maximum of part of your schematic.
Cut the volume with an amp and try to only take small part of the schematic to test the cpu cost.
Generally when i do that i could isolate one part of the schematic that do almost 2/3 of the cpu cost.
Yes I have 5 envelopes... so those maybe subject to changing if there are more efficient ones...
Other than the envelopes, I have some ideas on actually creating an array of selectors, and use some logic or ruby to disconnect
whole modulation sources. This would mean a click when the user first touches a part of a modulation source, and "then it's on" for the rest of the session and is on, if a recalled preset is using it...
But that would mean I have to know that there isn't any cross modulation going in between modulation envelopes and LFO for example. It's a bit tricky...
I don't think I gain alot, because the vast difference in performance between a "preset using alot of modulation" and "preset that doesn't" would only cause a bad user experience... This is why I have opted to a "click free always connected" schematic. The cost is of course being the performance...
But if you play more notes it begin to also reset like the stage 0.
The spmod version seems to work correctly from what I can see... atleast in the test-schematic posted.
Naturally individual streams become zero when stream ends and this happens I think with a delay after the envelope is finished doesn't it?
If you connect the amp-module directly to the oscillator it's easier to test the spmod-vesion...
Poly is so confusing to work with, despite only being one dimension more
Edit: