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