MusicXML tuplet show-number and bracket settings are lost after saving and reopening MSCZ

Aperta
#35,684 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
65/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
cpp
Ambito
desktop

Direzione di ricerca

Start by locating the code that saves and reloads tuplet display settings in MSCZ, then use the self-contained MusicXML fixture in the issue to reproduce the round trip. Check how numberType and bracketType are represented for the two tuplets. Done means reopening the MSCZ preserves both explicit brackets and shows a numeral only on the second tuplet.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

needs review
Issue type

Opening/saving issue after MusicXML import

Steps to reproduce
  1. Save the original, one-measure MusicXML below as tuplet-number.musicxml and open it.
  2. The two triplets have brackets; only the second displays a 3, as requested by the XML.
  3. Save as MSCZ, close it, and reopen the saved MSCZ (not the MusicXML).

Expected: Keep both explicit brackets and show only the second numeral.

Actual: On reopen both triplets display a 3 and the forced brackets are gone in this fixture. The six pitches, durations and tuplet ratios do not change. Re-exporting the first import already encodes the expected show-number and bracket values; the native save lacks explicit numberType and bracketType on the tuplets. As a control, explicitly setting native bracketType=1 on both and numberType=2 on the first preserved the requested display after reopening, with identical re-export to the first import.

Tested with MuseScore Studio 4.7.7 (b750c43e316cf6a00e70451870b231b12f400bda) on Windows via CLI. Older versions and latest nightly not tested. No external files required. Related #15565 is about selecting hidden numbers, not saving them; #28124 concerns placement in nested tuplet parts.

Self-contained MusicXML 4.0 fixture
<?xml version="1.0" encoding="UTF-8"?>
<score-partwise version="4.0">
  <part-list><score-part id="P1"><part-name>Piano</part-name></score-part></part-list>
  <part id="P1">
    <measure number="1">
      <attributes>
        <divisions>3</divisions>
        <time><beats>2</beats><beat-type>4</beat-type></time>
        <clef><sign>G</sign><line>2</line></clef>
      </attributes>
      <note>
        <pitch><step>C</step><octave>4</octave></pitch><duration>1</duration><type>eighth</type>
        <time-modification><actual-notes>3</actual-notes><normal-notes>2</normal-notes></time-modification>
        <notations><tuplet type="start" bracket="yes" show-number="none"/></notations>
      </note>
      <note>
        <pitch><step>E</step><octave>4</octave></pitch><duration>1</duration><type>eighth</type>
        <time-modification><actual-notes>3</actual-notes><normal-notes>2</normal-notes></time-modification>
      </note>
      <note>
        <pitch><step>G</step><octave>4</octave></pitch><duration>1</duration><type>eighth</type>
        <time-modification><actual-notes>3</actual-notes><normal-notes>2</normal-notes></time-modification>
        <notations><tuplet type="stop"/></notations>
      </note>
      <note>
        <pitch><step>A</step><octave>4</octave></pitch><duration>1</duration><type>eighth</type>
        <time-modification><actual-notes>3</actual-notes><normal-notes>2</normal-notes></time-modification>
        <notations><tuplet type="start" bracket="yes" show-number="actual"/></notations>
      </note>
      <note>
        <pitch><step>F</step><octave>4</octave></pitch><duration>1</duration><type>eighth</type>
        <time-modification><actual-notes>3</actual-notes><normal-notes>2</normal-notes></time-modification>
      </note>
      <note>
        <pitch><step>D</step><octave>4</octave></pitch><duration>1</duration><type>eighth</type>
        <time-modification><actual-notes>3</actual-notes><normal-notes>2</normal-notes></time-modification>
        <notations><tuplet type="stop"/></notations>
      </note>
    </measure>
  </part>
</score-partwise>
Lingua principale
C++
Stelle
15.5k
Fork
3.4k
Merge medio
2g 18h
PR unite (30g)
114

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di musescore/MuseScore

Tutte le issue di musescore/MuseScore

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.