Clojure Signal Processing

2012-11-09 Thread Stephen Olsen
Hey all, I've been thinking about and wanting to do some music transcription projects recently (inferring musical notes from audio) and what the best way to write systems like this is clojure would be. There are java libraries and things like fftw that can handle the *hard* parts like

Re: Partitioning a list when the result of a predicate becomes a certain value.

2012-05-11 Thread Stephen Olsen
(conj current n)]))) (defn partition-lst [lst] (let [reduced (reduce foldfn [[][]] lst) result (first reduced) current (second reduced)] (if (= current []) result (conj result current -- Stephen Olsen Sent with Sparrow (http://www.sparrowmailapp.com/?sig