EX / MusicAPI / Rhythm

Right-click to copy examples to your workspace


The miscellaneous Rhythm functions can be used with TimeKeeper to generate rhythmic patterns.

Examples

euclid.js

This example shows the use of TimeKeeper & Rhythm.Euclid to define a tempo and time signature, then produce beats.

let pattern = Rhythm.Euclid(steps, beats);
random.js

This example shows the use of TimeKeeper & Rhythm.Random to define a tempo and time signature, then produce some beats.

let pattern = Rhythm.Random(steps);
arps.js

This example shows the use of TimeKeeper & Rhythm.Arp to define a tempo and time signature, then produce some beats.

let pattern = Rhythm.Arp(0);
misc.js

This example prints the results of various Rhythm function calls.

home .. topics .. interface .. reference .. examples .. tipjar