Use Non-Frames Version Previous Page Next Page
Function Table Control: Table Queries

tableng

  ir      tableng    ifn
  kr      tableng    kfn

Description

Interrogates a function table for length.

Initialization

ifn - Table number to be interrogated

Performance

kfn - Table number to be interrogated

tableng returns the length of the specified table. This will be a power of two number in most circumstances. It will not show whether a table has a guardpoint or not. It seems this information is not available in the table's data structure. If the specified table is not found, then 0 will be returned.

Likely to be useful for setting up code for table manipulation operations, such as tablemix and tablecopy.

Name Changes

As of Csound version 3.52, the name of the opcode itablegpw has been changed to tableng.

Author

Robin Whittle
Australia
May 1997


Use Non-Frames Version Previous Page Next Page
Function Table Control: Table Queries