Discover the Art of Sound

Rhythm by Code | Monome Teletype, Shapeshifter, Plaits x 3, Beads

Author:

Published:

Updated:

maxresdefault 11

Affiliate Disclaimer

As an affiliate, we may earn a commission from qualifying purchases. We get commissions for purchases made through links on this website from Amazon and other third parties.

Rhythm by Code

The third episode in my Teletype series. This time, I will create a simple rhythm machine with a bit of Grids-like density control on the hat. Easy to learn, lots of fun!

Here’s the code with some explanations.

Intitialization Script I
PARAM.SCALE 0 100
M 2000

In plain English:
Set the parameter knob scale to a range between 0 and 100
Set the metronome to 2 seconds (2000 msec)

Metronome Script M
This script executes every 2 seconds

CV 2 V RRND 1 8
CV 3 V RRND 1 8
CV 4 V RRND 1 8

So the metronome generates three random values between integer values between 1 and 8, kind of like octaves. They’re used for dramatic modulation of timbre and the modulation is not related to any clock.

SCRIPT 1
Script 1 is triggered by any clock, but expects 16th notes. So for every trigger, the following code gets executed:

EVERY 4: TR.PULSE 1
EVERY 8: TR.PULSE 2
DEL RRND 20 35: TR.PULSE 3
PROB PARAM: TR.PULSE 4
PROB PARAM: CV 1 V RRND 1 5
EVERY 13: TR.PULSE 1

For every fourth trigger, fire a pulse to trigger 1 – the kick
For every eighth trigger, fire a pulse to trigger 2 – the snare
So these two lines are clock dividers creating a four on the floor.
Wait a few milliseconds. The number of milliseconds is random between 20 and 35. Then, fire trigger 3 – the ‘human’ hat.
The parameter knob can be read with the PARAM keyword. We’ll use it to set a probability between 0 and 100 for firing off Trigger 4.
We’ll use the same probability to send CV to CV output 1, a voltage of 1, 2, 3, 4 or 5 volt (integer values).
Every 13th trigger we’ll fire another kick, creating polyrhythmic variations in the kick pattern.

About the author

Latest posts

  • How Do You Pronounce Karaoke

    How Do You Pronounce Karaoke

    Are you ready to tackle the ultimate pronunciation challenge? Get ready to conquer the mouthful that is karaoke! This Japanese-born phenomenon has taken the world by storm, but do you really know how to say it correctly? Brace yourself for a linguistic adventure as we dive into the depths of this word’s origins, explore its…

    Read more

  • How Do You Spell Karaoke

    How Do You Spell Karaoke

    Do you find yourself questioning the correct way to spell karaoke? Well, let’s clear up any confusion right now. So, here’s the truth: it’s not uncommon for people to misspell this popular form of entertainment. But fear not! In this article, we’ll provide you with all the necessary information to ensure that you never make…

    Read more

  • How Does A Karaoke Machine Work

    How Does A Karaoke Machine Work

    Imagine stepping onto a stage, surrounded by colorful lights and a sea of eager faces. The music starts to play, and you grab the microphone, ready to unleash your inner superstar. But wait, how does this magical device in front of you actually work? Welcome to the world of karaoke machines! These incredible contraptions are…

    Read more

Rhythm by Code | Monome Teletype, Shapeshifter, Plaits x 3, Beads

Author:

Published:

Updated:

maxresdefault 11

Affiliate Disclaimer

As an affiliate, we may earn a commission from qualifying purchases. We get commissions for purchases made through links on this website from Amazon and other third parties.

Rhythm by Code

The third episode in my Teletype series. This time, I will create a simple rhythm machine with a bit of Grids-like density control on the hat. Easy to learn, lots of fun!

Here’s the code with some explanations.

Intitialization Script I
PARAM.SCALE 0 100
M 2000

In plain English:
Set the parameter knob scale to a range between 0 and 100
Set the metronome to 2 seconds (2000 msec)

Metronome Script M
This script executes every 2 seconds

CV 2 V RRND 1 8
CV 3 V RRND 1 8
CV 4 V RRND 1 8

So the metronome generates three random values between integer values between 1 and 8, kind of like octaves. They’re used for dramatic modulation of timbre and the modulation is not related to any clock.

SCRIPT 1
Script 1 is triggered by any clock, but expects 16th notes. So for every trigger, the following code gets executed:

EVERY 4: TR.PULSE 1
EVERY 8: TR.PULSE 2
DEL RRND 20 35: TR.PULSE 3
PROB PARAM: TR.PULSE 4
PROB PARAM: CV 1 V RRND 1 5
EVERY 13: TR.PULSE 1

For every fourth trigger, fire a pulse to trigger 1 – the kick
For every eighth trigger, fire a pulse to trigger 2 – the snare
So these two lines are clock dividers creating a four on the floor.
Wait a few milliseconds. The number of milliseconds is random between 20 and 35. Then, fire trigger 3 – the ‘human’ hat.
The parameter knob can be read with the PARAM keyword. We’ll use it to set a probability between 0 and 100 for firing off Trigger 4.
We’ll use the same probability to send CV to CV output 1, a voltage of 1, 2, 3, 4 or 5 volt (integer values).
Every 13th trigger we’ll fire another kick, creating polyrhythmic variations in the kick pattern.

About the author