Polybench® Reference
Re-samples the input signal and puts out the signal with another sample frequency

Resampler

Overview

The Resampler changes the sampling frequency of a signal, by resampling it at a higher or lower frequency. Resampling is performed without interpolation.

You can connect any kind of signal to the Resampler.

Operator ports

Input S: Any sample type. The connection is not limited to one type of signal.

Output S_t: Any sample type. The connection is not limited to one type of signal.

Properties

Find more information about changing properties here: link

ResampleFrequency
type: Real value
Resample frequency (must be > 0). The maximum value depends on your computer (be careful)


Caption
type: Word or phrase
The name of the object in the project. This name must not contain '.' or '$' characters.

Every object has the Caption property. This property is very important, because it is the name by which Polybench recognizes this object.
It is allowed to give multiple objects the same name, as long as the objects are of the same type. In that case, a reference to this caption includes all the objects with the same caption.
In Polybench, every object can be addressed by an Address specifier, which starts with the dollar sign, for example: $My Page.My Object. 'My Page' would be the Caption of a page, and 'My Object' the Caption of an object on that page.

Documentation
type: See description
Optional documentation of this object.

It is good practice to write in short notes why you have used this object, and why its properties are set the way they are set. If this object is an operator, the Documentation text is displayed below the operator symbol.

Variable Parameters

Find more information about Variable Parameters here: link

ResampleFrequency
type: See description
Resample frequency (must be > 0). The maximum value depends on your computer (be careful)

Details

If the resample frequency is greater than the input frequency, then the last sample is put out multiple times, in such a way that the input samples are spreaded over the new output signal statistically equally.

If the resample frequency is less than the input frequency, then samples are left out of the input signal, in such a way that the input samples are spread over the new output signal statistically equally.

The Resampler in effect produces a new signal and is therefore interpreted as signal source by Polybench. This means that if you require the resampled signal to mix with another signal that has not been resampled by the same Resampler, that the signals then need to be synchronized by a Synchronizer operator (see link).

Please note that if you change the resample frequency in the properties, that this value is only updated at the output if the system is running.