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

streamStatus accidentals inconsistencies

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

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

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

評価

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

調査の方向性

Start by running the four-line snippet from the report and checking the note's accidental display. The mismatch sits between PartExporter.fixupNotationMeasured() in music21/musicxml/m21ToXml.py, which checks haveAccidentalsBeenMade(), and makeAccidentals() in music21/stream/makeNotation.py, which sets the property directly; streamStatus.accidentals is also involved. Done means a note whose accidental has displayType 'never' is exported with no accidental, and existing accidental tests still pass.

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

説明

music21 version

9.2.0b2

Problem summary
Accidentals are remade on streams that users may have already made accidentals for instead of short-circuiting. Discovered responding to #1667.

Steps to reproduce

n = note.Note()
n.pitch.accidental = pitch.Accidental('flat')
n.pitch.accidental.displayType = 'never'
n.show()

Expected vs. actual behavior
Expected: no accidental
Actual: accidental

More information
PartExporter.fixupNotationMeasured() checks haveAccidentalsBeenMade():
https://github.com/cuthbertLab/music21/blob/a938a8c8c74f21ceec5a99a1998d96c00d5f77e9/music21/musicxml/m21ToXml.py#L2866

But makeAccidentals sets the property instead:
https://github.com/cuthbertLab/music21/blob/a938a8c8c74f21ceec5a99a1998d96c00d5f77e9/music21/stream/makeNotation.py#L1739-L1740

But even PartExporter.fixupNotationMeasured() is probably too late, given that fromGeneralObject() runs first, runs makeNotation, and neither streamStatus.accidentals nor streamStatus.haveAccidentalsBeenMade() is checked.

主要言語
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 を短くまとめたダイジェスト。