Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

AudioEffectPitchShift

Hereda: AudioEffect < Resource < RefCounted < Object

Adds a pitch-shifting audio effect to an audio bus.

Raises or lowers the pitch of the input audio.

Descripción

Allows modulation of pitch without modifying speed. All frequencies can be raised or lowered with minimal effect on transients.

Tutoriales

Propiedades

FFTSize

fft_size

3

int

oversampling

4

float

pitch_scale

1.0


Enumeraciones

enum FFTSize: 🔗

FFTSize FFT_SIZE_256 = 0

Utiliza un búfer de 256 muestras para la transformación rápida de Fourier. La latencia es mínima, pero la estabilidad a lo largo del tiempo es menor.

FFTSize FFT_SIZE_512 = 1

Utiliza un búfer de 512 muestras para la transformación rápida de Fourier. Baja latencia, pero menos estable en el tiempo.

FFTSize FFT_SIZE_1024 = 2

Utiliza un búfer de 1024 muestras para la transformación rápida de Fourier. Esto supone un equilibrio entre latencia y estabilidad a lo largo del tiempo.

FFTSize FFT_SIZE_2048 = 3

Utiliza un búfer de 2048 muestras para la transformación rápida de Fourier. Alta latencia, pero estable en el tiempo.

FFTSize FFT_SIZE_4096 = 4

Utiliza un búfer de 4096 muestras para la transformación rápida de Fourier. La latencia es máxima, pero la estabilidad a lo largo del tiempo es máxima.

FFTSize FFT_SIZE_MAX = 5

Representa el tamaño del enum FFTSize.


Descripciones de Propiedades

FFTSize fft_size = 3 🔗

The size of the Fast Fourier transform buffer. Higher values smooth out the effect over time, but have greater latency. The effects of this higher latency are especially noticeable on audio signals that have sudden amplitude changes.


int oversampling = 4 🔗

  • void set_oversampling(value: int)

  • int get_oversampling()

El factor de sobre muestreo a usar. Altos valores permiten obtener mejor calidad, pero aumenta la demanda de CPU y puede provocar fallas en el audio si el CPU no puede mantenerlo.


float pitch_scale = 1.0 🔗

  • void set_pitch_scale(value: float)

  • float get_pitch_scale()

The pitch scale to use. 1.0 is the default pitch and plays sounds unaffected. pitch_scale can range from 0 (infinitely low pitch, inaudible) to 16 (16 times higher than the initial pitch).