Skip to content

Add the waveform factory and the waveforms - #2

Merged
seb5g merged 10 commits into
5.3.xfrom
feat/waveform-factory
Nov 23, 2026
Merged

seb5g merged 10 commits into
5.3.xfrom
feat/waveform-factory

Conversation

@seb5g

@seb5g seb5g commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

The waveform factory (WaveformFactory, a registry by name with @WaveformFactory.register) and the standard waveforms, one module per form in the waveforms folder, next to waveform_factory.py like the sequencer elements and their element_factory (dc, sine, square, triangle, sawtooth, ramp, pulse, piecewise, array). waveforms/__init__.py imports all the submodules, so adding a form is adding a module. A waveform is a dataclass whose fields are its parameters; realize(sample_rate) gives the samples and params() the settings. Moved here from the utils PR, which keeps only the plugin contract (waveform_output). 30 tests pass.

https://claude.ai/code/session_01RKuN81tBxMB6iaf8J6KLJL


Generated by Claude Code

Base automatically changed from chore/rename-template to 5.3.x November 23, 2026 16:50
…ts do

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RKuN81tBxMB6iaf8J6KLJL
…to a folder of classes)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RKuN81tBxMB6iaf8J6KLJL
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RKuN81tBxMB6iaf8J6KLJL
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RKuN81tBxMB6iaf8J6KLJL
…tle, register() without argument

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RKuN81tBxMB6iaf8J6KLJL
@seb5g
seb5g merged commit 9c0480d into 5.3.x Nov 23, 2026
8 checks passed
@seb5g
seb5g deleted the feat/waveform-factory branch November 23, 2026 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants