Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

In ABC notation, inline notation of key and time signature changes in the middle of a song using [] does not convert correctly to MusicXML.

Aperta
#1,672 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
tooling

Direzione di ricerca

Start by reproducing the report with converter.parse(abc_string, format='abc') followed by score.write('musicxml', ...), using the ABC source from the issue. The issue says that splitting the inline [K:] and [M:] changes onto their own lines produces correct output, so compare the two written MusicXML files to see where the key and meter changes are lost. Done when the single-line version produces the same key and time signature changes as the split version.

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

Descrizione

enhancement-request

music21 version

9.1.0

Problem summary

Converting a score written in ABC notation to MusicXML may result in incorrect MusicXML output.

Steps to reproduce

ABC notation source

X:1
L:1/8
M:6/8
K:C#
c B A G |[K:Cb][M:3/8] F/ E/ D/ |] 

Music21 code fragment

score = converter.parse(abc_string, format='abc')       
score.write('musicxml', output_file)   

Expected vs. actual behavior

Expected
スクリーンショット 2023-12-13 15 49 36

Actual
スクリーンショット 2023-12-13 15 55 26

More information

X:1
L:1/8
M:6/8
K:C#
c B A G |\
K:Cb
M:3/8
F/ E/ D/ |]

is OK.

Lingua principale
Python
Stelle
2.6k
Fork
459
Merge medio
1g 7h
PR unite (30g)
40

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

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 cuthbertLab/music21

Tutte le issue di cuthbertLab/music21

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.