pub fn bar_start_pos_beats(&self) -> Option<f64> {
        if self.bar_start_pos_beats.is_some() {
            return self.bar_start_pos_beats;
        }

        match (
            self.time_sig_numerator,
            self.time_sig_denominator,
            self.pos_beats(),
        ) {
            (Some(time_sig_numerator), Some(time_sig_denominator), Some(pos_beats)) => {
                let quarter_note_bar_length =
                    time_sig_numerator as f64 / time_sig_denominator as f64 * 4.0;
                Some(pos_beats.div_euclid(quarter_note_bar_length))
            }
            (_, _, _) => None,
        }
    }
/// The last bar's start position in beats. Will be calculated from other information if needed.
The last bar's start position in beats. Will be calculated from other information if needed.
The last bar ' s start position in beats . Will be calculated from other information if needed .
pub fn bar_start_pos_beats(&self) -> Option<f64> {
        if self.bar_start_pos_beats.is_some() {
            return self.bar_start_pos_beats;
        }
        match (
            self.time_sig_numerator,
            self.time_sig_denominator,
            self.pos_beats(),
        ) {
            (Some(time_sig_numerator), Some(time_sig_denominator), Some(pos_beats)) => {
                let quarter_note_bar_length =
                    time_sig_numerator as f64 / time_sig_denominator as f64 * 4.0;
                Some(pos_beats.div_euclid(quarter_note_bar_length))
            }
            (_, _, _) => None,
        }
    }
pub fn bar_start_pos_beats ( & self ) -> Option < f64 > { if self . bar_start_pos_beats . is_some ( ) { return self . bar_start_pos_beats ; } match ( self . time_sig_numerator , self . time_sig_denominator , self . pos_beats ( ) , ) { ( Some ( time_sig_numerator ) , Some ( time_sig_denominator ) , Some ( pos_beats ) ) => { let quarter_note_bar_length = time_sig_numerator as f64 / time_sig_denominator as f64 * 4.0 ; Some ( pos_beats . div_euclid ( quarter_note_bar_length ) ) } ( _ , _ , _ ) => None , } }
The last bar's start position in beats.
The last bar ' s start position in beats .
&self
&self