Liking cljdoc? Tell your friends :D

artlib.midi.core


bpmclj

(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.
sourceraw docstring

get-infoclj

(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.
sourceraw docstring

get-notesclj

(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.
sourceraw docstring

ms-per-tickclj

(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
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close