Skip to content

Audio: samples and samplers - #303

Draft
catilac wants to merge 1 commit into
audio-graphfrom
audio-samples
Draft

catilac wants to merge 1 commit into
audio-graphfrom
audio-samples

Conversation

@catilac

@catilac catilac commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Adds samples and samplers.

  • audio_sample_load: wav, ogg or flac. Blocks until decoded, with paths relative to the sketch's asset folder.
  • audio_sampler_create(channels, voices): each sampler is its own seedling pool with its own outputs, routed like any other node. For example, two samplers can feed different synth inputs.
  • audio_sample_play / audio_sample_stop.
  • Adds a short assets/audio/pluck.wav for the tests and examples.

Testing: cargo test -p processing_audio. The tests cover separate sampler pools, playback to completion, and samplers not being auto-connected.


Stack created with GitHub Stacks CLI • Give Feedback 💬

Load wav, ogg and flac files (blocking until decoded, relative to the sketch's asset folder) and play them through samplers. Each sampler is its own seedling pool with its own outputs, routed like any other node, so e.g. different samplers can feed different synth inputs. Adds a short pluck sample for the tests and examples.
@catilac
catilac added this pull request to stack #306 December 1, 2026 05:13
@catilac catilac changed the title processing_audio: samples and samplers Audio: samples and samplers 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