Skip to main content

Crate aura_core

Crate aura_core 

Source
Expand description

AURA core — minimal process / editor / plugin surface.

UI windowing lives in [aura_baseview]; host Editor adapter in aura-editor. This crate only defines the host-facing Editor trait and plugin process API that formats and the adapter will share.

Re-exports§

pub use buffer::AudioBuffer;
pub use bus::BusLayout;
pub use bus::ChannelConfig;
pub use bus::layout_at;
pub use chunked_process::TimedParamEvent;
pub use chunked_process::apply_at_time;
pub use chunked_process::apply_event;
pub use chunked_process::apply_non_chunked;
pub use chunked_process::is_split_event;
pub use chunked_process::split_points;
pub use chunked_process::split_points_into;
pub use config::AudioConfig;
pub use config::ProcessMode;
pub use editor::Editor;
pub use editor::EditorBridge;
pub use editor::IntoEditor;
pub use editor::PluginContext;
pub use editor::RawWindowHandle;
pub use events::ParamEvent;
pub use events::ParamEventQueue;
pub use host_fence::host_callback;
pub use host_fence::host_callback_with;
pub use info::MidiDialect;
pub use info::PluginCategory;
pub use info::PluginInfo;
pub use note_events::NOTE_UNSPECIFIED;
pub use note_events::NoteBuffer;
pub use note_events::NoteEvent;
pub use note_events::NoteEventKind;
pub use note_events::NoteExpression;
pub use note_events::NoteTarget;
pub use note_events::append_midi_as_notes;
pub use note_events::append_notes_as_midi;
pub use note_events::note_split_points;
pub use note_events::note_split_points_into;
pub use note_events::notes_or_midi;
pub use note_events::route_param_mod;
pub use note_events::route_param_value;
pub use note_voices::NoteVoice;
pub use note_voices::NoteVoiceTable;
pub use plugin::NoteNameEntry;
pub use plugin::PluginLogic;
pub use preset::FactoryPreset;
pub use preset::FactoryPresetState;
pub use preset::apply_factory_preset;
pub use preset::load_preset_file;
pub use process::ProcessContext;
pub use process::ProcessStatus;
pub use state::decode_state;
pub use state::encode_state;
pub use transport::Transport;
pub use tuning::Tuning;
pub use tuning::TuningEvent;
pub use tuning::TuningInfo;
pub use tuning::TuningProvider;

Modules§

buffer
Non-interleaved audio buffer (minimal).
bus
Main-bus channel layouts for format wrappers.
chunked_process
Sample-accurate automation / modulation chunking.
config
Activation-time processing configuration.
editor
Host-facing editor trait (windowing: aura-baseview; adapter: aura-editor).
events
GUI → audio-thread param event queue.
host_fence
Host-boundary panic fence.
info
Static plugin metadata (CLAP / VST3 / LV2 focused — no AU/AAX fields).
note_events
CLAP-shaped note / expression / per-note-mod events for process.
note_voices
CLAP voice table keyed by note_id — expressions in, NOTE_END out.
plugin
User-facing plugin logic (minimal f32 leaf).
preset
Factory presets and filesystem preset load (CLAP preset-load / preset-discovery). Same v1 param blob as crate::state.
process
Per-block process context (minimal).
state
Shared plugin state blob — host-agnostic, so every format wrapper (CLAP clap.state, VST3 IComponent::getState, LV2 state ext) speaks the same byte layout and a session saved via one format restores identically in another.
transport
Host transport snapshot for one process block.
tuning
Host tuning support (CLAP clap.tuning / MTS-ESP).

Structs§

MidiBuffer
Ordered MIDI events for one audio block. Sorted by MidiEvent::sample_offset.
MidiEvent
One MIDI message at a sample offset within the current block.
MidiMessage
One MIDI message. Channel is 0..=15 for channel voice messages.
Ump
One UMP packet: 1, 2, or 4 native-endian 32-bit words.
UmpBuffer
Ordered UMP events for one audio block. Same insert / rebase rules as MidiBuffer.
UmpEvent
One Universal MIDI Packet at a sample offset within the current block.

Enums§

MidiStatus
High nibble of status byte (channel messages use low nibble as channel).

Traits§

Float
Math on f32 or f64 (gains, freqs, coefficients — not necessarily samples).
Sample
Float plus Default + Send + Sync + 'static for buffers and scratch.

Functions§

append_midi_as_ump
Lift 7-bit MIDI into type-0x2 UMP (VST3/LV2 → process ump).
append_ump_as_midi
Down-convert UMP that has a MIDI 1 image (VST3/LV2 out). Per-note PB / SysEx8 / Flex stay behind.