pub fn eval_code<T>(&self, code: T) -> Result<f64, &'static str>
    where
        T: AsRef<str>,
    {
        let cd = Trampoline::convert_str_to_c(code)?;
        unsafe {
            Ok(csound_sys::csoundEvalCode(
                self.engine.csound,
                cd.as_ptr() as _,
            ))
        }
    }
///   Parse and compile an orchestra given on a string,
///   evaluating any global space code (i-time only).
/// # Returns
///   On SUCCESS it returns a value passed to the
///   'return' opcode in global space.
///       code = "i1 = 2 + 2 \n return i1 \n"
///       retval = csound.eval_code(code)
Parse and compile an orchestra given on a string,
evaluating any global space code (i-time only).
Parse and compile an orchestra given on a string evaluating any global space code ( i - time only ) .
pub fn eval_code<T>(&self, code: T) -> Result<f64, &'static str>
    where
        T: AsRef<str>,
    {
        let cd = Trampoline::convert_str_to_c(code)?;
        unsafe {
            Ok(csound_sys::csoundEvalCode(
                self.engine.csound,
                cd.as_ptr() as _,
            ))
        }
    }
pub fn eval_code < T > ( & self , code : T ) -> Result < f64 , & ' static str > where T : AsRef < str > , { let cd = Trampoline :: convert_str_to_c ( code ) ? ; unsafe { Ok ( csound_sys :: csoundEvalCode ( self . engine . csound , cd . as_ptr ( ) as _ , ) ) } }
Parse and compile an orchestra given on a string,
evaluating any global space code (i-time only).
Parse and compile an orchestra given on a string evaluating any global space code ( i - time only ) .
&self
code
T
On SUCCESS it returns a value passed to the
'return' opcode in global space.
code = "i1 = 2 + 2 \n return i1 \n"
retval = csound.eval_code(code)
On SUCCESS it returns a value passed to the ' return ' opcode in global space . code = " i1 = 2 + 2 \ n return i1 \ n " retval = csound . eval_code ( code )
&self
code
T