ScriptNode - switching between myultiple modulation signals...
-
I have what i think is a simple problem - but for the life of me i cant work out how to implement the solution, I have three modualtion sources, and I want to simply switch between each of them and apply it to a common param - here's a simple example using a gain node and 3 cable_tables....
HiseSnippet 1831.3oc2Y0zaaaCFVxNLo4iVrt0fsi9vFPJZgQrSVaG1g37gSavpSLhcS6N0wJQaSXIRAIZm3Mr661N2a6mvtta8GPOLfse.6mP+Gr8RQIaIY43OxGcs1.FlujujO78aRV0kaP773tZ5KVumCQSeETsdLQqcagoLsC1SS+VnJXOAwMmhzN8bvddDSMc8rOVRPew4z7+7ts1AagYFjAjzzNgSMHOkZSECnVsz2Qsr1GaRpSsiL5MKcfAmsK2h2AvSVz5ZNXi13ljCwxgkAooOeYSpf6VSfEDOM841ga1qVK9oL03Og5QekEQ1nfVMXhTj2maYJQr7+Z61hZYVMbe6oooipNPJjUIEtCpB0j1m9.owm32QtAbDUdnmIN7xFCdEFE7RAR5QfzbJHcaTMCWpiXPOR7rL5.FnbZfAwdTnnFql9aP6xgAvD4swsI66BM5yvZOX80ueN3m69sM5vLDTNKGmcHWPNhs1cW5mVZwk94kxkrqFMRsO4x3xsrHto1sTS6ddLtFqi8qHt2OWWrUGR+ABa+3xz4mLYpgZWGYfb1ALp3HGRP6AFEERQCnEH1f+8rC1CKvRkR.MXbNDWAUBG88HcAKbkJZQzdDu1BtCXiOj9Crb3lcrvh3lSRenfN.4QLcnTQw7nhdQ8wRZiM2nkGqmpKPp61IDt2FUkJLZkNdyjBdAo1UMdC7XuIpbiFDCw.vNGZ+WbttmSMTlTW0kBbUg0WBjUBZla+WTHUmzeAMvgvwk3fcI04Usv8VyCa6XQNFv68y8JKtQ6ZzejLrWjiBB6HGwZFsvLFwxaVb1l+RJ.l1w7NBJqYErvkdFDh8vN10fv5FjcCPGPSOizOS0dcYao8RMByzuw+BeB5rfrsdPmEB6LhK5gDwob219pif+qoufJ6UcWh8igsCrgDZaaYwOcWtsCMv9EzB9zpxs54zhynFRRpQDh0ss4cfk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IVLJwpXVrICZGalpHueuAMUkTWi.6Fyi7LfMKNgMP0NVdjmSMEshLu+SDxEiR9IXWyZxCsE8NkyNwWjazqoL9UsGY7obqtyeU8lPWq2W+E+4ExNYvcL2K9hgXrFUFhuLqKwBbS8w3mB9kMvvIACoF2OqBmwCuX1AV.GSDtzlMIwCtj1FZag.azd.k6T5XhEA6E6ztOkxHX2J9AdmIYwz+bdopu9BjBt4jAGx8wwyBk8i9mE5h4gBwO+vQS+4HHldwb9p6bu+02WGuxz0wZXiMb4uLnpaY.ia3SA12L+x5VDUQ1NWAstIKZxFR87RCi3S0PLVbVYbiYkwMmUF+5YkwGLqL9vYkwGMdFkUFDTquzOAJWpZY0IVzCu7Q4Km7ePBuUoB
I thought an input_toggle sounded like the right thing but I cant get that to work at all.....
-
@Lindon here you go
HiseSnippet 1932.3oc2YkraabCFdFKSumhlzDjdTGZAbZBLjjc7B5Aq3sD2FYKXo3jdJkdFJKBMC4fYnbhZQu2a8bt0Ggds2xCPNTf1Gf9Hj2f1eNbFogRiVSraRk.DD++4xG+2IYYetEIHf6aXtP0VdDCykPUZwD02sNlxLNbOCyOAUBGHH9YUj1okGNHfXaXZl4gRBlyOsQ3m2t8NXGLyhzgjgwobpE4wTWpnC0xE+VpiyAXaRUpahduVwCs3rc4N7l.dxfxY3gsZfOmbDV1soPFOBGT2v7qP4t+5DxFqVy1Fu5p1qu95as4VqsUdbsbqgOK+5asVg01nvlaTyvbl8soBteEAVPBLLmdGtcqJ04ufoVfSoAzybHxF4Mp.qrh7AbGa4VTR0X25TG6xwBp.CCST4NhsLJw1MQkn1z1z6H99zPFY6LhjBPyozgWFM3kOI7xk.do.IyDPZZEjtNphkO0SzgiDOKhNjAZyZXPOkDJp9ZX9ZztbnCLwJt3FjC7gFsGvxqmK28xB+bmutVSlkfxYY4ri3BxwrkuyB+3ByuvOsP1tYUqVp7jKiO2wg3mJaoog+fF3xrltmQ7uW1KvNMIs6Hr80kon9KSSpxsT65DcjyNjQEG6QX8yP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.p5z0nHCNvrIuLtXx8g5gsgC8GN73BLG4rrgh12cUflOb2YiJlLW6T8IWaw2SluPdt9hxEQOly8fiH3KljTZWZ3RVihfLF9TJC2YUIVOyGyrpqa4diDoph3mVl0HVC1BVdJpD1SfJrOU8lQyeRHCTnipkPfUP8UTbRygRwYrR9zkySU4LDz9eC1YYezZatR6OasK7yEG27fu4tasxc2b8MUsKui.ZG+4higepc2DsGTMOg6mBeXKDRIhQJah7eXuI9RTg05QSNDMkVLRyQ2KWcX5wsJCE3GQWbcUvLHOBtQpolBYj1AyBY7tlYpOUwMCxsoSWEwMKRsEtrSl0W6zHPoIjVPYkBLRUFENfI+vqlC9vquORLDKUG4jUZYZGffSqwNbdCWb3kP8Necv2VwbQzSwWPBePlvqG5Vgsqw8cy9PBjTRdIr4GvSx7Gi5Sx3MxOIywVB.BUgLdAd7.HfVRM.wkVkyHAZT6ZDERcDEzUKhlL8oVQRqWRQwAfnHQ+lqXLwBIIVFyzlLns1LURdCkcZpJNuBA141GGXABFbWFUka5DPdJ0VTOw792IHWHI4Gg8sqHOtXxa+NyfdXp7S3CSMyGbOL0GAuwg1E3OeLFqPkAf2mcAwA7bCw3MPQwKhop65Uhy3w2fbGE8IDgO87yI5AkRaC8.g.a0nCkaV7DhCAGncr4GC0hh8KEFvdhjE4G6GyHU80miTvMqLdQ1OdeapL+u9soFcuOHD3G1ZwaifPwExFpJy9eit7p3IstJVCWrkO+4QWmozoetPJv9lEVR27nRx1YyabQ2EF4BoLdtkk9T0y.KLoCb0IcfqMoC79S5.WeRG3FS5.2b3CTlQOp1UouATYS48UmAvL9FGA2Di+E+TaGi
All thanks go to @aaronventure who opened my mind recently with the branch node... How could I not see... How could I lived before that... Was that even a life?
-
@ustk said in ScriptNode - switching between myultiple modulation signals...:
yep thanks _ sadly(for me) I've used the branch node all over the place.....
-
@Lindon It's winter... A T-shirt might not be enough by this cold...
-
@ustk dont you worry - I have plenty of t-shirts......
-
@Lindon https://docs.hise.dev/scriptnode/list/container/branch.html
That‘s made precisely for this use case.
-
@Christoph-Hart said in ScriptNode - switching between myultiple modulation signals...:
@Lindon https://docs.hise.dev/scriptnode/list/container/branch.html
That‘s made precisely for this use case.
Happy to be of service... :-)