← Back to the App

GeCo-Tool · Mathematical Framework

Length of the Sequences
Generated by GeCo-Tool

Multidimensional Sequences

Let us consider the most general sequence, namely the multidimensional sequence satisfying the rule:

$$\left(\prod_{i=1}^K I_{n_i}\right)^N (X) \;\rightarrow\; X$$

As already discussed in the document on binary sequences, the sequence length $L$ depends only on the jump:

$$S \;=\; \sum_{i=1}^K n_i$$

We are interested in understanding why $L$ depends on $S$ and not on the "internal composition" of the interval sequence $\{I_{n_1}, I_{n_2}, \ldots, I_{n_K}\}$.

After each complete $K$-tuple of transpositions, the note has advanced by $S = \sum n_i$ semitones with respect to the starting note. Therefore, the cycle ends when the note $X$ (for example C4) is reached again — namely when the number $N$ of applied tuples multiplied by $S$ is a multiple of 12.

Mathematically, the closure condition of the cycle is:

Closure Condition $$N \;=\; \dfrac{12}{\gcd(S,\,12)}$$

This is exactly the closure condition of the cycle, independently of how $S$ is distributed among $\{I_{n_1}, I_{n_2}, \ldots, I_{n_K}\}$.

Why the Individual $I_n$ Do Not Matter

At every "intermediate" step (inside the tuple), the note changes, but these steps do not influence the termination condition, which only checks the note after each complete tuple. Let us consider an example in the case of a ternary sequence $(i,\,j,\,k)$ with $S = i + j + k = 6$.

With $S=6$: $\gcd(6,12)=6$, therefore $n = 12/6 = 2$ tuples. The generated notes are $1$ (initial) $+ 3 \times 2 = 7$. We examine three choices of intervals: $(4,{-1},3)$, $(3,2,1)$, and $(6,0,0)$.

tern1
Figure 1. Ternary sequence for $i=4$, $j=-1$ and $k=3$.
tern3
Figure 2. Ternary sequence for $i=3$, $j=2$ and $k=1$.
tern3
Figure 3. Ternary sequence for $i=6$, $j=0$ and $k=0$.

Observe how the tuples, highlighted by the red ellipse, repeat in all three cases with a jump of $S = 6$ semitones (that is, a diminished fifth).

In Summary

The sequence lives on $\mathbb{Z}_{12}$ (the 12 pitch classes). Applying a tuple of intervals whose sum is $S$ is equivalent to making a step of size $S$ in $\mathbb{Z}_{12}$. The cycle is the orbit of 0 under the map $x \mapsto x + S \bmod 12$. The internal structure of the tuple is "invisible" to the closure condition.

If we think of the 12 notes as the numbers $0, 1, 2, \ldots, 11$ arranged on a circle ($\mathbb{Z}_{12}$):

C= 0 C♯= 1 D= 2 D♯= 3 E= 4 F= 5 F♯= 6 G= 7 G♯= 8 A= 9 A♯= 10 B= 11

The map $x \mapsto x + S \bmod 12$ means: "start from $x$, move forward by $S$ steps, and if you exceed 11, restart from 0".

The orbit of 0 is the sequence of visited points obtained by repeatedly applying the map until returning to 0:

$$0 \;\to\; S \;\to\; 2S \;\to\; 3S \;\to\; \cdots \;\to\; nS \;=\; 0 \pmod{12}$$

The number of steps before returning to 0 is exactly:

Orbit Length $$n \;=\; \dfrac{12}{\mathrm{gcd}(S,\,12)}$$

Returning to the Ternary Example with $S=6$

$$0 \;\to\; 6 \;\to\; 12 \equiv 0 \pmod{12}$$

The orbit is $\{0, 6\} = \{\mathrm{C},\, \mathrm{F}{\sharp}\}$.

C F♯ C (= 0 mod 12)

We return to 0 in two steps. The intermediate tuples $(i,j,k)$ do not change this fact: whether we reach F♯ through $(2,2,2)$ or through $(5,1,0)$, the circle only sees the overall jump of 6.


Multidimensional Example

Let us return to the most general multidimensional case. Suppose that $K=11$ is the number of intervals. The length $L$ of a sequence with jump $S$ is:

Sequence Length $$L \;=\; \dfrac{12}{\gcd(S,\,12)} \times K \;+\; 1$$

To give a practical example, let (3,3,-1,-4,-2,1,3,-1,5,-3,2) be a sequence with a jump S = 6. Since gcd(6,12) = 6, we have L = 2 × 11 + 1 = 23. The following figure shows the generated musical sequence.

multidim
Figure 3. Multidimensional sequence with K=11, for intervals (3,3,-1,-4,-2,1,3,-1,5,-3,2).
← Back to the App