Skip to main content
Skip table of contents

Square

Overview

Squares samples

Discussion

Computes the square of all input samples using the math library. This module support an aribtrary number of channels, and each channel is squared individually.

Type Definition

CODE
typedef struct _ModuleSquare
{
    ModuleInstanceDescriptor instance;            // Common Audio Weaver module instance structure
} ModuleSquareClass;

Pins

Input Pins

Name: in

Description: Input signal

Data type: float

Channel range: Unrestricted

Block size range: Unrestricted

Sample rate range: Unrestricted

Complex support: Real

Output Pins

Name: out

Description: Output signal

Data type: float

MATLAB Usage

File Name: square_module.m

CODE
 M=square_module(NAME)
 Creates an Audio Weaver module that squares all samples. The module 
 supports an arbitrary number of channels and each channel is individually
 squared. 
 
 Arguments:
    NAME - name of the module.

JavaScript errors detected

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

If this problem persists, please contact our support.