Skip to content

Commit

Permalink
add tracknames function
Browse files Browse the repository at this point in the history
  • Loading branch information
Datseris committed Jun 21, 2019
1 parent bbd11ea commit de46f16
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.:
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
4 changes: 4 additions & 0 deletions src/findevents.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# are contained here

export trackname, addtrackname!, textevent, findtextevents
export tracknames

"""
trackname(track::MIDI.MIDITrack)
Expand All @@ -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)
Expand Down

2 comments on commit de46f16

@Datseris
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register()

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/1619

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if Julia TagBot is installed, or can be done manually through the github interface, or via:

git tag -a v1.4.0 -m "<description of version>" de46f16f1b736e9f5a2bb6c8aef9047cb09dee94
git push origin v1.4.0

Please sign in to comment.