(get-bpm mid-file)
Query the BPM of the supplied mid file.
Query the BPM of the supplied mid file.
(get-notes-ms mid-file track-idx)
Finds all pairs on note on and note off events in the track-idx
indexed
track that corresponds to the same note values (pitch).
Notice that the first track of a MIDI file typically doesn't have any notes.
Finds all pairs on note on and note off events in the `track-idx` indexed track that corresponds to the same note values (pitch). Notice that the first track of a MIDI file typically doesn't have any notes.
(get-notes-ms-grouped mid-file track-idx)
Same as get-notes-ms but will return a map of pitch to notes instead.
Same as get-notes-ms but will return a map of pitch to notes instead.
(note-nearest-ms notes ts)
Return the most recently played note to the given timestamp, in millis.
Return the most recently played note to the given timestamp, in millis.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close