Hi! Is anyone know any object with the ability to create Bernoulli or probabilistic gates?
Isn’t Mutable Instruments Branches a dual Bernoulli gate thing? The code for it looks pretty slim, could be ported into an Axo object I suppose
What exactly makes a random probability a Bernoulli one?
Does it really just “take a logic signal (trigger or gate) as an input, and routes it to either of its two outputs according to a random coin toss”? If yes we don’t need to port anything I guess, there are existing objects that can put this together already:
Perhaps phi/prob/%sw1_2f ?
If the above doesn’t work (or you prefer to work with yellow gate signals) you can probably use a %gate d to control a demux 2 which will send the gate to either one of its outputs?
I’ve been working on my own personal Music Thing Modular Turing Machine mock up and it features something like what you’ve asked for as part of the module.
Each time a high gate is detected a random number is chosen, if random value is less than or equal to "probability” param than high (true) is passed through, otherwise output is low (false)
I can create the object as a sub patch but not sure how to create it as an object by itself just yet.