fn read_tremolo_bar(&self, data: &[u8], seek: &mut usize) -> BendEffect {
        //println!("read_tremolo_bar()");
        let mut be = BendEffect{kind: BendType::Dip, ..Default::default()};
        be.value = read_int(data, seek).to_i16().unwrap();
        be.points.push(BendPoint{ position: 0, value: 0, ..Default::default() });
        be.points.push(BendPoint{ position: BEND_EFFECT_MAX_POSITION / 2,
                                  value: (-f32::from(be.value) / GP_BEND_SEMITONE).round().to_i8().unwrap(),
                                  ..Default::default() });
        be.points.push(BendPoint{ position: BEND_EFFECT_MAX_POSITION, value: 0, ..Default::default() });
        be
    }
/// Read tremolo bar beat effect. The only type of tremolo bar effect Guitar Pro 3 supports is `dip <BendType::Dip>`. The value of the
/// effect is encoded in `Int` and shows how deep tremolo bar is pressed.
Read tremolo bar beat effect. The only type of tremolo bar effect Guitar Pro 3 supports is `dip `. The value of the
effect is encoded in `Int` and shows how deep tremolo bar is pressed.
Read tremolo bar beat effect . The only type of tremolo bar effect Guitar Pro 3 supports is ` dip ` . The value of the effect is encoded in ` Int ` and shows how deep tremolo bar is pressed .
fn read_tremolo_bar(&self, data: &[u8], seek: &mut usize) -> BendEffect {
        //println!("read_tremolo_bar()");
        let mut be = BendEffect{kind: BendType::Dip, ..Default::default()};
        be.value = read_int(data, seek).to_i16().unwrap();
        be.points.push(BendPoint{ position: 0, value: 0, ..Default::default() });
        be.points.push(BendPoint{ position: BEND_EFFECT_MAX_POSITION / 2,
                                  value: (-f32::from(be.value) / GP_BEND_SEMITONE).round().to_i8().unwrap(),
                                  ..Default::default() });
        be.points.push(BendPoint{ position: BEND_EFFECT_MAX_POSITION, value: 0, ..Default::default() });
        be
    }
fn read_tremolo_bar ( & self , data : & [ u8 ] , seek : & mut usize ) -> BendEffect { //println!("read_tremolo_bar()"); let mut be = BendEffect { kind : BendType :: Dip , .. Default :: default ( ) } ; be . value = read_int ( data , seek ) . to_i16 ( ) . unwrap ( ) ; be . points . push ( BendPoint { position : 0 , value : 0 , .. Default :: default ( ) } ) ; be . points . push ( BendPoint { position : BEND_EFFECT_MAX_POSITION / 2 , value : ( - f32 :: from ( be . value ) / GP_BEND_SEMITONE ) . round ( ) . to_i8 ( ) . unwrap ( ) , .. Default :: default ( ) } ) ; be . points . push ( BendPoint { position : BEND_EFFECT_MAX_POSITION , value : 0 , .. Default :: default ( ) } ) ; be }
Read tremolo bar beat effect.
Read tremolo bar beat effect .
&self
data
&[u8]
seek
&mut usize
&self
data
&[u8]
seek
&mut usize