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