#include <ShiftInput.h>
Inherits Marsyas::MarSystem.
Private Attributes | |
| MarControlPtr | ctrl_clean_ |
| Internal pointer to the clean MarControl. | |
| MarControlPtr | ctrl_highCleanLimit_ |
| Internal pointer to the highCleanLimit MarControl. | |
| MarControlPtr | ctrl_lowCleanLimit_ |
| Internal pointer to the lowCleanLimit MarControl. | |
| MarControlPtr | ctrl_reset_ |
| Internal pointer to the reset MarControl. | |
| MarControlPtr | ctrl_winSize_ |
| Internal pointer to the winSize MarControl. | |
| mrs_natural | hopSize_ |
| Internal cache for the hop size value. | |
| realvec | outSavedData_ |
| Internal sample buffer. | |
| mrs_natural | winSize_ |
| Internal cache for the window size value. | |
The ShiftInput MarSystem is useful for generating slices from an input source in a sliding window fashion with certain window size and hop size.
The hop size between the overlapping windows is defined by the number of input samples of the ShiftInput MarSystem, which is in turn automatically determined from the number of output samples of the preceding source or MarSystem. A typical example is a SoundFileSource MarSystem followed by a ShiftInput MarSystem. To set the hop size of the sliding window in ShiftInput, one has to set the onSamples control of the SoundFileSource.
The window size can be set with the winSize control.
If the hop size is smaller than the window size, there will be overlap between successive output slices. If the hop size is larger than the window size, the output slices will be trimmed versions of the input slices.
Controls:
SoundFileSourceHopper for generating an audio slices from a SoundFileSource in a sliding/hopping window fashion.
Definition at line 70 of file ShiftInput.h.
1.5.6