pub struct SyncDevice {
pub tracks: SmallVec<[SyncTrack; 64]>,
pub rpb: u8,
pub bpm: f64,
pub rps: f64,
pub is_paused: bool,
pub row: u32,
pub time: u32,
}Fields§
§tracks: SmallVec<[SyncTrack; 64]>sync tracks (the vertical columns in the editor)
rpb: u8rows per beat
bpm: f64beats per minute
rps: f64rows per second
is_paused: bool§row: u32current row
time: u32current time in milliseconds
Implementations§
Source§impl SyncDevice
impl SyncDevice
pub fn new(bpm: f64, rpb: u8) -> SyncDevice
pub fn set_row_from_time(&mut self)
pub fn get_track_value(&self, track_id: usize) -> Result<f64, SyncError>
Auto Trait Implementations§
impl Freeze for SyncDevice
impl RefUnwindSafe for SyncDevice
impl Send for SyncDevice
impl Sync for SyncDevice
impl Unpin for SyncDevice
impl UnwindSafe for SyncDevice
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