diff --git a/CHANGELOG.md b/CHANGELOG.md index eedfe28..4adb179 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). # master +# v1.4.0 +* Added convenience function `tracknames(midi)` # v1.3.0 Improved the printing of `TrackEvent`s. They now state the amount of elements in them, as well as listing how many or of each type. E.g.: diff --git a/Project.toml b/Project.toml index 73d7f97..bd717b1 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "MIDI" uuid = "f57c4921-e30c-5f49-b073-3f2f2ada663e" repo = "https://github.com/JuliaMusic/MIDI.jl.git" -version = "1.3.0" +version = "1.4.0" [deps] Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" diff --git a/src/findevents.jl b/src/findevents.jl index d3b6f3b..f79b6a3 100644 --- a/src/findevents.jl +++ b/src/findevents.jl @@ -2,6 +2,7 @@ # are contained here export trackname, addtrackname!, textevent, findtextevents +export tracknames """ trackname(track::MIDI.MIDITrack) @@ -28,6 +29,9 @@ function trackname(track::MIDI.MIDITrack) end end +"`tracknames(m::MIDIFile) = trackname.(m.tracks)`" +tracknames(m::MIDIFile) = trackname.(m.tracks) + """ addtrackname!(track::MIDI.MIDITrack, name::String)