**harm spine parser does not handle rests
还没有人认领这个 Issue。
评估
调研方向
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
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
cuthbertLab/music21 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
cuthbertLab/music21#2190 ·
-
难度 2/5 1-3 小时 新手友好度 62/100
cuthbertLab/music21#2189 ·
-
enhancement
难度 2/5 1-3 小时 新手友好度 68/100
cuthbertLab/music21#2088 ·
-
MusicXML import drops piano-family MIDI programs when the instrument name isn't recognized可能重新可做 @Krishna221308 于 13 天前认领,目前没有进行中的 PR。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
cuthbertLab/music21#2084 · 6 条评论 ·
-
Slur bezier-x/y from start element gets overwritten by stop element's values可能重新可做 @bingliscodes 于 32 天前认领,目前没有进行中的 PR。 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
cuthbertLab/music21#2019 · 3 条评论 ·
查看 cuthbertLab/music21 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
hkust-nlp/Toolathlon#101 ·
-
enhancement good first issue
难度 2/5 1-3 小时 新手友好度 78/100
SkyTruth/cerulean-cloud#219 ·
-
area:security priority:low size:small
难度 2/5 1-3 小时 新手友好度 84/100
RonaldHensbergen/composable-data-stack#1217 ·
维护者通常 1 天内回复
-
good first issue help wanted
难度 2/5 1-3 小时 新手友好度 88/100
blixvip/BlendClone#27 ·
-
难度 2/5 1-3 小时 新手友好度 74/100