- untagged
timeline - timeline
Allows you to switch a pattern between different 'timelines'. This is particularly useful when live coding, for example when you want to cue a pattern up to play from its start.
Timelines are specified by number, so that if you had a pattern like
n("<0 1 2 3>").s("num").timeline(1) playing, then changed the '1'
to '2', it would always align '0' to the nearest cycle. You will likely want to trigger
an evaluation a little bit before the cycle starts, to avoid missing events.
After the first use, a timeline will continue with the same 'offset'. That is, if you change a pattern without changing its timeline number, it will stay on that timeline without resetting.
Rather than incrementing a timeline to reset it, it's easier to negate it, e.g. by switching between -2
and 2. This is because when you negate a timeline it will always reset.
You can also pattern the timeline if you want, to create strange resetting patterns.
n("<0 1 2 3>(3,8)")
.sound("num")
// resets the timeline every two cycles, by negating the timeline.
// in a lot of cases this will be edited by a human live coder
// rather than patterned!
.timeline("<2 -2>".slow(2)) | parameter | type |
|---|---|
| timeline |
|
| The timeline that the pattern should play on. | |