From c59c6f49ee8d567f2efbcfc1b53279cf32416d3e Mon Sep 17 00:00:00 2001 From: George Datseris Date: Sun, 12 Aug 2018 16:29:09 +0100 Subject: [PATCH] add copy(notes) --- src/note.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/note.jl b/src/note.jl index b6101b8..6d88421 100644 --- a/src/note.jl +++ b/src/note.jl @@ -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",