Skip to content

Audio: two audio examples - #305

Draft
catilac wants to merge 2 commits into
audio-patchbayfrom
audio-examples
Draft

catilac wants to merge 2 commits into
audio-patchbayfrom
audio-examples

Conversation

@catilac

@catilac catilac commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

I still need to test the ES-9. And there are some hardcoded constraints like 8-channels which need to be addressed. But later.

  • audio_cube: a spinning cube that plays a filtered sample when you press space and wobbles to it. Mouse X sets the filter cutoff.
  • audio_modular: routing sized to the output device, with a level meter for every input and output channel.

Testing

cargo run --example audio_cube
AUDIO_DEVICE="Scarlett" cargo run --example audio_modular   # any part of a device name

While audio_modular is playing:

  • B switches the block size between 256 and 128, restarting the stream; the patch should be kept.
  • Unplugging the interface should stop the stream with OutputLost, and nothing should play on other outputs. Plugging it back in should resume with OutputRestored.

Both examples were tested on a Scarlett 2i2.


Stack created with GitHub Stacks CLI • Give Feedback 💬

A spinning cube that plays a filtered sample on space and wobbles to it, with mouse X setting the cutoff.
Routing sized to the output device, with patch-bay level meters. AUDIO_DEVICE / AUDIO_INPUT pick the interface; B restarts the stream at a new block size; unplugging the interface stops the stream until it returns.
@catilac
catilac added this pull request to stack #306 December 1, 2026 05:13
@catilac catilac changed the title audio examples Audio: audio_cube and audio_modular examples Dec 1, 2026
@catilac catilac changed the title Audio: audio_cube and audio_modular examples Audio: two audio examples Dec 1, 2026

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