Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Scroll Documents: Update page title prefix

Overview

Continuously outputs a buffer of fract32 data

Discussion

This module continuously outputs a stored buffer of fract32 data. The module starts with the first sample and continues to the end of the array. Once the end of the array is reached, the module wraps to the beginning of the buffer. Thus, the data values are circularly addressed. The modules supports an internal buffer size which can be different from the block size of the module. The module also supports an arbitrary number of output channels.

Type Definition

Code Block
typedef struct _ModulePeriodicSourceFract32
{
    ModuleInstanceDescriptor instance;            // Common Audio Weaver module instance structure
    INT32 L;                                      // Number of (multi-channel) samples in the internal buffer.
    INT32 numChannels;                            // Number of channels in the output. This is only needed for the MATLAB simulation.
    INT32 blockSize;                              // Output blockSize. This is only needed for the MATLAB simulation.
    INT32 stateIndex;                             // Index of the next data sample to output. This circularly wraps
    fract32* value;                               // Output data array
} ModulePeriodicSourceFract32Class;

Variables

Properties

Name

Type

Usage

isHidden

Default value

Range

Units

L

int

const

0

32

Unrestricted

numChannels

int

const

1

1

Unrestricted

blockSize

int

const

1

16

Unrestricted

stateIndex

int

state

1

0

Unrestricted

value

fract32*

parameter

0

[32 x 1]

Unrestricted

Pins

Output Pins

Name: out

Description: audio output

Data type: fract32

MATLAB Usage

File Name: periodic_source_fract32_module.m

...