Versions Compared

Key

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

Overview

Sawtooth wave generator (no anti-aliasing)

Type Definition

Code Block
typedef struct _ModuleSawtoothFract32
{
    ModuleInstanceDescriptor instance;            // Common Audio Weaver module instance structure
    FLOAT32 freq;                                 // Frequency of the sawtooth generator.
    fract32 phase;                                // The stored phase of the sawtooth module.
    fract32 phaseIncrement;                       // The amount that the oscillator phase is incremented for each output sample.
} ModuleSawtoothFract32Class;

Variables

Properties

Name

Type

Usage

isHidden

Default value

Range

Units

freq

float

parameter

0

1000

0.01:24000

Hz

phase

fract32

state

1

0

Unrestricted

phaseIncrement

fract32

parameter

1

0.02083

Unrestricted

Pins

Output Pins

Name: out

Description: output data

Data type: fract32

MATLAB Usage

File Name: sawtooth_fract32_module.m

...