Re:Show HN: Midibin – Turn Clojure code into MIDI music
by gw on Monday July 09, 2018 @05:51AM
(#17489083)
You actually have full access to ClojureScript functions, including all data transformation functions. I just didn't make use of them in any of the posted midis. Also i have no idea what global state you are talking about.
Re:Show HN: Midibin – Turn Clojure code into MIDI music
by gw on Monday July 09, 2018 @09:14AM
(#17489926)
Here is an example that uses functions: https://midibin.com/midi/11
I’m not sure I would prefer this over a different (probably visual) tool that facilitates, e.g., ensuring that a given set of notes fits into a measure, or checking which notes are played simultaneously. It also frustratingly does not take advantage of any of Clojure’s functional affordances, such as the ability to transform data programmatically, and does introduce global state, harkening back to C’s misplaced notion of “macros”. Not much here seems Clojure-specific other than the sometimes confusing dynamic behavior, such as implicit list interpolation, and JS interop. All that said, I hope this becomes more than just a Lisp-based clone of an existing format with mature tooling: http://lilypond.org/text-input.html