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

**harm spine parser does not handle rests

Aperta
#1,658 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
Mezza giornata
Idoneità per principianti
38/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python
Ambito
data

Direzione di ricerca

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.

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

Descrizione

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

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.