Monome TeleType

In this episode I’ve created another drum machine that creates simple patterns from random CV, triggers and LFO’s.

Here’s the script:

I Initalization script
M 125
X 0
Y 0
The initialization script only sets the metronome to 125 milliseconds, which adds up to 120 BPM. Every clock tick is a 16th note. It initializes two flags to zero.

M Metronome Script
EVERY 4: TR.PULSE 2
$ 3
$ 4
$ 5

The first line creates a kick trigger, a simple 4 on the Floor. Then it executes script 3, 4 and 5. See how easy it is to call scripts from other scripts. This keeps your code clean.

1 – Script 1
X 1

This script executes when a trigger or any rising edge is detected. It simply sets the X flag to 1 so teletype knows a trigger should be fired at the next metronome tick (script 3 is handling it)

2 – Script 2
Y 1

This script executes when a trigger or any rising edge is detected. It simply sets the Y flag to 1 so teletype knows a different trigger should be fired at the next metronome tick (script 4 is handling it).

3 – Script 3 – handles the X flag.
IF GT IN PARAM: X 1
IF EQ X 1: TR.PULSE 1
X 0

If IN (incoming cv) is greater than the knob position (PARAM), we’ll also set X to 1. If X = 1, we’ll fire a 100 msec trigger on trigger output 1
Then, we’ll set X back to 0.

4 – Script 4 – handles the Y flag.
IF EQ Y 1: TR.PULSE 3
Y 0

If Y = 1, we’ll fire a 100 msec trigger on trigger output 3
Then, we’ll set Y back to 0.

5 – Script 5 – generate some random voltage of 1, 2, 3, 4 or 5 volt.
CV 1 V RRND 1 5
CV 2 V RRND 1 5

You May Also Like

Quick and Simple MP3 Downloads From Youtube for Free

Hungry for fast MP3 downloads from YouTube? Uncover efficient tools and methods for swift conversions and high-quality audio.