(bpm mid-file)
Determine BPM of file by searching for Set Tempo MIDI event (0xFF 0x51 0x03) and parsing the payload if possible.
Determine BPM of file by searching for Set Tempo MIDI event (0xFF 0x51 0x03) and parsing the payload if possible.
(get-info mid-file)
Return the MIDI file format of the specified argument. Argument will be coerced to file.
Return the MIDI file format of the specified argument. Argument will be coerced to file.
(get-notes mid-file track-idx)
Find all NOTEON and NOTEOFF MIDI events in the track-idx
indexed track
that correspond to the same note value (pitch).
There are special cases where NOTEOFF is actually
encoded as NOTEON with 0 velocity, but get-notes
takes care of this.
Notice that the first track of a MIDI file typically doesn't have any notes.
Find all NOTEON and NOTEOFF MIDI events in the `track-idx` indexed track that correspond to the same note value (pitch). There are special cases where NOTEOFF is actually encoded as NOTEON with 0 velocity, but `get-notes` takes care of this. Notice that the first track of a MIDI file typically doesn't have any notes.
(ms-per-tick mid-file)
Returns the number of milliseconds per tick. This is affected by BPM
Returns the number of milliseconds per tick. This is affected by BPM
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close