Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Nonexistent method recommended in docs

未关闭
#1,645 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
45/100
Issue 类型
文档
描述清晰度
基本清楚
活跃度
停滞
技术栈
python
领域
documentation

调研方向

The bad reference is in music21/humdrum/spineParser.py near line 91, where the docstring points to humdrum.parseFile. Read that module and the other entry points in music21/humdrum to find the function that actually parses a kern file. Done when the docstring names a function that exists and a short example takes a kern file to a parsed stream, ideally checked by a doctest or a test in the humdrum tests.

由索引模型根据 Issue 内容生成。

描述

music21 version

9.2.0b1

Problem summary

The documentation recommends a method that does not exist.

Steps to reproduce
humdrum.parseFile does not exist but it is recommended in the docs here:
https://github.com/cuthbertLab/music21/blob/80ed662651de43cc33a7e11fb499770c952aaabe/music21/humdrum/spineParser.py#L91

Paste minimal code example here. Most issues can be reproduced with just a few elements.
Attach external files only after attempting to reproduce using a simple stream.

myStream1 = converter.parse('tinynotation: 4/4 c4 e4 g2')
myStream2 = stream.Stream()
myStream2.insert(note.Rest(0.5))

Expected vs. actual behavior
It would be helpful if there were at least one example of how to parse a humdrum file going from a file all the way to the more specific methods. By this I mean for the music21.humdrum approach to parsing kern files, not the more general converter.parse which already has these sorts of examples.

More information

I am happy to submit a PR for this once I figure out how to import kern files using music21.humdrum.

主要语言
Python
星标
2.6k
派生
459
平均合并
1 天 7 小时
30 天内合并 PR
40

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

cuthbertLab/music21 的其他 Issue

查看 cuthbertLab/music21 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。