I’ve been wanting to check out some of the bitwise and logical ops that I’ve never used before, and some of the creations here like @adrianf’s and @Starthief’s inspired me to do so. I also wanted to create something more reusable than my first one.
Here’s what came out - a rhythm measure generator. Kick and snare is Peaks, and the cymbal is Rings. Pretty much endless combinations especially if you switch out the logical op like I was doing in the video.
This is the version in the video, which uses TXi.
#M
X TI.PRM 1; Y TI.PRM 2
T + T 1; Z % T 16
IF NZ BGET X Z: TR.P 1
IF NZ BGET Y Z: TR.P 2
A ! ^ BGET X Z BGET Y Z
IF NZ A: TR.P 3
If you don’t have a TXi, you can use this version with the PARAM knob, and then also connect a 10V offset (such as Maths CH 3) to the input jack, and use it as the second knob.
#M
X PRM; Y IN
T + T 1; Z % T 16
IF NZ BGET X Z: TR.P 1
IF NZ BGET Y Z: TR.P 2
A ! & BGET X Z BGET Y Z
IF NZ A: TR.P 3