(aggregate-inner-events input-events)(aggregate-inner-events [x & more] events)(ensure-parsing {:keys [state] :as parser})If the parser's state is not :parsing, short-circuits the parser so that the current state is passed through until the end.
Otherwise returns nil so that parsing will continue.
If the parser's state is not :parsing, short-circuits the parser so that the current state is passed through until the end. Otherwise returns nil so that parsing will continue.
(read-event! p e)Reads one event t and updates parser p.
Puts events on (:events-ch p) as they are read and (possibly) aggregated.
Reads one event `t` and updates parser `p`. Puts events on (:events-ch p) as they are read and (possibly) aggregated.
(take-chord input-events)(take-chord [x & more] chord-events)Given a sequence of events AFTER an initial note, takes the first N events that can form a chord with the first note.
Given a sequence of events AFTER an initial note, takes the first N events that can form a chord with the first note.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |