treble_tsdk.results.moving_ir

Classes

class treble_tsdk.results.moving_ir.MovingIR
__init__(data_loader: IRDataLoader, source: Source, receiver: Receiver, simulation_type: SimulationType)
convolve_with_audio_signal(audio: AudioSignal, device: DeviceObj | None = None, speed: float = 1.0, receiver_orientation: TrajectoryOrientation | Rotation | None = None) ConvolvedAudioSignal

Convolve the moving IR with an audio signal using the specified auralization method.

This method uses MovingAuralizer internally to handle the crossfading between IRs at different positions along the trajectory based on the specified speed.

Parameters:
  • audio – The audio signal to convolve with the moving IR.

  • device – The device to render the spatial IRs for. If None, the spatial IRs will be used.

  • speed – The speed of movement in units per second.

  • method – The auralization method to use. One of “method1”, “method2”, or “hybrid”.

  • receiver_orientation – The orientation of the receiver. If None, it look along the x axis.

Returns:

A ConvolvedAudioSignal containing the auralized output.

get_ir_type() ReceiverType

Gets the type of the IR of each point in the moving source/receiver.

get_mono_ir(point_index: int) MonoIR
get_spatial_ir(point_index: int) SpatialIR
get_trajectory() Trajectory
plot(model=None)

Plot the moving impulse response with interactive visualization.

Creates an interactive Dash app with tabs for different plot types (Impulse Response, Frequency Response, Phase Response, EDC) and a slider to select which point along the trajectory to display.

Parameters:

model – Optional ModelObj. When provided, the right panel shows the 3D model view (like the trajectory plot) with the moving source/receiver position synced to the slider.

property point_count: int