pub fn table_set(&mut self, table: u32, index: u32, value: f64) -> Result<(), &'static str> {
        unsafe {
            let size = self.table_length(table)?;
            if index < size as u32 {
                csound_sys::csoundTableSet(
                    self.engine.csound,
                    table as c_int,
                    index as c_int,
                    value,
                );
                Ok(())
            } else {
                Err("index out of range")
            }
        }
    }
/// Sets the value of a slot in a function table.
/// # Arguments
/// * `table` The function table identifier.
/// * `index` The slot at table[index] where value will be added.
/// # Returns
/// An error message if the index or table are no valid
Sets the value of a slot in a function table.
Sets the value of a slot in a function table .
pub fn table_set(&mut self, table: u32, index: u32, value: f64) -> Result<(), &'static str> {
        unsafe {
            let size = self.table_length(table)?;
            if index < size as u32 {
                csound_sys::csoundTableSet(
                    self.engine.csound,
                    table as c_int,
                    index as c_int,
                    value,
                );
                Ok(())
            } else {
                Err("index out of range")
            }
        }
    }
pub fn table_set ( & mut self , table : u32 , index : u32 , value : f64 ) -> Result < ( ) , & ' static str > { unsafe { let size = self . table_length ( table ) ? ; if index < size as u32 { csound_sys :: csoundTableSet ( self . engine . csound , table as c_int , index as c_int , value , ) ; Ok ( ( ) ) } else { Err ( " " ) } } }
Sets the value of a slot in a function table.
Sets the value of a slot in a function table .
&mut self
table
u32
index
u32
value
f64
An error message if the index or table are no valid
An error message if the index or table are no valid
&mut self
table
u32
index
u32
value
f64