Skip to main content

Crate strudel_rs

Crate strudel_rs 

Source
Expand description

Feature-selectable, namespaced facade for the reusable strudel-rs libraries.

Enable a facade feature to make its module available. Modules re-export the complete public API of the corresponding workspace crate without flattening names into this crate’s root.

The default features give you the pattern engine plus both front ends:

[dependencies]
strudel-rs = "0.2"

Example usage:

use strudel_rs::{core, dsl};

let output = dsl::execute(r#"note("c4 e4 g4")"#).unwrap();
let pattern: core::Pattern = output.pattern;
let first_cycle = pattern.first_cycle();
assert_eq!(first_cycle.len(), 3);

Re-exports§

pub use ::midi_to_strudel;midi-to-strudel
pub use ::strudel_audio as audio;audio
pub use ::strudel_core as core;core
pub use ::strudel_dsl as dsl;dsl
pub use ::strudel_dsp as dsp;dsp
pub use ::strudel_markov as markov;markov
pub use ::strudel_mini as mini;mini
pub use ::strudel_music_theory as music_theory;music-theory
pub use ::strudel_pcm as pcm;pcm
pub use ::strudel_soundfont as soundfont;soundfont-gm
pub use ::strudel_sounds as sounds;sounds