XML import of dotted chords

Discussions about our next-generation scoring application, Dorico.
Post Reply
BassoContinuo
New Member
Posts: 20
Joined: Fri May 20, 2016 1:14 pm
Location: Germany
Contact:

XML import of dotted chords

Post by BassoContinuo » Thu Jun 06, 2019 9:43 am

Hi, I noticed a strange behaviour of Dorico when importing chords of dotted notes from Capella 7 (German notation software). The result is not easy to repair in Dorico because the measure structure will be broken. This is a minimal example:
Dotted.png
(9.18 KiB) Not downloaded yet
And here is the result:
Dotted-dorico.png
(30.88 KiB) Not downloaded yet
The measure signpost says "4/4,3.5". The result does not depend on XML import settings.

Current workaround is to import into Sibelius or MuseScore (both results are fine), export XML and import to Dorico. But depending on the score, this may result in other conversion problems.

Example XML is attached.
DOTTED.zip
(1.24 KiB) Downloaded 12 times
Win10 x64 (German) · i7 · 16GB · Dorico 3.0 · NotePerformer 3.2

User avatar
Daniel at Steinberg
Moderator
Posts: 12888
Joined: Mon Nov 12, 2012 10:35 am
Contact:

Re: XML import of dotted chords

Post by Daniel at Steinberg » Thu Jun 06, 2019 9:58 am

Thanks for reporting this. The problem is that Capella is exporting this in a non-standard way: the first note in the chord correctly supplies the

Code: Select all

<dot />
element, but the second note in the dyad is specified without the

Code: Select all

<dot />
element but with the duration specified as if it were dotted. I wonder if more recent versions of Capella handle this situation better? In the meantime we'll see if we can handle this more elegantly.

BassoContinuo
New Member
Posts: 20
Joined: Fri May 20, 2016 1:14 pm
Location: Germany
Contact:

Re: XML import of dotted chords

Post by BassoContinuo » Thu Jun 06, 2019 11:07 am

Hi Daniel, thanks for looking into the issue. I don't have access to the current Capella version (8), so I can't check it now.
Win10 x64 (German) · i7 · 16GB · Dorico 3.0 · NotePerformer 3.2

BassoContinuo
New Member
Posts: 20
Joined: Fri May 20, 2016 1:14 pm
Location: Germany
Contact:

Re: XML import of dotted chords

Post by BassoContinuo » Fri Jun 07, 2019 8:35 am

I succeeded in modifying the python script that Capella 7 uses for xml export. The problem was that the number of dots has been counted down while writing the <dot/> attribute, so no dots were left over for the next note of the cord. Now the number of dots is left unchanged until the chord has been exported completely and a temporary variable is used for counting down.
Win10 x64 (German) · i7 · 16GB · Dorico 3.0 · NotePerformer 3.2

fkretlow
Member
Posts: 725
Joined: Tue Nov 01, 2016 10:10 am
Location: Detmold, Germany
Contact:

Re: XML import of dotted chords

Post by fkretlow » Fri Jun 07, 2019 9:27 am

Nice work!

Code: Select all

if other_software == [py_script1, py_script2, ... py_script12856]:
    fix_bugs_yourself()
else:
    switch_to_dorico()
Florian

Post Reply

Return to “Dorico”

Who is online

Users browsing this forum: jecblack, mducharme, Piano Vink, pianoleo and 8 guests