Struct time_calc::time_sig::TimeSig
[−]
[src]
pub struct TimeSig { pub top: Top, pub bottom: Bottom, }
Represents a musical time signature.
Fields
top: Top
bottom: Bottom
Methods
impl TimeSig
[src]
fn beats_per_bar(&self) -> f64
[src]
Return how many beats there are in a bar under this time signature.
fn ticks_per_bar(&self, ppqn: Ppqn) -> Ticks
[src]
The number of Ticks
in a single Bar
with this TimeSig
.
Trait Implementations
impl Debug for TimeSig
[src]
impl Copy for TimeSig
[src]
impl Clone for TimeSig
[src]
fn clone(&self) -> TimeSig
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for TimeSig
[src]
fn eq(&self, __arg_0: &TimeSig) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &TimeSig) -> bool
[src]
This method tests for !=
.