http://aikelab.net/tarai/ Tarai Function Music May 2, 2013 by aike Introduction Tarai Function Music is an approach of algorithmic composition based on tarai function. It automatically generates a complex and very long music from a simple formula. Example The following is an implementation of tarai function music written in JavaScript. [source code] Tarai([10 ], [5 ], [0 ]) Start/Pause Reset function call count: 0 now processing ... Tarai(, , ) => Tarai function Tarai function is a recursive function devised by Ikuo Takeuchi in 1978. This function processes so many recursion function calls. So it is often used as a programming language benchmarking. [tarai] Mapping arguments to music notes I tried to assign the function's arguments to music notes. For example, the minimum argument value (-1) converts to D, next value (0) converts to E, ... Thus the three arguments are assigned to the triad of D Dorian mode . [notemappin] Next, the triad chord notes are mapped arpeggio sequence pattern, like this. [arpeggiato] In this way, It generates arpeggio notes in every recursion function call. Resources YouTube and Soundcloud Other Implementations of Tarai Function Music * Smalltalk * Scheme * Clojure * SuperCollider * ActionScript * Lisp * Python + Pd