Skip to content

Commit

Permalink
testnotes()
Browse files Browse the repository at this point in the history
  • Loading branch information
Datseris committed Nov 13, 2019
1 parent 8792ddf commit a80d1b0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ All notable changes to this project will be documented in this file.

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).

# v1.6.0
* New function `testnotes()` that returns a test set of human-played notes.
# v1.5.2
* Correctly implement `Base.copy(::Notes)` to copy every note, instead of copying the high-level vector (which lead to all internal notes being the same object as the non-copied version).
# v1.5.0
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.5.2"
version = "1.6.0"

[compat]
julia = "1"
Expand Down
10 changes: 8 additions & 2 deletions src/MIDI.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,18 @@ include("variablelength.jl")
include("convert.jl")
include("findevents.jl")

export testmidi
export testmidi, testnotes

"""
testmidi()
Return the path to a test MIDI file.
"""
testmidi() = dir = joinpath(dirname(@__DIR__), "test", "doxy.mid")
testmidi() = joinpath(dirname(@__DIR__), "test", "doxy.mid")

"""
testnotes()
Return a test set of human-played MIDI notes on the piano.
"""
testnotes() = getnotes(readMIDIFile(testmidi()), 4)

end

2 comments on commit a80d1b0

@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/5362

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.6.0 -m "<description of version>" a80d1b09a822ac7cfd67e7aea90c6f0ddefcb251
git push origin v1.6.0

Please sign in to comment.