Skip to main content

compile_cycle

Function compile_cycle 

Source
pub fn compile_cycle(
    block: &PatternBlock,
    origin: i64,
    out: &mut Vec<PatternEvent>,
)
Expand description

Compile one time through a pattern, as note events from tick zero.

The bounce. It calls generate over the whole cycle in one window rather than reimplementing it, so swing, gates, ties and accents are not “the same as” live playback — they are live playback, run with a different sink. Notes still sounding at the end of the cycle are turned off at the cycle’s last tick, which is where the pattern would have ended them had it stopped there.