synthio.Envelope properties cannot be modified after creation
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 領域
- embedded-iot
調査の方向性
The issue does not name implementation files or tests. Start by locating the synthio.Envelope implementation and related tests, then determine how its properties are exposed and whether notes use the envelope while it changes. Done means the intended mutability and behavior during each envelope phase are decided, implemented, and documented.
索引モデルが issue の本文から書いたものです。
説明
CircuitPython version and board name
Adafruit CircuitPython 10.1.4 on 2026-03-09; Raspberry Pi Pico W with rp2040
Code/REPL
Adafruit CircuitPython 10.1.4 on 2026-03-09; Raspberry Pi Pico W with rp2040
>>>
>>>
>>> import synthio
>>> test_env1 = synthio.Envelope(release_time=1.0)
>>> test_env1.release_time
1.0
>>> test_env1.release_time = 2.0
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: can't set attribute
>>> test_env2 = synthio.Envelope(release_time=synthio.Math(synthio.MathOperation.ABS, 1.0))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: release_time must be of type float, not Math
Behavior
The properties are read only and cannot be changed. Using synthio.Math as a variable can't be used as a workaround.
Description
The envelope cannot be modified after it's been created. I mentioned this a while ago in a forum post but never tested it til now. This would include the case when the envelope is being actively used as an amplitude envelope for a synthio.Note. One case where this would be useful is changing the release time (based on a MIDI CC 72 message) while a note is being played and typically before the key is released.
If the properties are mutable then a decision would be needed on whether they affect a note in that phase, e.g. attack_level is changed during the attack phase. If the behaviour is documented I'm fine either way.
Additional information
@todbot and @relic-se may be interested in this or know of a workaround.
- 主要言語
- C
- スター
- 4.6k
- フォーク
- 1.4k
- 平均マージ
- 1日 8時間
- マージ済み PR(30日)
- 153
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
adafruit/circuitpython のほかの issue
-
board breaks api
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
adafruit/circuitpython#11099 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
adafruit/circuitpython#11515 ·
メンテナーはふだん 1 日以内に返信
-
Tags and Branchesオープンbug
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
adafruit/circuitpython#11514 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
-
silabs
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
adafruit/circuitpython#11507 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
circuitpython api enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
adafruit/circuitpython#11505 · コメント 5 件 ·
メンテナーはふだん 1 日以内に返信
adafruit/circuitpython の issue をすべて見る
似ている issue
-
backend
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
BasedHardware/omi#20940 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
kovidgoyal/kitty#10625 ·
メンテナーはふだん 1 日以内に返信
-
Feature Status: Needs Triage
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
メンテナーはふだん 1 日以内に返信
-
docs
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信