...
Code Block |
---|
typedef struct _ModuleWaveOneShotPlayerRAMFract32 { ModuleInstanceDescriptor instance; // Common Audio Weaver module instance structure INT32 smoothingTime; // Time constant of the pitch smoothing process INT32 smoothingFactor; // Update rate for smoothing coeffs (per block) FLOAT32 normRate; // Rate of data used to compute the ratio for normalized players FLOAT32 maxRate; // Highest allowed rate of playback that can be specified INT32 NCOFracBits; // Number of least-significant bits for the *fractional* part of the NCO word (word size: 32) INT32 waveLength; // Number of samples in currently loaded file INT32 fIndex; // Current index in the wave file FLOAT32 currentFStep; // Current (smoothed) rate at which audio is read from the input buffer INT32 triggerPrev; // State trigger signal to determine fallingrising edge INT32 triggerLatched; // State trigger denoting player is active INT32 waveSR; // Actual sample rate of the wave file. INT32 waveNumChannels; // Number of channels in the wave file. FLOAT32 scaleFactor; // Scale factor for playback rate FLOAT32 smoothingCoeff; // Smoothing (pitch) coefficient INT32 NCOIntBits; // Number of most-significant bits for the *integer* part of the NCO word (word size: 32). By default: 20 bits FLOAT32 formatF; // Integer value of left-shift by NCOFracBits. Determines the precision of the linear interpolation. FLOAT32 formatI; // Integer value of left-shift by NCOIntBits. Determines the maximum playback rate and the maximum size of a wave file in samples. UINT32 pinID; // Specifies which control pins are available. INT32* waveBuffer; // Data transferred from PC to target DSP via this buffer. } ModuleWaveOneShotPlayerRAMFract32Class; |
Variables
Properties
Name | Type | Usage | isHidden | Default value | Range | Units |
smoothingTime | int | parameter | 0 | 10 | 0:1000 | msec |
smoothingFactor | int | parameter | 0 | 4 | 1:512 | |
normRate | float | const | 0 | 1 | Unrestricted | |
maxRate | float | const | 0 | 2 | Unrestricted | |
NCOFracBits | int | const | 0 | 12 | Unrestricted | |
waveLength | int | derived | 0 | 100400 | Unrestricted | |
fIndex | int | state | 0 | 0 | Unrestricted | |
currentFStep | float | state | 0 | 1 | Unrestricted | |
triggerPrev | int | state | 0 | 0 | Unrestricted | |
triggerLatched | int | state | 0 | 0 | Unrestricted | |
waveSR | int | derived | 1 | 48000 | Unrestricted | |
waveNumChannels | int | derived | 1 | 1 | Unrestricted | |
scaleFactor | float | derived | 1 | 1 | Unrestricted | |
smoothingCoeff | float | derived | 1 | 0.1248 | Unrestricted | |
NCOIntBits | int | derived | 1 | 20 | Unrestricted | |
formatF | float | derived | 1 | 4096 | Unrestricted | |
formatI | float | derived | 1 | 524300 | Unrestricted | |
pinID | uint | const | 1 | 1 | Unrestricted | |
waveBuffer | int* | parameter | 0 | [50209 x 1] | Unrestricted |
Pins
Input Pins
Name: trigger
...