Table of Contents

Class AudioEffectSpectrumAnalyzer

Audio effect that can be used for real-time audio visualizations.

Inheritance
AudioEffectSpectrumAnalyzer

Remarks

This audio effect does not affect sound output, but can be used for real-time audio visualizations.

This resource configures an AudioEffectSpectrumAnalyzerInstance, which performs the actual analysis at runtime. An instance can be obtained with AudioServer.get_bus_effect_instance.

See also AudioStreamGenerator for procedurally generating sounds.

See Also

Properties

buffer_length

The length of the buffer to keep (in seconds). Higher values keep data around for longer, but require more memory.

var buffer_length : float = 2.0

Property Value

float

Remarks

  • void set_buffer_length(float value)
  • float get_buffer_length

fft_size

The size of the Fast Fourier transform buffer. Higher values smooth out the spectrum analysis over time, but have greater latency. The effects of this higher latency are especially noticeable with sudden amplitude changes.

var fft_size : int = 2

Property Value

int

Remarks

  • void set_fft_size(int value)
  • int get_fft_size

tap_back_pos

var tap_back_pos : float = 0.01

Property Value

float

Remarks

  • void set_tap_back_pos(float value)
  • float get_tap_back_pos