This page walks through a complete example of an audio module, starting from the high-level MATLAB model and continuing through the generated code. This example is identical to the scaler_smoothed_module.m contained in the Deprecated module library. We go through this module in a systematic fashion and reference the source files listed in Scaler Smoothed Example Source Files. The Examples Module Library contains additional module examples which highlight advanced features.
...
Subsystems are very similar to modules, but also contain a list of internal modules and a list of connections between modules.
Audio Module Instance Structure
Anchor | ||||
---|---|---|---|---|
|
Every audio module has an associated instance data structure that holds the variables – state and parameters – needed by the module. In this example, there are 4 variables described in the module m-file:
...