Skip to main content

truce_core/
lib.rs

1pub mod buffer;
2pub mod bus;
3pub mod chunked_process;
4pub mod custom_state;
5pub mod denormal;
6pub mod editor;
7pub mod events;
8pub mod export;
9pub mod info;
10pub mod midi;
11pub mod plugin;
12pub mod process;
13pub mod screenshot;
14pub mod state;
15pub mod transport;
16pub mod ump;
17pub mod util;
18pub mod wrapper;
19
20pub use buffer::{AudioBuffer, RawBufferScratch};
21pub use bus::{BusConfig, BusKind, BusLayout, ChannelConfig};
22pub use editor::{Editor, IntoEditor, PluginContext};
23pub use events::{Event, EventBody, EventList, PushError, SYSEX_POOL_PREALLOC, TransportInfo};
24pub use export::PluginExport;
25pub use info::{AutomationConfig, PluginCategory, PluginInfo};
26pub use plugin::PluginRuntime;
27pub use process::{ProcessContext, ProcessStatus};
28pub use transport::TransportSlot;
29
30// `Float` / `Sample` live in `truce-params` (truce-core depends on
31// truce-params, not the other way around). Re-exported here so
32// `truce_core::Float` / `truce_core::sample::Sample` are valid paths
33// for callers that don't want to depend on truce-params directly.
34pub use truce_params::sample;
35pub use truce_params::sample::{Float, Sample};
36pub use util::{db_to_linear, linear_to_db, meter_display, midi_note_to_freq};
37
38// `cast`, `shell_sidecar`, and `slugify` are hosted in `truce-utils`
39// (a dependency-free crate) so build-time consumers like `cargo-truce`
40// can use them without inheriting `truce-core`'s `truce-params` + `png`
41// publish chain. Re-exported here under `truce_core::cast::*` etc.
42// for callers that already depend on truce-core.
43pub use truce_utils::{cast, shell_sidecar, slugify};