Skip to main content

Crate refrain_adapters

Crate refrain_adapters 

Source
Expand description

refrain-adapters: pluggable output adapters for refrains.

Defines the RefrainAdapter trait and provides built-in implementations for audio (Strudel JSON / OSC), visual (wgpu/skia), code-rewrite (text template), and text (n-gram). Built-ins are populated in Phases 6-9.

Re-exports§

pub use audio::AudioAdapter;
pub use audio::AudioFormat;
pub use code::CodeAdapter;
pub use code::CodeLang;
pub use schedule::schedule;
pub use schedule::Hap;
pub use text::TextAdapter;
pub use text::TextStyle;
pub use visual::VisualAdapter;

Modules§

audio
Audio adapter: emits either Strudel-style Hap JSON or OSC bundle bytes.
code
Code adapter: emits source code that reconstructs a refrain.
schedule
Pattern → time-event schedule.
text
Text adapter: deterministic natural-language template rendering.
visual
Visual adapter: deterministic headless PNG rendering of a refrain.

Structs§

AdapterCaps
EmitCtx
ExtractedRefrain

Enums§

AdapterErr

Traits§

RefrainAdapter