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

Eredita: AudioEffect < Resource < RefCounted < Object

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

Raises or lowers the pitch of the input audio.

Descrizione

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

Tutorial

Proprietà

FFTSize

fft_size

3

int

oversampling

4

float

pitch_scale

1.0


Enumerazioni

enum FFTSize: 🔗

FFTSize FFT_SIZE_256 = 0

Utilizza un memoria buffer di 256 campioni per la trasformata di Fourier veloce. Latenza più bassa, ma meno stabile nel tempo.

FFTSize FFT_SIZE_512 = 1

Utilizza un memoria buffer di 512 campioni per la trasformata di Fourier veloce. Latenza bassa, ma meno stabile nel tempo.

FFTSize FFT_SIZE_1024 = 2

Utilizza un memoria buffer di 1024 campioni per la trasformata di Fourier veloce. Questo è un compromesso tra la latenza e la stabilita nel tempo.

FFTSize FFT_SIZE_2048 = 3

Utilizza un memoria buffer di 2048 campioni per la trasformata di Fourier veloce. Latenza alta, ma stabile nel tempo.

FFTSize FFT_SIZE_4096 = 4

Utilizza un memoria buffer di 4096 campioni per la trasformata di Fourier veloce. Latenza più alta, ma la più stabile nel tempo.

FFTSize FFT_SIZE_MAX = 5

Rappresenta la dimensione dell'enumerazione FFTSize.


Descrizioni delle proprietà

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()

Il fattore di sovracampionamento da usare. I valori più elevati risultano una migliore qualità, ma sono più faticosi sulla CPU e possono causare audio scoppiettante se la CPU non riesce a tenere il passo.


float pitch_scale = 1.0 🔗

  • void set_pitch_scale(value: float)

  • float get_pitch_scale()

La scala del tono da utilizzare. 1.0 è il tono predefinito e riproduce i suoni senza alterazioni. pitch_scale può variare da 0.0 (tono infinitamente basso, impercettibile) a 16 (16 volte più alto del tono iniziale).