Skip to content

Commit

Permalink
add copy(notes)
Browse files Browse the repository at this point in the history
  • Loading branch information
Datseris committed Aug 12, 2018
1 parent d568473 commit c59c6f4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/note.jl
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ function Base.append!(n1::Notes{N}, n2::Notes{N}) where {N}
return n1
end

Base.copy(notes::Notes) = Notes(copy(notes.notes), notes.tpq)
# Pretty printing
const PITCH_TO_NAME = Dict(
0=>"C", 1=>"C♯", 2=>"D", 3=>"D♯", 4=>"E", 5=>"F", 6=>"F♯", 7=>"G", 8=>"G♯", 9=>"A",
Expand Down

0 comments on commit c59c6f4

Please sign in to comment.