Overview
Solo and mute N channel signals
Discussion
Solo and Mute control module. This modules allows you to listen to individual channels ("solo") or mute them. When the second argument NUMPINS is 1, then the solo and mute control is applied to each individual channel. Otherwise the solo and mute control is applied to each individual input pin as a whole. The array .isMuted is used for mute control and the array .isSolo is for solo control. When both are selected, mute has higher priority over solo. In all cases, the array length is updated by the prebuild function.
...
By default, the inspector for the module has the control checkboxes organized in a vertical stack. By setting the optional third argument TRANSPOSE = 1 turns the control into a horizontal stack.
Type Definition
Code Block |
---|
typedef struct _ModuleSoloMuteFract32 { ModuleInstanceDescriptor instance; // Common Audio Weaver module instance structure FLOAT32 smoothingTime; // Time constant of the smoothing process INT32 numControls; // Number of individual mute controls fract32 smoothingCoeff; // Smoothing coefficient. INT32* isSolo; // Boolean that controls pin solo. One per each pin. INT32* isMuted; // Boolean that controls pin muted or unmuted. One per each pin. fract32* currentGain; // Instantaneous gain applied by the module. This is also the starting gain of the module. fract32* gain; // Target gain. } ModuleSoloMuteFract32Class; |
Variables
Properties
Name | Type | Usage | isHidden | Default value | Range | Units |
smoothingTime | float | parameter | 0 | 10 | 0:1000 | msec |
numControls | int | const | 1 | 1 | Unrestricted | |
smoothingCoeff | fract32 | derived | 1 | 0.002081 | Unrestricted | |
isSolo | int* | parameter | 0 | [1 x 1] | 0:1 | |
isMuted | int* | parameter | 0 | [1 x 1] | 0:1 | |
currentGain | fract32* | state | 1 | [1 x 1] | 0:1 | linear |
gain | fract32* | derived | 1 | [1 x 1] | 0:1 | linear |
Pins
Input Pins
Name: in
Description: audio input
...
Sample rate range: Unrestricted
Complex support: Real
Output Pins
Name: out
Description: audio output
Data type: fract32
MATLAB Usage
File Name: solo_mute_fract32_module.m
...