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

Feature request: `.getOffsetBySiteInSeconds` in Music21Object

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

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
42/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python
領域
data

調査の方向性

Start from the existing seconds property on Music21Object and from how the object's offset relative to a given stream (site) is looked up, since the request asks for the same idea with a user-supplied site. The payload names no files or tests, so locate those in the codebase first. Done means a method that returns the object's start time in seconds relative to the chosen stream, with a test that checks it against a stream of known tempo and durations. The issue has no assignee, no linked pull request, and no reply since its first comment, so confirm with maintainers before starting.

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

説明

enhancement

Motivation
We already have Music21Object.seconds that returns the duration of the object in seconds. I hope that we can have a function that returns the object's position relative to a stream it belongs to. It is useful in the following scenarios:

  • Developing audio synthesizers that takes Music21 stream as input.
  • Handling a stream with a lot of objects. A .getOffsetBySiteInSeconds will avoid cumulative error in summing the .seconds duration of all objects.

Feature summary
Add a method, .getOffsetBySiteInSeconds, that returns the position relative to a user-given stream it belongs to.

Proposed implementation

Optionally, describe the implementation or the interface, in code or pseudocode.

Like how .seconds is implemented

Intent

  • I plan on implementing this myself.
  • I am willing to pay to have this feature added.
  • I am starting a discussion with the hope that community members will volunteer their time to create this. I understand that individuals work on features of interest to them and that this feature may never be implemented.
主要言語
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 を短くまとめたダイジェスト。