fn read_measure(&mut self, data: &[u8], seek: &mut usize, measure: &mut Measure, track_index: usize) {
        //println!("read_measure()");
        let mut voice = Voice::default();
        self.current_voice_number = Some(1);
        self.read_voice(data, seek, &mut voice, &mut measure.start, track_index);
        self.current_voice_number = None;
        measure.voices.push(voice);
        /*
        //read a voice 
        let beats = read_int(data, seek).to_usize().unwrap();

        //println!("read_measure() read_voice(), beat count: {}", beats);
        for i in 0..beats {
            self.current_beat_number = Some(i + 1);
            //println!("read_measure() read_voice(), start: {}", measure.start);
            measure.start += self.read_beat(data, seek, &mut measure.voices[0], measure.start, track_index);
            //println!("read_measure() read_voice(), start: {}", measure.start);
        }
        self.current_beat_number = None;
        //end read a voice
        self.current_voice_number = None;*/
    }
/// Read measure. The measure is written as number of beats followed by sequence of beats.
Read measure. The measure is written as number of beats followed by sequence of beats.
Read measure . The measure is written as number of beats followed by sequence of beats .
fn read_measure(&mut self, data: &[u8], seek: &mut usize, measure: &mut Measure, track_index: usize) {
        //println!("read_measure()");
        let mut voice = Voice::default();
        self.current_voice_number = Some(1);
        self.read_voice(data, seek, &mut voice, &mut measure.start, track_index);
        self.current_voice_number = None;
        measure.voices.push(voice);
        /*
        //read a voice 
        let beats = read_int(data, seek).to_usize().unwrap();
        //println!("read_measure() read_voice(), beat count: {}", beats);
        for i in 0..beats {
            self.current_beat_number = Some(i + 1);
            //println!("read_measure() read_voice(), start: {}", measure.start);
            measure.start += self.read_beat(data, seek, &mut measure.voices[0], measure.start, track_index);
            //println!("read_measure() read_voice(), start: {}", measure.start);
        }
        self.current_beat_number = None;
        //end read a voice
        self.current_voice_number = None;*/
    }
fn read_measure ( & mut self , data : & [ u8 ] , seek : & mut usize , measure : & mut Measure , track_index : usize ) { //println!("read_measure()"); let mut voice = Voice :: default ( ) ; self . current_voice_number = Some ( 1 ) ; self . read_voice ( data , seek , & mut voice , & mut measure . start , track_index ) ; self . current_voice_number = None ; measure . voices . push ( voice ) ; /*
        //read a voice 
        let beats = read_int(data, seek).to_usize().unwrap();

        //println!("read_measure() read_voice(), beat count: {}", beats);
        for i in 0..beats {
            self.current_beat_number = Some(i + 1);
            //println!("read_measure() read_voice(), start: {}", measure.start);
            measure.start += self.read_beat(data, seek, &mut measure.voices[0], measure.start, track_index);
            //println!("read_measure() read_voice(), start: {}", measure.start);
        }
        self.current_beat_number = None;
        //end read a voice
        self.current_voice_number = None;*/ }
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