List Comprehension Grain Generator

This is a granular synthesizer:

@[random() * 8 for i in range(1000)] foo()

This generates 1000 events over the span of 8 beats, using list comprehension.

The function foo() is intentionally left blank. It may produce random single-cycle waveforms, bits of a sample, or glowing TRON-like particles for your live performance visuals. Whatever.

Comments are closed.