Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

**harm spine parser does not handle rests

オープン
#1,658 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
半日
初心者へのやさしさ
38/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python
領域
data

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
Python
スター
2.6k
フォーク
459
平均マージ
1日 7時間
マージ済み PR(30日)
40

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

cuthbertLab/music21 のほかの issue

cuthbertLab/music21 の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。