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

**harm spine parser does not handle rests

Abierto
#1,658 0 comentarios 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
3/5
Tiempo estimado
Medio día
Aptitud para principiantes
38/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
python
Área
data

Línea de trabajo

The payload names no source files, so start by finding the Humdrum parser code that handles **harm spines in music21. Reproduce with the three snippets in the report: 1r and r in the harm spine should currently raise, while . works. The reporter suggests treating a rest as a null token, so check how that case is handled. Done means rest tokens parse without error and the output matches the . case.

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

Descripción

music21 version

8.3.0

Problem summary

The humdrum **harm parser does not parse rest tokens in the **harm spine despite them being part of the **harm syntax as detailed here: https://www.humdrum.org/rep/harm/index.html

Steps to reproduce
Importing a kern file with a rest in the **harm spine raises an error.

# This raises an error:

**harm	**kern
1r	1r
*-	*-

# Omitting the duration of the rest in the **harm spine also raises an error:

**harm	**kern
r	1r
*-	*-

# Using a null token period correctly does not raise an error. This one is fine:

**harm	**kern
.	1r
*-	*-


Expected vs. actual behavior

Rest tokens should be allowed in **harm spines since they're part of the syntax. If there's no music21 representation of this it would be fine to treat them the same as a "." null token.
More information

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.