Skip to content

Interleave

Knut Andreas Ruud edited this page Apr 3, 2023 · 9 revisions

Combines notes from two or more clips in an interleaved fashion.

Parameters

Aliases for parameters are listed in italic. Default values are bold.

Name Description
‑chunkchords
‑chunk
Whether to group notes starting at the same position. For example, if you're interleaving two clips containing chords, you probably want the chords to remain together. The same often applies for beats when you have multiple hits triggering at once.
‑solo
‑mode Event|Time Controls whether the interleave algorithm should work with single note events, or pre-cut sections of the midi (Time). E.g. specifying time and setting -ranges to 1/16 will first slice both clips at these intervals before interleaving the resulting slices, even though each slice might contain more than one note event. The event mode on the other hand, will only focus on individual note events, except that it will treat notes starting simultaenously as one event when -chunkchords is specified.
‑ranges <list of Musical fraction: 1> Only applicable when used with -mode time. One or more musical fractions to describe how the clips will be sliced into chunks before interleaving.
‑repeats <list of Number: 1>
-rep
The number of times each note event or chunk of notes will be repeated. If more values are specified, these values will be cycled through. For instance, -repeats 1 2 will repeat all odd occurrences once, and all even occurrences twice.
‑skip This is best described with the following two examples: Without skip, interleave would produce -+-+-+ given the inputs --- and +++. If -skip is specified, interleave would instead produce -+-.

Aliases

  • il
  • ilev (short for interleave -mode event)

Examples

=a1 b1 il -chunkchords

This command interleaves the chords in clips a1 and b1, keeping each chord intact.

=a1 b1 ilev -repeats 1 2

This command interleaves the note events in clips a1 and b1, repeating odd occurrences once and even occurrences twice.

=a1 b1 interleave -ranges 1/16

This command interleaves clips a1 and b1 in time mode, first slicing both clips at 1/16 intervals before interleaving the resulting slices.

=a1 b1 il -skip

This command interleaves clips a1 and b1 using the skip option, producing a pattern where every other note from each clip is skipped.

Clone this wiki locally