SpatialInterpolatorConstantRotation#

class acoular.tprocess.SpatialInterpolatorConstantRotation

Bases: SpatialInterpolator

Performs 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 source and applies interpolation before generating output through the result() generator.

See also

SpatialInterpolator

Base class for spatial interpolation of microphone data.

SpatialInterpolatorRotation

Spatial 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:
numint, optional

Number of samples per block. Default is 1.

Yields:
numpy.ndarray

An array containing the interpolated time signal samples in blocks of shape (num, num_channels), where num_channels is inherited from the SpatialInterpolator base class. The last block may contain fewer samples if the total number of samples is not a multiple of num.