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