Overview
Table driven 2d interpolation module. Currently supports only bilinear interpolation
Discussion
This module performs an interpolated 2-dimensional table lookup using a grid of values evenly spaced from -1 to 1. The module currently supports only bilinear interpolation. The input pins specify the X and Y values at which to perform the interpolation. 4 points in the table are used and bilinear interpolation is applied. The X values interpolate along a row and Y values interpolate along a column.
...
At instantiation, specify the total number of points (NPOINTS) in each dimension of the table. The amount of memory allocated to the table equals (NPOINTS * NPOINTS).
Type Definition
Code Block |
---|
typedef struct _ModuleTableInterp2d { ModuleInstanceDescriptor instance; // Common Audio Weaver module instance structure INT32 nPoints; // Number of points in each dimension of the active interpolation table. FLOAT32* table; // 2d Interpolation Lookup table } ModuleTableInterp2dClass; |
Variables
Properties
Name | Type | Usage | isHidden | Default value | Range | Units |
nPoints | int | const | 0 | 5 | Unrestricted | |
table | float* | parameter | 0 | [5 x 5] | Unrestricted |
Pins
Input Pins
Name: inx
Description: index x
...
Sample rate range: Unrestricted
Complex support: Real
Output Pins
Name: out
Description: audio output
Data type: float
MATLAB Usage
File Name: table_interp2d_module.m
...