(lambda (buf:float* len:i64)
(let ((h (vsort buf len))
(idx (dtoi64 (ceil (/ (i64tod len) 2.0)))))
(if (evenp len)
(/ (+ (pref h idx) (pref h (- idx 1))) 2.0)
(pref h idx)))))
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.