next up previous contents
Next: Param_specs. Up: Describing your parameters and Previous: Describing your parameters and

Indexing.

Each of your machine's parameters is identified by a numeric index, starting at zero. First, let's set up some symbolic constants to make these indices easier to remember.

This can be done very easily with C's enumerated type facility:

enum {ix_first_param, ix_second_param, ... }

The ix_ stands for ``index.'' It's just a convention that makes the meaning of the name more clear. You should name the constants in accordance with the parameter's use; for instance, the example delay machine uses ix_length and ix_feedback.



David O'Toole
2000-07-19