You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This script is based on Mutable Instruments Branches. Because EuroPi only haa a pair of digital/analogue
4
+
inputs, the dual Bernoulli gates share the same clock (from the digital input), and only one Bernoulli
5
+
gate has CV input.
4
6
5
-
date: 03/13/22
7
+
A Bernoulli gate takes a logic signal (trigger or gate) as an input, and routes it to either of its
8
+
two outputs according to a random coin toss.
6
9
7
-
labels: Random
10
+
## Inputs & Outputs
8
11
9
-
### General
10
-
This app is based on Mutable Instruments Branches. Because EuroPi only have a pair of digital/analogue inputs, the dual Bernoulli gates share the same clock (from the digital input), and only one Bernoulli gate have CV input.
12
+
Inputs:
13
+
-`din`: trigger/clock
14
+
-`ain`: probability control of gate 1 (summed with Knob 1)
15
+
-`k1`: probability control of gate 1
16
+
-`k2`: probability control of gate 2
17
+
-`b1`: mode switch of gate 1
18
+
-`b2`: mode switch of gate 2
11
19
12
-
A Bernoulli gate takes a logic signal (trigger or gate) as an input, and routes it to either of its two outputs according to a random coin toss.
20
+
Outputs:
21
+
-`cv1`: output A of gate 1
22
+
-`cv2`: output B of gate 1
23
+
-`cv3`: copy of input trigger/clock
24
+
-`cv4`: output A of gate 2
25
+
-`cv5`: output B of gate 2
26
+
-`cv6`: logical AND of both output A (`cv1` and `cv4`)
13
27
14
-
Knob 1 adjusts the probability of the Bernoulli gate 1, and Knob 2 adjusts the probability of the Bernoulli gate 2.
28
+
Turning a knob anticlockwise increases the probability that a signal will be routed to the
29
+
corresponding gate's A-output, while turning it clockwise increases the probablility of the signal
30
+
being routed to the gate's B-output. At 12-o'clock the probability of either is 50/50. Fully
31
+
anticlockwise the probability of either is 100/0 and fully clockwise is 0/100.
15
32
16
-
Button 1 switches the mode of gate 1 between trigger mode, toggle mode, and gate mode (latch mode), and Button 2 switches the mode of gate 2 between trigger mode, toggle mode, and gate mode (latch mode).
33
+
Gate modes can be switched between
34
+
- trigger: `Tr`
35
+
- toggle: `Tg`
36
+
- gate (latch): `G`
37
+
by pressing the buttons. These modes are described in more detail below.
17
38
18
-
###Tigger mode (Tr)
39
+
## Tigger mode (Tr)
19
40
20
-
When the **trigger mode** is enabled, an output A/B changes to +5V for 10ms every time they are activated by the corresponding Bernoulli gate.
41
+
When the **trigger mode** is enabled, an output A/B changes to +5V for 10ms every time they are
42
+
activated by the corresponding Bernoulli gate.
21
43
22
-
### Gate mode/Latch mode (G)
23
-
24
-
When the **gate mode** is enabled, an output A/B stays at +5V until the other output gets activated.
25
-
26
-
### Toggle mode (Tg)
27
-
28
-
In **toggle mode**, the module associates the “heads” and “tails” outcomes to a different pair of decisions: “continue sending the trigger to the same output as before” and “send the trigger to the opposite output”. As a result, when the probability knob 1 is set to its maximum value, the trigger will alternate between outputs A and B.
44
+
## Toggle mode (Tg)
29
45
46
+
In **toggle mode**, the module associates the “heads” and “tails” outcomes to a different pair of
47
+
decisions: “continue sending the trigger to the same output as before” and “send the trigger to the
48
+
opposite output”. As a result, when the probability knob 1 is set to its maximum value, the trigger
49
+
will alternate between outputs A and B.
30
50
51
+
## Gate mode/Latch mode (G)
31
52
32
-
33
-
34
-
digital in: trigger/clock
35
-
analogue in: probability control of gate 1 (summed with Knob 1)
36
-
knob 1: probability control of gate 1
37
-
knob 2: probability control of gate 2
38
-
button 1: mode switch of gate 1
39
-
button 2: mode switch of gate 2
40
-
cv1/cv2: output A/B of gate 1
41
-
cv4/cv5: output A/B of gate 2
42
-
cv3: copy of trigger/clock
43
-
cv6: logic AND of the two output A
53
+
When the **gate mode** is enabled, an output A/B stays at +5V until the other output gets activated.
0 commit comments