WaveWarp 2.0 Component
      

MATLAB:
MATLAB Control In-The-Loop
|
Functional Description
Real-time processing performed in the MATLAB workspace on control data
streaming from/to WaveWarp on a point-by-point basis (with a user-adjustable
update frequency, via the "Communication" button). The signal is held at its
given level for the time elapsed between successive updates. The data is manipulated by MATLAB according to an arbitrary user-defined MATLAB script evaluated in
the workspace using any combination of variables present in the workspace.
NOTE: This component requires MATLAB (v5.3 or later), available separately from The MathWorks, Inc. (www.mathworks.com)
| Parameter | Purpose |
| "Name of input signal:" dialog |
Enter any valid MATLAB variable name under which the raw signal from WaveWarp is sent to the
MATLAB workspace.
|
| "Name of output signal:" dialog |
Enter any valid MATLAB variable name for the output (i.e. processed) signal in the MATLAB
workspace which is then sent
back to WaveWarp (if the "Pause process" and "Bypass" buttons are not activated).
|
| "Pause process" button |
Toggles the activation state of the MATLAB in-the-loop process. If "Pause" is selected,
the MATLAB variables and the WaveWarp output will retain the values they held at the point in time
at which the button was pressed. In all events, the "Mute" state is respected.
| "Enter desired MATLAB code..." dialog |
Enter any valid MATLAB code to define the process acting on the input signal
to yield the output signal (if the "Pause process" and "Bypass" buttons are not activated).
The MATLAB code can make use of any pre-existing workspace variables
(in addition to the input and output variables). Likewise, any m-functions, scripts, or mex functions
may be used.
|
| "Mute" button | If selected,
sets the amplitude of the output signal in WaveWarp to zero (the MATLAB variables are unaffected).
|
| "Bypass" button | If selected,
the WaveWarp output signal is made identically equal to the input signal (the "Mute" state is ignored).
Also,
the transmission of data from WaveWarp to MATLAB is stopped. The MATLAB variables will retain
their values from the point in time at which "Bypass" was selected.
|
|
Algorithm
N/A
Signal Implementations
| Audio signals | Control signals | Description |
| n/a | Single input single output | Control input sent to MATLAB workspace variable (scalar), processed in MATLAB, then sent back to WaveWarp |
Related components:
Example DrawingBoards illustrating usage:

      
|