Skip to main content
Skip table of contents

CfftFract32

Overview

Forward and inverse FFT of complex data

Discussion

Computes the forward or inverse FFT of complex data. The parameter .dir control whether a forward (= +1) or inverse (= -1) FFT is computed. The module supports multichannel signals.

Type Definition

CODE
typedef struct _ModuleCfftFract32
{
    ModuleInstanceDescriptor instance;            // Common Audio Weaver module instance structure
    INT32 dir;                                    // Transform direction. Forward = 1. Inverse = -1
    fract32 onebyBlockSize;                       // value of 1/BlockSize in fractional value
} ModuleCfftFract32Class;

Variables

Properties

Name

Type

Usage

isHidden

Default value

Range

Units

dir

int

const

0

1

-1, 1

onebyBlockSize

fract32

derived

0

0.5

Unrestricted

Pins

Input Pins

Name: in

Description: Complex input

Data type: fract32

Channel range: Unrestricted

Block size range: 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536

Sample rate range: Unrestricted

Complex support: Complex

Output Pins

Name: out

Description: Complex output

Data type: fract32

Scratch Pins

Channel count: 1

Block size: 2

Sample rate: 48000

MATLAB Usage

File Name: cfft_fract32_module.m

CODE
 M=cfft_fract32_module(NAME, ISFFT)
 Computes the forward or inverse FFT of complex input data.  The input
 block size must be a power of 2.  The module supports multichannel
 signals.  Arguments:
    NAME - name of the module.
    ISFFT :  1 for calculating FFT (default)
             -1 for calculating IFFT

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.