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

Ties and Triplets do not work together in TinyNotation

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

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

@mscuthbert がすでに取り組んでいます。

2024年9月18日 から。

評価

この issue はまだ評価されていません。

説明

music21 version

9.2b

Problem summary

In tinyNotation, a triplet that is tied to a note outside the triplet does not parse properly.

Steps to reproduce

c = converter.parse('tinynotation: 2/4 trip{C8 D8 E8~} E4')
c.show('text', addEndTimes=True)
for n in c[note.Note]: print(n, n.tie)

Expected vs. actual behavior

Expected

{0.0 - 1.6667} <music21.stream.Measure 1 offset=0.0>
    {0.0 - 0.0} <music21.clef.BassClef>
    {0.0 - 0.0} <music21.meter.TimeSignature 2/4>
    {0.0 - 0.3333} <music21.note.Note C>
    {0.3333 - 0.6667} <music21.note.Note D>
    {0.6667 - 1.0} <music21.note.Note E>
    {1.0 - 2.0} <music21.note.Note E>
    {2.0 - 2.0} <music21.bar.Barline type=final>

<music21.note.Note C> None
<music21.note.Note D> None
<music21.note.Note E> <music21.tie.Tie start>
<music21.note.Note E> <music21.tie.Tie stop>

Actual

{0.0 - 1.6667} <music21.stream.Measure 1 offset=0.0>
    {0.0 - 0.0} <music21.clef.BassClef>
    {0.0 - 0.0} <music21.meter.TimeSignature 2/4>
    {0.0 - 0.3333} <music21.note.Note C>
    {0.3333 - 0.6667} <music21.note.Note D>
    {0.6667 - 1.0} <music21.note.Note E>
    {1.0 - 1.6667} <music21.note.Note E>
    {1.6667 - 1.6667} <music21.bar.Barline type=final>

<music21.note.Note C> None
<music21.note.Note D> None
<music21.note.Note E> <music21.tie.Tie start>
<music21.note.Note E> None

More information
Appears to be a problem with the intersection of autoExpires and the ending triplet state.

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