Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This section discusses examples which illustrate advanced module design techniques.  The modules are part of the Examples module library introduced in Section 2 Scaler Smoothed Module Example.  In addition to the scaler_smoothed_example_module.m, the this library contains the following:

...

  • Simple scaler.  This module demonstrates how to support multiple input and output pins each with, possibly, a different number of channels.

  • peak_hold_example_module.m

...

  • Similar to a level meter in that it measures the peak signal level.  This module demonstrates how to allocate arrays and update array sizes within the module's prebuild function.  A fixed-point version of this example is also provided:  peak_hold_example_fract32_module.m.

  • fader_example_module.m

...

  • Front-back fader which pans a signal between two different outputs.  This module demonstrates compiled subsystems, that is, how to build a new module class out of a subsystem.  A fixed-point version of this example is also provided:  fader_example_fract32_module.m.

  • downsampler_example_module.m

...

  • Downsampler which keeps 1 out of every D samples; no filtering is performed.  This module demonstrates how to operate on arbitrary 32-bit data types as well as changing the output block size and sample rate.

  • lah_limiter_example_module.m

...

  • Look ahead limiter delivered as a compiled subsystem.  This module demonstrates some advanced features of compiled subsystems including initializing internal module variables and clarifying wire buffer usage.

The example library is found in the <AWE>\AWEModules\Source\Examples directory.  Run the main script make_examples.m to generate code for the entire library.

...

Scaler Module
Anchor
ScalerModule
ScalerModule

This example is contained in the file scaler_example_module.m.  It is equivalent to scaler_module.m provided in the Deprecated module library. This module implements a straightforward linear scaler without any smoothing.  The module scaler_smoothed_example_module.m implements linear scaler with smoothing. The module has single input pin and single output pin with arbitrary number of channels. This module illustrate the basic components of Audio Weaver module.

...