Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

readmusicxml() ERROR: MethodError: Cannot convert an object of type Nothing to an object of type MusicXML.Time #60

Open
NeroBlackstone opened this issue Sep 9, 2022 · 0 comments

Comments

@NeroBlackstone
Copy link
Member

using MusicXML
doc = readmusicxml("musicxml/1.musicxml")

then throw an Error:

ERROR: MethodError: Cannot `convert` an object of type Nothing to an object of type MusicXML.Time
Closest candidates are:
  convert(::Type{T}, ::T) where T at Base.jl:61
  MusicXML.Time(::Nothing) at ~/.julia/packages/AcuteML/rLlXX/src/@aml/@aml_create.jl:126
  MusicXML.Time(::Any, ::Any, ::Any) at ~/.julia/packages/MusicXML/H0873/src/types.jl:356
Stacktrace:
  [1] MusicXML.Attributes(time::Nothing, divisions::Nothing, clef::Vector{MusicXML.Clef}, staves::Nothing, key::Nothing, transpose::Nothing, instruments::Nothing, aml::EzXML.Node)
    @ MusicXML ~/.julia/packages/MusicXML/H0873/src/types.jl:396
  [2] MusicXML.Attributes(aml::EzXML.Node)
    @ MusicXML ~/.julia/packages/AcuteML/rLlXX/src/@aml/@aml_create/get_struct_xml_.jl:53
  [3] nodeparse(type::Type{MusicXML.Attributes}, elm::EzXML.Node)
    @ AcuteML ~/.julia/packages/AcuteML/rLlXX/src/xmlutils/nodeparse.jl:42
  [4] findcontent
    @ ~/.julia/packages/AcuteML/rLlXX/src/xmlutils/findcontent.jl:40 [inlined]
  [5] findcontent
    @ ~/.julia/packages/AcuteML/rLlXX/src/xmlutils/findcontent.jl:46 [inlined]
  [6] macro expansion
    @ ~/.julia/packages/AcuteML/rLlXX/src/@aml/@aml_create/get_arg_xml_.jl:35 [inlined]
  [7] MusicXML.Measure(aml::EzXML.Node)
    @ MusicXML ~/.julia/packages/AcuteML/rLlXX/src/@aml/@aml_create/get_struct_xml_.jl:50
  [8] nodeparse(type::Type{MusicXML.Measure}, elms::Vector{EzXML.Node})
    @ AcuteML ~/.julia/packages/AcuteML/rLlXX/src/xmlutils/nodeparse.jl:106
  [9] findcontent
    @ ~/.julia/packages/AcuteML/rLlXX/src/xmlutils/findcontent.jl:62 [inlined]
 [10] macro expansion
    @ ~/.julia/packages/AcuteML/rLlXX/src/@aml/@aml_create/get_arg_xml_.jl:35 [inlined]
 [11] MusicXML.Part(aml::EzXML.Node)
    @ MusicXML ~/.julia/packages/AcuteML/rLlXX/src/@aml/@aml_create/get_struct_xml_.jl:50
 [12] nodeparse(type::Type{MusicXML.Part}, elms::Vector{EzXML.Node})
    @ AcuteML ~/.julia/packages/AcuteML/rLlXX/src/xmlutils/nodeparse.jl:106
 [13] findcontent
    @ ~/.julia/packages/AcuteML/rLlXX/src/xmlutils/findcontent.jl:62 [inlined]
 [14] findcontent
    @ ~/.julia/packages/AcuteML/rLlXX/src/xmlutils/findcontent.jl:8 [inlined]
 [15] macro expansion
    @ ~/.julia/packages/AcuteML/rLlXX/src/@aml/@aml_create/get_arg_xml_.jl:35 [inlined]
 [16] MusicXML.ScorePartwise(aml::EzXML.Document)
    @ MusicXML ~/.julia/packages/AcuteML/rLlXX/src/@aml/@aml_create/get_struct_xml_.jl:50
 [17] extractdata
    @ ~/.julia/packages/MusicXML/H0873/src/io.jl:16 [inlined]
 [18] readmusicxml(filepath::String)
    @ MusicXML ~/.julia/packages/MusicXML/H0873/src/io.jl:31
 [19] top-level scope
    @ ~/julia_project/fingeringModel/hello.jl:3

Here is musicxml file:
1.zip

I wonder if this library is still maintained, since latest commit still in 2000.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant