pub struct TransportState {
pub is_playing: bool,
pub bpm: f64,
pub frame_pos: u64,
pub time_sig_num: u8,
pub time_sig_den: u8,
pub bar_start_frame: u64,
}Expand description
Musical transport state — derived from JACK/PipeWire transport or MIDI clock.
Carries the current bar/beat/tempo state of the host timeline. Populated by the I/O backend once per processing block.
Fields§
§is_playing: boolWhether the host transport is currently rolling (playing).
bpm: f64Current tempo in beats per minute.
frame_pos: u64Absolute transport frame (song position in samples).
time_sig_num: u8Beats per bar — time signature numerator (default 4).
time_sig_den: u8Beat unit — time signature denominator (default 4 = quarter note).
bar_start_frame: u64Sample position where the current bar started.
Trait Implementations§
Source§impl Clone for TransportState
impl Clone for TransportState
Source§fn clone(&self) -> TransportState
fn clone(&self) -> TransportState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TransportState
Source§impl Debug for TransportState
impl Debug for TransportState
Source§impl Default for TransportState
impl Default for TransportState
Auto Trait Implementations§
impl Freeze for TransportState
impl RefUnwindSafe for TransportState
impl Send for TransportState
impl Sync for TransportState
impl Unpin for TransportState
impl UnsafeUnpin for TransportState
impl UnwindSafe for TransportState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more