Fortunately we can use some of the built in objects in OpenMusic and simple algorithmic composition techniques to generate rhythm trees and musically interesting rhythms for us.
Rhythm Trees in OpenMusic
In today's algorithmic composition tutorial we'll look at some further techniques you can use to create Rhythm Trees, but first a quick recap:
The simplest way to create a rhythm tree is to enter rhythmic values into a list directly into the tree input of a voice class.
Rests can be entered by using negative numbers
We can create complex rhythms simply by using irregular proportions:
Rests can be included anywhere in the group by putting a minus symbol in front of the rhythm value.
To create ties between notes use floating point numbers, for example:
Our last algorithmic composition tutorial looked at using the maketree function to create rhythm trees, today's tutorial introduces another two useful functions maketreegroups and pulsemaker.
The maketreegroups function has three inlets where you can specify:
- a number of rhythmic sequences
- the order that these sequences should follow
- a list of time signatures
Using the maketreegroups function is a much easier way of sequencing rhythms than typing the rhythm tree in by hand. It also allows us to include algorithmic composition techniques, in this example we're using the nth-random function to choose one of the possible sequences at random and the repeat-n function to repeat this 8 times.
Using Pulsemaker Function to create Rhythm Trees
The pulsemaker function is also used to create OpenMusic rhythm trees, it has three inlets:
- List of time signature numerators (the number of beats in the bar)
- List of time signature denominators (the type of beats in the bar)
- A list of pulses - one for each bar
In this next example, we create one 4/4 bar and one 4/8 bar. The first bar has two pulses and the second bar one. Notice the duration of the pulses is automatically adjusted to fit the time signature.
We can also include rests in our list of pulses. As before, these are specified using negative numbers:
Using pulsemaker maketreegroups and mktree functions together with some other rhythm tree functions that we'll explore in future tutorials, makes composing algorithmically with Rhythm Trees in OpenMusic much easier.
Subscribe to the RSS feed and check back soon for more Algorithmic Composition tutorials using OpenMusic, Max, PureData, CommonMusic and other algorithmic composition software.