pub struct TimeGrid {
pub tpq: u32,
pub step: Time,
}Expand description
Timing grid for a piano roll.
Couples a ticks-per-quarter resolution with a quantization step measured in whole-note fractions.
§Examples
use sim_lib_music_core::TimeGrid;
let grid = TimeGrid::default();
assert_eq!(grid.tpq, 480);Fields§
§tpq: u32Ticks per quarter note.
step: TimeQuantization step, as a fraction of a whole note.
Implementations§
Trait Implementations§
impl Eq for TimeGrid
impl StructuralPartialEq for TimeGrid
Auto Trait Implementations§
impl Freeze for TimeGrid
impl RefUnwindSafe for TimeGrid
impl Send for TimeGrid
impl Sync for TimeGrid
impl Unpin for TimeGrid
impl UnsafeUnpin for TimeGrid
impl UnwindSafe for TimeGrid
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