Skip to content

Commit

Permalink
Add qpm() docs (#171)
Browse files Browse the repository at this point in the history
* add qpm() docs

* update qpm() doc
  • Loading branch information
NeroBlackstone authored May 30, 2024
1 parent 67091e7 commit 3868e9e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/midifile.jl
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ MIDIFile() = MIDIFile(1,960,MIDITrack[])

"""
qpm(midi)
Return the QPM (quarter notes per minute) where the given `MIDIFile` was exported at.
Return the **initial** QPM (quarter notes per minute) where the given `MIDIFile` was exported at.
This value is constant, and will not change even if the tempo change event is triggered.
Returns 120 if not found.
To get a list of QPM over time, use [`tempochanges`](@ref).
"""
function qpm(t::MIDI.MIDIFile)
# Find the one that corresponds to Set Tempo:
Expand Down

0 comments on commit 3868e9e

Please sign in to comment.