I'm patching a granular delay abstraction that I want to work as a sort of module in a modular system. Here's a simple example:
Now, here's the behaviour I'd like to achieve: when nothing is connected to the right inlet, the grain_size_jitter slider works as a control for how much randomness is applied to the "size" of each grain every time a new grain is created. But when there is a signal connected to the right inlet, then the same slider would act as an attenuator for that incoming signal, and this attenuated signal goes on to alter the "size" parameter (rather than it being randomly changed). Does anybody have any suggestion on how I might go about it?
Of course I could have two sliders (one for the random jitter and one for the attenuator), but I'd still have to render invalid the jitter one whenever there is a signal connected, because if I'm sending a signal in I don't want it and the randomness to be both active. Besides, it seems neater to have only one slider.
Thanks a lot in advance.