denemo-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Denemo-devel] Import filter for CapXML


From: Andreas Schneider
Subject: Re: [Denemo-devel] Import filter for CapXML
Date: Mon, 13 Apr 2015 22:33:46 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.6.0

Am 13.04.2015 um 10:12 schrieb Richard Shann:
> The main problem with basing your import on Denemo's XML import (ie the
> file src/core/importxml.c rather than src/export/importmusicxml.c) is
> the obscurities that you will see in src/core/importxml.c  starting at
> the main function importXML() and the associated parseMovement() just
> before - the creation of staffs, insertion of notes etc is all
> accompanied by calls to functions to set up things for the display
> appearance which are poorly understood.
> 
> What might be good is to parse CapXML and write Denemo's XML saving that
> to a temporary file and then load it. This would mean that all the
> obscure calls to staff_beams_and_stems_dirs () and a half-a-dozen others
> continue to be done by src/core/importxml.c and not repeated in your new
> importer. There is some obsolete fields in src/core/importxml.c which
> are no longer present in modern .denemo files, so these should be
> skipped - mostly I hope they are marked as "backward compatibility".

So do you think it would be better/easier to use the Scheme approach?

Andreas



reply via email to

[Prev in Thread] Current Thread [Next in Thread]