Skip to content

Commit 6bfdc83

Browse files
committed
NoteX update
1 parent bba7171 commit 6bfdc83

File tree

1 file changed

+15
-17
lines changed

1 file changed

+15
-17
lines changed

src/MusicXML.jl

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -463,16 +463,14 @@ end
463463
464464
# Arguments
465465
```julia
466-
- pitch::Pitch
467-
- rest::Rest
468-
- unpitched::Unpitched
469-
- duration::UInt
470-
- TODO voice
471-
- type::String
472-
- accidental::String
473-
- TODO tie::Union{Nothing,Tie} # start, stop, nothing TODO
474-
- TODO lyric
475-
- aml::Node
466+
- pitch::UN{Pitch} = nothing, "~"
467+
- rest::UN{Rest} = nothing, "~"
468+
- unpitched::UN{Unpitched} = nothing, "~"
469+
- duration::UInt, "~"
470+
- # voice
471+
- type::UN{String} = nothing, "~"
472+
- accidental::UN{String} = nothing, "~"
473+
- tie::UN{String} = nothing, "~" # start, stop, nothing TODO
476474
```
477475
478476
Notes are the most common type of MusicXML data. The MusicXML format keeps the MuseData distinction between elements used for sound information and elements used for notation information (e.g., tie is used for sound, tied for notation). Thus grace notes do not have a duration element. Cue notes have a duration element, as do forward elements, but no tie elements. Having these two types of information available can make interchange considerably easier, as some programs handle one type of information much more readily than the other.
@@ -490,14 +488,14 @@ tie:
490488
[More info](https://usermanuals.musicxml.com/MusicXML/Content/CT-MusicXML-note.htm)
491489
"""
492490
@aml mutable struct NoteX "note"
493-
pitch::UN{Pitch} = nothing, "pitch"
494-
rest::UN{Rest} = nothing, "rest"
495-
unpitched::UN{Unpitched} = nothing, "unpitched"
496-
duration::UInt, "duration"
491+
pitch::UN{Pitch} = nothing, "~"
492+
rest::UN{Rest} = nothing, "~"
493+
unpitched::UN{Unpitched} = nothing, "~"
494+
duration::UInt, "~"
497495
# voice
498-
type::UN{String} = nothing, "type"
499-
accidental::UN{String} = nothing, "accidental"
500-
tie::UN{String} = nothing, "tie" # start, stop, nothing TODO
496+
type::UN{String} = nothing, "~"
497+
accidental::UN{String} = nothing, "~"
498+
tie::UN{String} = nothing, "~" # start, stop, nothing TODO
501499
end
502500
################################################################
503501
"""

0 commit comments

Comments
 (0)