May 2018
Beginner to intermediate
290 pages
6h 43m
English
If you’re getting the feeling that sequences are pretty central to Clojure programing, well, yes. You can find sequences littered through the length and breath of real-world Clojure code. To see some real-world sequence action, you might have a look at the source code for the wonderful Overtone,[18] which describes itself as a collaborative programmable music system. Overtone spends a lot of its code creating, shaping, tuning, and distorting (hopefully) musical sounds, and makes heavy use of sequences and sequence functions in the process. For example, here is a bit of code that is part of generating a sound envelope, which controls how the loudness of a sound evolves over time:
| | (map #(+ %1 bias) [0 0 level (* level sustain) 0]) ... |
Read now
Unlock full access