Every time the LFN crosses zero, the S&H is triggered to make a new selection from its internal white noise source. That selection then gets scaled between 0 and 3.75V, then forwarded on to the 8:1 unit, which switches between the three possible inputs (0V to 1.25V = sine wave, above 1.25V to 2.5V = noise, and 2.5V to 3.75V = nothing), the final output of which goes to Y on the scope (in real life, I’d send the output to the modulation target).
What I like about this:
I like to be able to control the frequency of, durations of, and delay times between zero crossings. I can modulate the LFN to change how frequently it crosses zero, or replace it with something else that has different zero-crossing behaviour, to get the switches in modulation source to occur with duration/frequency that I like.
What I am not thrilled about:
Having to do more math to address the 8:1 if, say, I want to change the number of potential modulations or weight them in various ways, etc.
Most importantly, this seems like something I should be able to do in less than 7 modules.
I’m not wedded to this particular way of controlling how/when a new modulation is selected, I just happened to build this one. But I’ve looked around for a simpler way, without success. Is there no simpler way?
I’m interested in creating tools for this kind of purpose if there aren’t already any available that are really convenient. I’m guessing that there is some creative use of existing modules that could work though.
I’ve made ATOMS to handle the “variously weighted switch” part of this problem. You can order inputs/outputs along two disks, and then rotate those disks to get different routings.
The channels on the disks get routed based on proximity and range of each input/output, you can set positions and ranges (right-click) individually.
It has no randomness to it though, so that still has to come from another module.
Wouldn’t say it’s simple or really convenient, more of an exploration on how to represent this kind of switch visually.
Being Friday night, I’ve drunk a little too much wine to really read through and understand your problem.
Going purely from the title though, I can say that when I was looking for a reverse Bernoulli gate, Noobhour Baseliner did the trick.
By that I mean whereas a Bernouli gate has one input and the output it comes out of is determined by probability, baseliner has multiple inputs and the one that comes out of the single output is determined by probability.
(which as it happens is quite similar behaviour to what djandino has posted below)
It isn’t quite in the library yet, but it should be soon: my new Guilden’s Turn module (brand is ZetaCarinae) might also do some of what you want. It takes 4 inputs and one of them is output, according to a Markov process that you have a lot of control over:
Just saw the new version of your modules come in via the plugin manager tonight, can’t wait to get some time (hopefully over the next week?) to play with 'em!