isobite - structure
Similar to struct, but every hap in the structure pattern plays the next
cycle of the main pattern.
With a different number of cycles in the main pattern and haps in the
structure pattern, this creates an isorhythm.
Note: This function works on the assumption that the structure pattern repeats every cycle. If the structure pattern only repeats after multiple cycles, it may skip or repeat certain parts of the melody.
"<0 1 2 3 4 5>".isobite("[x - x*2]*2").n().scale("c:major")
// the same as "0 - [1 2] 3 - [4 5]".n().scale("c:major") "<0 1 2 3 4>".isobite("x - x").n().scale("c:major")
// the same as "<[0 - 1] [2 - 3] [4 - 0] [1 - 2] [3 - 4]>".n().scale("c:major") // Here the structure pattern repeats after 2 cycles,
// so certain haps from the melody are skipped.
"<0 1 2 3>".isobite("x x*2".slow(2)).n().scale("c:major")
// the same as "<[0] [2 3] [2] [2 3]>".n().scale("c:major") // This can be avoided by making the struct pattern 1 cycle,
// and slowing the whole pattern down as follows:
"<0 1 2 3>".isobite("x x*2").slow(2).n().scale("c:major")
// the same as "<[0] [1 2] [3] [0 1] [2] [3 0] [1] [2 3]>".n().scale("c:major") aliases: cycleStruct(), cyclestruct()
| parameter | type |
|---|---|
| structure | |
| structure of the pattern | |