VEX scaling - Morim - 05-26-2026
Hi.
I have some questions (and ideas) regarding the video expander.
Im routing the envelope from my ADSR into CV input but Im a bit unsure what that translate into as input to the shader. -1->1? 0->1? 0->10? The same question is about CV out routed to a modulator...
And the idea is if it would be possible to add scale/offset directly when you assign a modulator. (I suppose that you can do this via the mappings but that is a bit cumbersome... )
Anyways, VEX is a really nice module
RE: VEX scaling - XORadmin - 05-26-2026
I assume you are talking about an external envelope?
In general any signal from min to max (like cv input 0-10 volt or internal values 0-4095 / 0-FFF and so on) are scaled to -1 / +1 in modulators for the shaders. So 0 volt would be -1 and 10 volt would be +1.
In case you want to add offsets you either do that in the shadercode or you go through the mapping route.
In that case you would have a CV input as a source, add (or subtract) an offset with the CALC command and have one of the shader modulations as the destination. Not
cumbersome at all but very flexible :-)
Keep in mind if you use external envelopes that the output is 0-10 volt and not
Bipolar as the CV inputs can’t handle this. Also keep in mind that there is a small delay when using external signals and that ADSR envelopes are mostly not the best for visuals compared to A(H)R envelopes. The best is actually to use the internal envelopes of the VEX since they are the fastest and got a higher internal resolution.
RE: VEX scaling - Morim - 05-26-2026
(05-26-2026, 07:55 AM)XORadmin Wrote: I assume you are talking about an external envelope?
In general any signal from min to max (like cv input 0-10 volt or internal values 0-4095 / 0-FFF and so on) are scaled to -1 / +1 in modulators for the shaders. So 0 volt would be -1 and 10 volt would be +1.
In case you want to add offsets you either do that in the shadercode or you go through the mapping route.
In that case you would have a CV input as a source, add (or subtract) an offset with the CALC command and have one of the shader modulations as the destination. Not
cumbersome at all but very flexible :-)
Keep in mind if you use external envelopes that the output is 0-10 volt and not
Bipolar as the CV inputs can’t handle this. Also keep in mind that there is a small delay when using external signals and that ADSR envelopes are mostly not the best for visuals compared to A(H)R envelopes. The best is actually to use the internal envelopes of the VEX since they are the fastest and got a higher internal resolution.
Hi.
Yes, the mappings are powerfull indeed.
The reason for using external Env was that it is nice to have the shader respond to changes while playing live, to change between snappy or blooming env "on the fly" . But maybe it is possible to use cv in to change the vex-env to match the sound.
And thank you for explaining the scaling of inputs
(05-26-2026, 07:55 AM)XORadmin Wrote: I assume you are talking about an external envelope?
In general any signal from min to max (like cv input 0-10 volt or internal values 0-4095 / 0-FFF and so on) are scaled to -1 / +1 in modulators for the shaders. So 0 volt would be -1 and 10 volt would be +1.
In case you want to add offsets you either do that in the shadercode or you go through the mapping route.
In that case you would have a CV input as a source, add (or subtract) an offset with the CALC command and have one of the shader modulations as the destination. Not
cumbersome at all but very flexible :-)
Keep in mind if you use external envelopes that the output is 0-10 volt and not
Bipolar as the CV inputs can’t handle this. Also keep in mind that there is a small delay when using external signals and that ADSR envelopes are mostly not the best for visuals compared to A(H)R envelopes. The best is actually to use the internal envelopes of the VEX since they are the fastest and got a higher internal resolution.
Another question.
Is it any significant difference in performance if i use another u_modulator in the shader to do a scaling compared to do it with a mapping calc?
Example to use u_mod1 * u_mod2 in the shader where u_mod1 is the signal and u_mod2 is scalefactor.
Or only have u_mod1 in the shader and scale it with CALC?
RE: VEX scaling - XORadmin - 05-26-2026
(05-26-2026, 09:32 AM)Morim Wrote: (05-26-2026, 07:55 AM)XORadmin Wrote: I assume you are talking about an external envelope?
In general any signal from min to max (like cv input 0-10 volt or internal values 0-4095 / 0-FFF and so on) are scaled to -1 / +1 in modulators for the shaders. So 0 volt would be -1 and 10 volt would be +1.
In case you want to add offsets you either do that in the shadercode or you go through the mapping route.
In that case you would have a CV input as a source, add (or subtract) an offset with the CALC command and have one of the shader modulations as the destination. Not
cumbersome at all but very flexible :-)
Keep in mind if you use external envelopes that the output is 0-10 volt and not
Bipolar as the CV inputs can’t handle this. Also keep in mind that there is a small delay when using external signals and that ADSR envelopes are mostly not the best for visuals compared to A(H)R envelopes. The best is actually to use the internal envelopes of the VEX since they are the fastest and got a higher internal resolution.
Hi.
Yes, the mappings are powerfull indeed.
The reason for using external Env was that it is nice to have the shader respond to changes while playing live, to change between snappy or blooming env "on the fly" . But maybe it is possible to use cv in to change the vex-env to match the sound.
And thank you for explaining the scaling of inputs
(05-26-2026, 07:55 AM)XORadmin Wrote: I assume you are talking about an external envelope?
In general any signal from min to max (like cv input 0-10 volt or internal values 0-4095 / 0-FFF and so on) are scaled to -1 / +1 in modulators for the shaders. So 0 volt would be -1 and 10 volt would be +1.
In case you want to add offsets you either do that in the shadercode or you go through the mapping route.
In that case you would have a CV input as a source, add (or subtract) an offset with the CALC command and have one of the shader modulations as the destination. Not
cumbersome at all but very flexible :-)
Keep in mind if you use external envelopes that the output is 0-10 volt and not
Bipolar as the CV inputs can’t handle this. Also keep in mind that there is a small delay when using external signals and that ADSR envelopes are mostly not the best for visuals compared to A(H)R envelopes. The best is actually to use the internal envelopes of the VEX since they are the fastest and got a higher internal resolution.
Another question.
Is it any significant difference in performance if i use another u_modulator in the shader to do a scaling compared to do it with a mapping calc?
Example to use u_mod1 * u_mod2 in the shader where u_mod1 is the signal and u_mod2 is scalefactor.
Or only have u_mod1 in the shader and scale it with CALC?
For 1: You can change also the shader-envelope settings on the fly using CV input if you want to.
And if you scale in the shader by adding another u_modulator and do a multiplication there is no significant performance difference. I assume you probably won't even realize.
|