(lambda (w density)
(let ((data (world_data w)))
(doloop (k (world_data_size w))
(pset! data k 0))
(doloop (i (world_height w))
(doloop (j (world_width w))
(cell_set_value w i j
(if (< (random) density) 1 0)))))))
Extempore is a programming language for musical livecoding and algorithmic composition. If you're new to Extempore, YouTube has many videos that show it in action.
This website makes it easier to explore Extempore's functions definitions. There are two main sections:
The source code for the extractor and this website is written in Python and is also available on GitHub.
This project was created by Michele Pasin.