Click here to return to the Sources page
The Sweep block generates a sinewave that sweeps from a start frequency to an end frequency. The sweep rate is determined by the number of sweep steps and cycles per step. In case of the linear sweep, the frequency sweep is linear across time whereas in the case of log sweep input, the frequency sweeps logarithmically cross time. The following variants of the module are available:
Enter the desired start and stop frequency and step size using the edit controls:
Name | ADSP-214xx | ADSP-215xx/ADSP-SC5xx | ADAU145x/1456x |
---|---|---|---|
—————————————- | —————————————— | ————————————————-- | ——————————————- |
LinearSweep and variants | Not Supported | Not Supported | Sample |
LogSweep and variants | Not Supported | Not Supported | Sample |
Name | Type | Description |
---|---|---|
———————————-- | —————————————-- | ———————-- |
Output0 | Audio | Output channel 0 |
GUI Parameter Name | Default Value | Range | Function Description |
---|---|---|---|
—————————————- | ———————- | —————————— | —————————————- |
StartFrequency | 20 | 0 to 0.5* sample rate | Sets the initial frequency for sinetone sweep |
StopFrequency | 20000 | 0 to 0.5* sample rate | Sets the final/end frequency for sinetone sweep |
Steps | 4 | 2 to 48000 | Number of increments in the range defined by start and stop frequency |
Cycles | 5 | 1 to 500 | Number of cycles to be rendered of a particular frequency |
Enable | false | false(off)/true(on) | Switch on and off the sine sweep |
Parameter Name | Description | ADAU145x/146x |
---|---|---|
—————————-- | ————————————————————————————————— | —————————————————-- |
start_freq | normalised value of start frequency | FixPoint8d24 |
stop_freq | normalised value of end frequency | FixPoint8d24 |
numcycles_per_step | Gain, the sinetone wave to be multiplied | Integer32 |
numsteps | number of steps between start and stop | Integer32 |
freq_increment | frequency increment defined by range and numsteps | FixPoint8d24 |
ison | Enabled/Disabled the sweep | FixPoint8d24 |
start_freq= StartFrequency/(FS/2)
freq_increment= EndFrequency/(FS/2)
numsteps= Steps
numcycles_per_step = Cycles
freq_increment = (StartFrequency-StopFrequency)/(Steps-1)
ison = Sweep
FS, Where fs is frequency and FS is the sampling rate