Liking cljdoc? Tell your friends :D

casa.squid.midi

MIDI message parsing and construction logic.

Interpreting and constructing of midi message as byte arrays (signed) or long arrays (unsigned).

(def msg (byte-array 3 [130 64 100])) ;; Middle C on channel 2 with velocity 100

(channel msg)    ;; => 2
(event-type msg) ;; => :note-on
(note msg)       ;; => 64
(velocity msg)   ;; => 100

(event msg) ;; => [2 :note-on 64 100]
MIDI message parsing and construction logic.

Interpreting and constructing of midi message as byte arrays (signed) or long
arrays (unsigned).

``` clojure
(def msg (byte-array 3 [130 64 100])) ;; Middle C on channel 2 with velocity 100

(channel msg)    ;; => 2
(event-type msg) ;; => :note-on
(note msg)       ;; => 64
(velocity msg)   ;; => 100

(event msg) ;; => [2 :note-on 64 100]
```
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close