fn read_measure_v5(&mut self, data: &[u8], seek: &mut usize, measure: &mut Measure, track_index: usize) {
        //println!("read_measure_v5()");
        let mut start = measure.start;
        for number in 0..MAX_VOICES {
            self.current_voice_number = Some(number + 1);
            //println!("read_measure_v5() {:?}",self.current_voice_number);
            let mut voice = Voice::default();
            self.read_voice(data, seek, &mut voice, &mut start, track_index);
            measure.voices.push(voice);
        }
        self.current_voice_number = None;
        if *seek < data.len() {measure.line_break = get_line_break(read_byte(data, seek));} else {measure.line_break = get_line_break(0);}
    }
/// Read measure. Guitar Pro 5 stores twice more measures compared to Guitar Pro 3. One measure consists of two sub-measures for each of two voices.
/// 
/// Sub-measures are followed by a  `LineBreak` stored in `byte`.
Read measure. Guitar Pro 5 stores twice more measures compared to Guitar Pro 3. One measure consists of two sub-measures for each of two voices.
Sub-measures are followed by a  `LineBreak` stored in `byte`.
Read measure . Guitar Pro 5 stores twice more measures compared to Guitar Pro 3 . One measure consists of two sub - measures for each of two voices . Sub - measures are followed by a ` LineBreak ` stored in ` byte ` .
fn read_measure_v5(&mut self, data: &[u8], seek: &mut usize, measure: &mut Measure, track_index: usize) {
        //println!("read_measure_v5()");
        let mut start = measure.start;
        for number in 0..MAX_VOICES {
            self.current_voice_number = Some(number + 1);
            //println!("read_measure_v5() {:?}",self.current_voice_number);
            let mut voice = Voice::default();
            self.read_voice(data, seek, &mut voice, &mut start, track_index);
            measure.voices.push(voice);
        }
        self.current_voice_number = None;
        if *seek < data.len() {measure.line_break = get_line_break(read_byte(data, seek));} else {measure.line_break = get_line_break(0);}
    }
fn read_measure_v5 ( & mut self , data : & [ u8 ] , seek : & mut usize , measure : & mut Measure , track_index : usize ) { //println!("read_measure_v5()"); let mut start = measure . start ; for number in 0 .. MAX_VOICES { self . current_voice_number = Some ( number + 1 ) ; //println!("read_measure_v5() {:?}",self.current_voice_number); let mut voice = Voice :: default ( ) ; self . read_voice ( data , seek , & mut voice , & mut start , track_index ) ; measure . voices . push ( voice ) ; } self . current_voice_number = None ; if * seek < data . len ( ) { measure . line_break = get_line_break ( read_byte ( data , seek ) ) ; } else { measure . line_break = get_line_break ( 0 ) ; } }
Read measure.
Read measure .
&mut self
data
&[u8]
seek
&mut usize
measure
&mut Measure
track_index
usize
&mut self
data
&[u8]
seek
&mut usize
measure
&mut Measure
track_index
usize