Csound API  6.01
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
Functions
Tables

Functions

PUBLIC int csoundTableLength (CSOUND *, int table)
 Returns the length of a function table (not including the guard point), or -1 if the table does not exist. More...
 
PUBLIC MYFLT csoundTableGet (CSOUND *, int table, int index)
 Returns the value of a slot in a function table. More...
 
PUBLIC void csoundTableSet (CSOUND *, int table, int index, MYFLT value)
 Sets the value of a slot in a function table. More...
 
PUBLIC void csoundTableCopyOut (CSOUND *csound, int table, MYFLT *dest)
 Copy the contents of a function table into a supplied array *dest The table number is assumed to be valid, and the destination needs to have sufficient space to receive all the function table contents. More...
 
PUBLIC void csoundTableCopyIn (CSOUND *csound, int table, MYFLT *src)
 Copy the contents of an array *src into a given function table The table number is assumed to be valid, and the table needs to have sufficient space to receive all the array contents. More...
 
PUBLIC int csoundGetTable (CSOUND *, MYFLT **tablePtr, int tableNum)
 Stores pointer to function table 'tableNum' in *tablePtr, and returns the table length (not including the guard point). More...
 

Detailed Description

Function Documentation

PUBLIC int csoundGetTable ( CSOUND ,
MYFLT **  tablePtr,
int  tableNum 
)

Stores pointer to function table 'tableNum' in *tablePtr, and returns the table length (not including the guard point).

If the table does not exist, *tablePtr is set to NULL and -1 is returned.

PUBLIC void csoundTableCopyIn ( CSOUND csound,
int  table,
MYFLT *  src 
)

Copy the contents of an array *src into a given function table The table number is assumed to be valid, and the table needs to have sufficient space to receive all the array contents.

PUBLIC void csoundTableCopyOut ( CSOUND csound,
int  table,
MYFLT *  dest 
)

Copy the contents of a function table into a supplied array *dest The table number is assumed to be valid, and the destination needs to have sufficient space to receive all the function table contents.

PUBLIC MYFLT csoundTableGet ( CSOUND ,
int  table,
int  index 
)

Returns the value of a slot in a function table.

The table number and index are assumed to be valid.

PUBLIC int csoundTableLength ( CSOUND ,
int  table 
)

Returns the length of a function table (not including the guard point), or -1 if the table does not exist.

PUBLIC void csoundTableSet ( CSOUND ,
int  table,
int  index,
MYFLT  value 
)

Sets the value of a slot in a function table.

The table number and index are assumed to be valid.