Skip to main content

Crate songwalker_core

Crate songwalker_core 

Source

Modules§

ast
compiler
dsp
DSP Engine — Pure Rust audio synthesis and processing.
error
lexer
parser
preset
Preset system types for the unified preset format.
token

Constants§

VERSION
The crate version, read from Cargo.toml at compile time.

Functions§

compile_song
WASM-exposed: compile .sw source into a JSON event list (strict/editor mode). Errors if a note plays before track.instrument is set.
core_version
WASM-exposed: return the songwalker-core version string.
parse
Parse a .sw source string into a Program AST.
render_song_samples
WASM-exposed: compile and render .sw source to mono f32 samples. Returns the raw audio buffer for AudioWorklet playback.
render_song_samples_with_presets
WASM-exposed: compile and render .sw source to mono f32 samples with loaded preset data for sampler-based instruments.
render_song_wav
WASM-exposed: compile and render .sw source to a WAV byte array.
render_song_wav_with_presets
WASM-exposed: compile and render .sw source to a WAV byte array with loaded preset data for sampler-based instruments.