Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Humdrum: section-structured kern file parses to 8 of 69 measures (silent truncation)

Abierto
#1,987 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
1-2 días
Aptitud para principiantes
56/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Tranquilo
Stack tecnológico
python
Área
backend

Línea de trabajo

Start with the Humdrum importer used by converter.parse and reproduce with the mazurka41-2.krn file from the chopin-mazurkas set; compare the parsed measure count and numbering with the source’s 69 barlines and section labels. Investigate how section labels and the expansion list are handled. Done means the importer preserves the full expanded sequence, or at least all sections in source order, rather than silently returning only measures 1–8.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Environment: music21 10.5.0, Python 3.14, macOS.

Summary: the Humdrum importer parses a section-structured kern file to a small fraction of its measures. The kernscores transcription of Chopin's Mazurka Op. 41 No. 2 (mazurka41-2.krn: 69 numbered measures, section labels *>A, *>B, ... with an expansion list) parses to a score whose parts contain 8 measures, numbered 1–8 — the remaining ~61 source measures are silently absent. Content addressed by source measure number (e.g. a text annotation at source measure 64) has no corresponding location in the parse at all.

Expected: either the full expanded sequence of sections, or (if expansion is unsupported) the sections in source order — not a silent 8-measure fragment.

Reproduction:

from music21 import converter, stream
sc = converter.parse("mazurka41-2.krn")   # kernscores chopin-mazurkas
part = sc.parts[0]
print(len(part.getElementsByClass(stream.Measure)))   # 8; the source has 69 "=N" barlines

Source file: the kernscores chopin-mazurkas set (craigsapp/chopin-mazurkas on GitHub), kern/mazurka41-2.krn.

Lenguaje dominante
Python
Estrellas
2.6k
Forks
459
Merge medio
1 d 1 h
PR fusionados (30 d)
42

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de cuthbertLab/music21

Todos los issues de cuthbertLab/music21

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.