unreal.SoundVisualizationStatics

class unreal.SoundVisualizationStatics(outer=None, name='None')

Bases: unreal.BlueprintFunctionLibrary

Sound Visualization Statics

C++ Source:

  • Plugin: SoundVisualizations

  • Module: SoundVisualizations

  • File: SoundVisualizationStatics.h

classmethod calculate_frequency_spectrum(sound_wave, channel, start_time, time_length, spectrum_width)

Calculates the frequency spectrum for a window of time for the SoundWave

Parameters
  • sound_wave (SoundWave) – The wave to generate the spectrum for

  • channel (int32) – The channel of the sound to calculate. Specify 0 to combine channels together

  • start_time (float) – The beginning of the window to calculate the spectrum of

  • time_length (float) – The duration of the window to calculate the spectrum of

  • spectrum_width (int32) – How wide the spectrum is. The total samples in the window are divided evenly across the spectrum width.

Returns

OutSpectrum - The resulting spectrum

out_spectrum (Array(float)):

Return type

Array(float)

classmethod get_amplitude(sound_wave, channel, start_time, time_length, amplitude_buckets)

Gathers the amplitude of the wave data for a window of time for the SoundWave

Parameters
  • sound_wave (SoundWave) – The wave to get samples from

  • channel (int32) – The channel of the sound to get. Specify 0 to combine channels together

  • start_time (float) – The beginning of the window to get the amplitude from

  • time_length (float) – The duration of the window to get the amplitude from

  • amplitude_buckets (int32) – How many samples to divide the data in to. The amplitude is averaged from the wave samples for each bucket

Returns

OutAmplitudes - The resulting amplitudes

out_amplitudes (Array(float)):

Return type

Array(float)