(lambda (arr:i64* size:i64 num_procs:i64)
(let ((subs (/ size num_procs)))
(foldl (lambda (a:i64 b) (+ a b)) 0
(pmap (lambda (xs:i64*) (vsum xs subs))
(map (lambda (idx) (pref-ptr arr idx))
(range 0 size subs)))))))
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.