Skip to content

Binary Counter

Binary Counter is a simple gate sequencer that uses binary numbers to turn gates on & off.

Starting from zero, every time a gate is received on din, the value of the counter is incremented by k, and CV1-6 are set on/off according to the binary representation of the counter.

I/OUsage
dinInput gate signal
ainCV input to control k
b1Change between discrete or continuous modes
b2Reset n to zero
k1Control for k
k2Attenuator for ain
cv1Least significant bit output
cv22s-bit output
cv34s-bit output
cv48s-bit output
cv516s-bit output
cv6Most significant bit output

In discrete mode (default) all outputs go low when din goes low.

In continuous mode the outputs stay on across consecutive values.

k = 1
din
__ __ __ __ __ __ __ __ __
__| |__| |__| |__| |__| |__| |__| |__| |__| |__
. . . . . . . . .
cv2 (discrete). . . . . . .
. .__ .__ .__ .__ .__ .__ . .
________| |__| |__| |__| |__| |__| |______________
. . . . . . . . .
cv2 (continuous) . . . . . .
. .___________________________________. .
________| . . . . . |___________
n . . . . . . . . .
0 1 2 3 4 5 6 7 8 9

This program has the following configuration options:

  • USE_GRAY_ENCODING: if true, instead of traditional binary encoding, the pattern is encoded using gray encoding. This means that consecutive gate patterns will always differ by exactly 1 bit.
Decimal valueTraditional binaryGray encoding
0000000000000
1000001000001
2000010000011
3000011000010
4000100000110
5000101000111
6000110000101
7000111000100

To enable Gray encoding, create/edit /config/BinaryCounter.json to contain the following:

{
"USE_GRAY_ENCODING": true
}