SpatialInterpolatorConstantRotation#
- class acoular.tprocess.SpatialInterpolatorConstantRotation
Bases:
SpatialInterpolatorPerforms spatial linear interpolation for sources undergoing constant rotation.
This class interpolates signals from a rotating sound source based on a constant rotational speed. It retrieves samples from the
sourceand applies interpolation before generating output through theresult()generator.See also
SpatialInterpolatorBase class for spatial interpolation of microphone data.
SpatialInterpolatorRotationSpatial interpolation class for rotating sound sources.
- rotational_speed = Float(0.0)
Rotational speed of the source in revolutions per second (rps). A positive value indicates counterclockwise rotation around the positive z-axis, meaning motion from the x-axis toward the y-axis.
- digest = Property( β¦
Unique identifier for the current configuration of the interpolator. (read-only)
- result(num=1)
Generate interpolated time signal data in blocks of size
num.This generator method continuously processes incoming time signal data while applying rotational interpolation. The phase delay is computed based on the rotational speed and applied to the signal.
- Parameters:
- num
int, optional Number of samples per block. Default is
1.
- num
- Yields:
numpy.ndarrayAn array containing the interpolated time signal samples in blocks of shape (
num,num_channels), wherenum_channelsis inherited from theSpatialInterpolatorbase class. The last block may contain fewer samples if the total number of samples is not a multiple ofnum.