Skip to content

processing_audio: node graph with explicit port routing - #302

Open
catilac wants to merge 1 commit into
audio-devicesfrom
audio-graph
Open

catilac wants to merge 1 commit into
audio-devicesfrom
audio-graph

Conversation

@catilac

@catilac catilac commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Adds a generic audio node graph. All of the nodes are set to NoAutoConnect so that we maintain the routing configuration across disconnects.

I want to get to actually creating python API endpoints, so this can be further shaped.

  • audio_node_create: volume, volume/pan, mix, SVF and one-pole filters (1 to 8 channels), freeverb, white and pink noise.
  • audio_node_set / audio_node_set_variant / audio_node_get: set or read any numeric or enum parameter by field name, using reflection.
  • audio_connect / audio_disconnect: always explicit (source_port, destination_port) pairs.
  • audio_input / audio_output: the graph's I/O, with one port per device channel (at least 8).

No implicit routing. Every node gets seedling's NoAutoConnect, so nothing is sent to a MainBus and there is no automatic up/down-mixing. A signal on channel 5 stays on channel 5, which matters for DC-coupled CV as much as for audio.

Review notes

  • All the graph logic is in graph.rs.
  • The for_channels! macro maps a runtime channel count onto the filters' const-generic width.

Stack created with GitHub Stacks CLI • Give Feedback 💬

@catilac
catilac added this pull request to stack #306 December 1, 2026 05:13
@catilac catilac changed the title processing_audio: node graph with explicit port routing Audio: node graph with explicit port routing Dec 1, 2026
@catilac catilac changed the title Audio: node graph with explicit port routing processing_audio: node graph with explicit port routing Dec 3, 2026
@catilac
catilac requested a review from tychedelia December 3, 2026 14:20
@catilac
catilac marked this pull request as ready for review December 3, 2026 14:21

This branch has not been deployed

No deployments
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.

1 participant