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.
Checking the stable version of the documentation...
AudioEffectSpectrumAnalyzerInstance
Eredita: AudioEffectInstance < RefCounted < Object
Istanza interrogabile di un AudioEffectSpectrumAnalyzer.
Descrizione
La parte in esecuzione di un AudioEffectSpectrumAnalyzer, che può essere utilizzata per richiedere l'ampiezza di un intervallo di frequenza sul suo bus host.
È possibile ottenere un'istanza di questa classe con AudioServer.get_bus_effect_instance().
Tutorial
Metodi
get_magnitude_for_frequency_range(from_hz: float, to_hz: float, mode: MagnitudeMode = 1) const |
Enumerazioni
enum MagnitudeMode: 🔗
MagnitudeMode MAGNITUDE_AVERAGE = 0
Utilizza il valore medio attraverso l'intervallo di frequenza come ampiezza.
MagnitudeMode MAGNITUDE_MAX = 1
Utilizza il valore massimo dell'intervallo di frequenza come ampiezza.
Descrizioni dei metodi
Vector2 get_magnitude_for_frequency_range(from_hz: float, to_hz: float, mode: MagnitudeMode = 1) const 🔗
Restituisce l'ampiezza delle frequenze da from_hz a to_hz in energia lineare come Vector2. Il componente x del valore restituito rappresenta il canale stereo sinistro, e y rappresenta il canale destro.
mode determina in che modo sarà elaborato l'intervallo di frequenza.