Example of how to control modulator intensity
-
I've been helping someone via PM but I figured this is something that would benefit other people too so I'll post it here. Just a quick example of how to control the intensity of a modulator, in this case the pitch wheel mod.
HiseSnippet 1228.3ocyXEtaaaCDlxIDs1sIaoqCa+THXCvAMMvNMsaCAAyINwEFMNwHxMY.6GczRT1DQhTihJsYE8YXuZ6QYuAajTRVxNZI1ddcUHNv7Ndje7tu63I2kyrwggLNv3A8tN.CLdHz5ZpXXygHBEz9PfwpvNnPAlaFK5fqCPggXGfgwRuTIvn7x.8ye9iGf7PTablH.3bFwFeLwmHxj9KMdEwyqExA2i3ma16znsMi1j4whj3YIXMP.x9Rz.7IH0zJAAWQvuMDXTC9rs2heY89+19aMwyEOo06525.42ZoF1UOAfcDmiohyklCLfF+k7w.djCQv3VBj.KWykOf4bs0P1aowa84jPReOrZPcfkDSwhaw7bTGdkTPygDOmtotvPfbs6l4PWJ1g9XXGhCYj7LG6mqUXlYQdWqQoaCd0ua3UqH3YjCdKGCu0fV1bRfHSiBaOJQ5+.5hUBJQMfxHVnv7JD27RZ+tDg8Py8LaxnBo+dKjiyqnr9UWOPoX8MMqI+aicWoR5b2JDKNCQGfq9z5auoo9iR+JUxVWsscXNx0USM2Z.VHGF4gj9mpqGumWLDi8LGId8M10MhZKHLpIidBSfOkVciJuuR4JenxjZbcKRk5LvYddXdQZULW9sXVUZjeeLeS4IvKBqmGw0LQp4d6MxaswJUJ+d4mxoGSkKosx8ERDWWM17cqT9CxsQFWGmUTY5XE1wgibSjQaSIhSCvIr8TezMj35lWTlOIuTsunfokJpnLEPBEQQJSltbpBMkb0DxmkGwAyADIk6dPs6AncG4qu.tIiVlWkRCxmroJVknPFoFiNOxcmuX1LjAVa9x.eXLdgviacpFjel5aYj36Fis33eMBSsyI79MTEVamUWtwu23BzUXWF2Od+xL+X7.49jWROre.SlkYm2Ga4yXhgD5fwKW+3FMiBEL+zUGX7svs2Yh5wWcp7etOQ80enodLvRfCNDIP.ieF9hIm+h5ALY3aooKUofPVoojh8E5n2n3jJNtPYYyYc9xifr71lrDXMjWK9JnbRuS.+5PbOjFQYDj1zqvbgxnLYYq4I5Zd4WiXB03rIRiCwtnHOw4SlhuvhjfYJPNJ2ZgGHqM08SLsHdMX2jaOJn7VoBv6M8pKb7lz9yJvibcw1hLvtLr0OMu85LePY0Xn7.nEgh08PnAxWpGappeY9RLEyuQQ2wav8OV7M3dpsPt683HZX.KbrE1B6S5wnJGRlPY1mhWdlJHOd1FhWnJ4cDxyXg1XgDQbMaYeeVDULF6XhFMfSWN232wla92Q8pk+ens4EeV3mh8XLp5uEwOvCejrRsGSJItpQRI2QRyC3NLJKXHiRFqWfyvBNYvfwqmW3YaegP91a4aW3LrGFkmj+MMNVRNQboKCeatk4+taioLz80vX3ZpRXM+nFB+Oqt+R+aq6OmMbbuzeHAM1zuXlFreErvWU6tg7z0xQwsUr.ISeJc41YrHgrg7NHY136jkmk8XYIuTwFKQBkh8TkrMJotXHdbM033aUnN0R+MPRTVWM1HQY8TkeT1CejMm8F63dEUDo6qkHO2T8u4SYXG0Xy5ou4mx23Kq++Faaky9oRuSwVr8LawylYK1Yls34yrEuXls36lYK99awB0ks6GIeMu35K.veCnTkS.A
-
:D Thanks!
-
This works too :)
OnInit:
const var knbPitch = Content.addKnob("pitch", 32, 0); knbPitch.setRange(-12, 12, 1); const var pitchMod = Synth.getModulator("Pitch Wheel Modulator");
OnControl:
case knbPitch: pitchMod.setIntensity(value);
-
That's because it's the same as my code :p
Think of it like using different words to mean the same thing.
-
Used a bit differently :P
I'm pretty sure you put the code in another interface by purpose ^^ -
*facepalm ;)