Expand description
Bridge — reconcile transcription, authored MIDI, the sequencer, and the sonic-token transport. Re-exports only (AU-MIDI-BRIDGE).
This lane wires already-built pieces together without reimplementing them:
note_events_to_timed— transcribedcrate::features::pitch_midi::NoteEventPROPOSALS → sequencercrate::midi::sequencer::TimedEventnote-on/off pairs.pair_note_events— a timed MIDI stream (sequencer / flattened SMF track, AUTHORITATIVE) → wholePairedNotes.midi_to_sonic_token/sonic_token_to_midi— canonicalcrate::midi::message::MidiMessage↔ a packedu64SonicToken()-shaped word mirroring core-db’snet/sonic_token.rs.extract_smf_provenance— a parsedcrate::midi::smf::SmfFile→ boundedProvenancePairs for NQuin emission.
Epistemic distinction preserved throughout: transcribed MIDI is a proposal (carries confidence at its source), authored / imported SMF MIDI is authoritative. See each submodule’s docs.
Re-exports§
pub use from_pitch_midi::note_events_to_timed;pub use from_pitch_midi::NOTE_OFF_VELOCITY;pub use from_pitch_midi::PROPOSAL_CHANNEL;pub use from_pitch_midi::PROPOSAL_NOTE;pub use smf_provenance::extract_smf_provenance;pub use smf_provenance::ProvenanceKey;pub use smf_provenance::ProvenancePair;pub use smf_provenance::MAX_PROV_VALUE;pub use smf_provenance::META_COPYRIGHT;pub use sonic_token::midi_to_sonic_token;pub use sonic_token::sonic_token_to_midi;pub use sonic_token::SonicEventType;pub use sonic_token::SONIC_MAGIC;pub use to_note_events::pair_note_events;pub use to_note_events::PairedNote;pub use to_note_events::MAX_OPEN_NOTES;
Modules§
- from_
pitch_ midi - Convert transcribed pitch→MIDI
NoteEventproposals into sequencerTimedEventnote-on / note-off pairs. - smf_
provenance - Extract provenance
(key, value)pairs from a parsed Standard MIDI File for NQuin emission. - sonic_
token - A packed
u64SonicToken for MIDI — the qualia-audio-side bridge type. - to_
note_ events - Pair a stream of timed MIDI events into whole notes (
note-onmatched to itsnote-off).