@udalilprofile you can paint on panels so it should possible
https://m.youtube.com/watch?v=nmB_Ml-XWGg
This video covers it somewhat but you would need tweak it for what you’re looking for
@udalilprofile you can paint on panels so it should possible
https://m.youtube.com/watch?v=nmB_Ml-XWGg
This video covers it somewhat but you would need tweak it for what you’re looking for
@udalilprofile Do you mean the arc knob? If so the example can be found here
https://github.com/christoph-hart/hise_laf_library/blob/main/Examples.md
@clevername27 Amazing! Now let’s try googles code base lol
HiseSnippet 1322.3oc6X0saaaCElJNrIwqsasHWraFfPvtHcnnPNNIMECCww4mNiFmXXmVr6JnknrIhLo.EURbG1c6x8vrGg9nr8Fz2fsCojsjUbRS8R69ASAHHGd3g76b324vCSKovkFEIjHqxmLLjhrtKtyPtp+t8ILNpwdHqOGS4mQCDgTaEMRgpOLjDEQ8PVVkdtdRVKMOx78tsqSBHbWZ1PHzqDLW5grALU1nsp8BVPvADO5IrA4l850Z3J36JBDw.fJgcPgD2SI8nGQzSaNL56IQ8QVeCds07c2xwYqpU2vgPp5QHqWgV8YT+M8c2v4YNdc2vA9YSj0c12ioDxNJBfdjEttvaXm9hy4IavqXQrtATsPETGXmSF9.Qfm1E0id7YT4YL544GCsaeVfWqQQuHDrxsxhkkRhkKiax7XiGOKl9EFE1YVjOnZM2jPtzDPtRdH6jCxSARV4fz7IP5A3NtRVnJSiFOeFtAWQk9D3rKOTRlKZttV3cEvL3pmLfbJ8.IHL1hU2zw4w1vudz2VtLb9EorOiHs6PFDFPkUr+NaCi5I8nJCDMRqtxH8qLoYufK5psYz9osRLHTvAgUWwnsfEGR5RCtZSRTarA97i4tJlfaK3GITzi4q9nx+X4kJ+SksKpx2ep5z6hTD.Pepp0LZ40Y3p73AcoxGCXOHlNdhvIz0wTqbULU2DmN2DE7Fbl53PJ+p3pnzHklhjhJXpJCA49oDjNALOpDw.dvBXSXGY.bZ1Zse+M+71nW1XOhhLZYfUD1kPpTwzNf0dzyfb+Dd2R38nQmpDgPZ73CGnny6cSuXb4g2FTa3XgeKt1.lmW.skHhoCv4q4DE66y.CmGC0qBG43MfU8g3NLMsyd+zZZUfRLRn5Bvk05SRD3vRNDcNySAEavV+Brj8ord8UZo0Pl.3XWXgDW3dotfgtY7fEwITuqxEPpZJ5E5U.2hob6eUa3xlRlWJSFpgH7hCHpIKrnKImpPGUxmMm4Z4JYWrZy72rpMWewvaJbePhmOc7N2TvKP09Xi2zZ22CuuuO0UkA14wG7CWag5acn7UIPAHsJIkLfw6kVzzfmx3QkPuMtSN7FembKIj4P75vdSto81Z0gjNpbxQ+0ZlsZmAhX9D6UJxaSCoDEb7mylEq0t8ykh3vhV8tsMjkSjPOAPnHuhi4THtqx6i6JEQQ9f6XVqn7pZEK6oiUYizlB2wGM4XGEO.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.
@d-healey very true lol. So then I guess this is just normalizing the value?
@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);
@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?
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?
@d-healey thank you for clarifying!
I think you need to use a panel, something like this.
// loads the image from the project's Image folder
Panel.loadImage("{PROJECT_FOLDER}sunset.png", "sunset");
Panel.setPaintRoutine(function(g)
{
g.fillAll(Colours.white);
g.drawImage("sunset", [0, 0, 200, 200], 0, 0);
g.drawImage("sunset", [200, 0, 300, 200], 0, 0);
});
https://docs.hise.dev/scripting/scripting-in-hise/scriptpanel.html