Change envelope step size?
-
I have a simple envelope linked to a knob that will modulate a sampler's pitch, basically a tune knob. The problem I'm having is that the step size of the envelope seems to be 0.12, and I would like it to be 0.10 to be precise and act more like semitones. Is there a way to adjust the step size of the envelope, or is there a different approach I should take?
-
-
@DW
If you want to transpose your notes, you can do it with a transposer.Here is a snippet:
HiseSnippet 1008.3oc2W0raabCDlzRLMRIwntHnnG2C8fSQPfjsbrJxgH+apPhsE75j1aAzbGYQ3cI2xkqqUK56leD5iRdCZGtqj2UwKbjEBZQpNHnYFNy7w4WpAFs.RRzFBs4IiiAB8gL+wJ6ncFwkJR+cIzkYGvSrfwKm01ii4IIP.gRq8JGCZi5jrOe3kayC4JATvhPdmVJf2Hij1BtC58ZYX397.3DYToS2oWegVsiNTmh3oFqEIlKNmeFbH2crkXjehmLhP+A15PvZc6x2ny5qK59icEaJ3cAQ6S2r0Z7gAq2EBNMnyFc3D581KPZ0FeK2BInQ2VGL1ej92T4N3cxD4ogfinMwG8bNaxNijgAClFbRHDJaPQnpVdn5wrCjAxq4WDx95LAdEZTNnQW51fT66.jVpDjpmCoUX9BiL1VHwgmGv5qvL3PNlaJCk7yRnWw1QiGPYeVD+bXeCRbsBq97VsdpG90SdwvTkvJ0JOs5PsENRs5SZ9GMaz7Oa58whFNrRYN2XzggfoRwtxAyso3ppznSAyS8tfGlBWeP75OaL8dyWLUjeqKcPspuRZOJFlPuuNLvEqb+9lY.xjvFlKnSPHdTaVlX4IYB+PY.XHRzHeE60J8osIYfubSB4s82ka4SMCZQzKwfwJcWF5tvEXSTdBtAaWH4bqNN6rQwZky+zleRmd40N7pvdiK7trG1bG6K+cTcFq8yZQhJ2T28pH9kkH6EO892GM9iXmX3pjXcBXZicqFrQEqabhVoPzVQ5TDjV3RqqV7Z93jfaT.+vRVLq1cVWTt58iseo.5msdrJPH1bqCRC41Y63cyBmH.KYmAntdIUhzNt7rx6.Da8YAhqvFHshQUiwkp.i2ov37iwICOeDaugCAgs.f0Y6+KK5jx428Km69Gv7kJHaUWly+1LZueleA38JPAFWvq8srs6ul2scwy81tiDVz8EsGkLrODIOA60SJy7sI3rZ3WO1kMKyeGM2TonO7x8wKYk53ysolrxhJ5lpMadn970MMaGQoyWwpr5+Grcs0W5c9TZIL1XJF8kQwgvdpKfPbGRFF+FbowPdZncJ2YKrOPqzwizJonbV+XvZjmcFXJi8JuPaYs36zJ373dGCg.ubE7226MXkG2fwIXAiEsm+Xwsku9NVNb8bcide4Nwt1+umXerN0JUmc.GKBw2evNLMxGGTJ.z6JEDhFmQWxMrKmtkiNeRoJHi3uwOSD11QSmHr8Tg+q3iHtvneuH+wgt5z6mwAu2pr+TSC7eWgzdU7pvHbJ26EhYM0MTbsEUw0WTE6rnJtwhp3yWTE2bQUr6mVQ2RnsRs5n7VSB4fA6k8JdJcOEGqxy5HH+iNPFRd
Best regards
Oli -
Something like this i think
const var SimpleEnvelope1 = Synth.getModulator("Simple Envelope1"); inline function onKnob1Control(component, value) { SimpleEnvelope1.setIntensity(value/2); }; Content.getComponent("Knob1").setControlCallback(onKnob1Control);
-
@Oli-Ullmann This is a good global approach. The problem is I want the transpose to be independent for different samplers. Do you know if the transpose can be applied to only certain modules?
-
@musictop This worked but had to change to /1.
Thank you!
solution
const var SimpleEnvelope1 = Synth.getModulator("Simple Envelope1"); inline function onKnob1Control(component, value) { SimpleEnvelope1.setIntensity(value/1); }; Content.getComponent("Knob1").setControlCallback(onKnob1Control);
-
-
@DW said in Change envelope step size?:
The problem is I want the transpose to be independent for different samplers. Do you know if the transpose can be applied to only certain modules?
You can add the transposer script within each sampler.
@DW said in Change envelope step size?:
This worked but had to change to /1.
You know, dividing by 1 is the same as not dividing at all?
-
@d-healey very true lol. So then I guess this is just normalizing the value?
-
@DW said in Change envelope step size?:
So then I guess this is just normalizing the value?
It's making no difference. What were you doing previously? You didn't show us.
-
HiseSnippet 1322.3oc6X0saaaCElJNrIwqsasHWraFfPvtHcnnPNNIMECCww4mNiFmXXmVr6JnknrIhLo.EURbG1c6x8vrG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kSjPOAPnHuhi4THtqx6i6JEQQ9f6XVqn7pZEK6oiUYizlB2wGM4XGEO.N64bZftXrkELzKin5yZlaShRxtH+rM6hyIDy4MznhQtRA40JHWsf75Ej2nf7lEjeZlbR.sIITyLV.ukyV1UtzUJKdytRAVkVDvuyMy5rdi2gjQxyhGGqM3IW2UWt0oo1mxc9X05zmzhY+0q8d6zo2RivXxUcitoyfwGBWC6ShCTY2+kGkMEbQXeAm4NY1Av160iJyi8o5P6nTPxY1HKWqMMfRhxkd+00NjwoD4jI8ePwhJevc8N0yquDm.WacAO6+abmYoazcl2N7rxWKO6R8YMi7r5rPQ.QNs9AL8fVjxoWlBTND5+ob+apsmqKBd+zldrgcWp9Gdp5cwlqos0cU82ETaKhUP2Ri5XACs0zAZkyklu4l4zMLkH6nk0.pCk6YD9C3KUYkQcBoUVYjRj6nkB7sz+17tPqRTtti.S27APOVAS6UZP2KeRP4.hqT7Z2j26pw5hlQ.TxM+6kVB2TKaO4CcMevSMYu10cxk5RFt1rZX0Y0v0mUC2XVMbyY0vmNqFt062PcGg6DqDCRJlhPMaseBAzZ+wDvRn+DTqMQ9K
previously I was linking a knob to a simple envelope modulator, but the step size of the envelope intensity was .12 before adding the solution @musictop provided. The step size was then .5 but I needed it to be 1 and changing to /1 instead of /2 worked for me.
-
@DW said in Change envelope step size?:
The step size was then .5 but I needed it to be 1 and changing to /1 instead of /2 worked for me.
You don't need
/1
because dividing the value by 1 is just the value. So all you need isvalue
. -
@d-healey Makes sense thank you!