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.

AudioEffectDelay

Inherits: AudioEffect < Resource < RefCounted < Object

为音频总线添加延迟音频效果。在一段时间后回放输入信号。

两个节拍延迟和反馈选项。

Description

在一段时间后回放输入信号。延迟的信号可以多次回放,以产生重复、衰减的回声。延迟效果的范围是从微弱回声效果到明显的以前声音和新声音的混合。

Tutorials

Properties

float

dry

1.0

bool

feedback_active

false

float

feedback_delay_ms

340.0

float

feedback_level_db

-6.0

float

feedback_lowpass

16000.0

bool

tap1_active

true

float

tap1_delay_ms

250.0

float

tap1_level_db

-6.0

float

tap1_pan

0.2

bool

tap2_active

true

float

tap2_delay_ms

500.0

float

tap2_level_db

-12.0

float

tap2_pan

-0.4


Property Descriptions

float dry = 1.0

原始声音的输出百分比。为 0 时,只输出延迟的声音。取值范围为 0 到 1。


bool feedback_active = false

  • void set_feedback_active ( bool value )

  • bool is_feedback_active ( )

如果为 true,则启用反馈。


float feedback_delay_ms = 340.0

  • void set_feedback_delay_ms ( float value )

  • float get_feedback_delay_ms ( )

反馈延迟时间,单位为毫秒。


float feedback_level_db = -6.0

  • void set_feedback_level_db ( float value )

  • float get_feedback_level_db ( )

Sound level for feedback.


float feedback_lowpass = 16000.0

  • void set_feedback_lowpass ( float value )

  • float get_feedback_lowpass ( )

反馈的低通滤波器,单位为 Hz。低于此值的频率会被源信号过滤掉。


bool tap1_active = true

  • void set_tap1_active ( bool value )

  • bool is_tap1_active ( )

If true, the first tap will be enabled.


float tap1_delay_ms = 250.0

  • void set_tap1_delay_ms ( float value )

  • float get_tap1_delay_ms ( )

First tap delay time in milliseconds.


float tap1_level_db = -6.0

  • void set_tap1_level_db ( float value )

  • float get_tap1_level_db ( )

Sound level for the first tap.


float tap1_pan = 0.2

  • void set_tap1_pan ( float value )

  • float get_tap1_pan ( )

Pan position for the first tap. Value can range from -1 (fully left) to 1 (fully right).


bool tap2_active = true

  • void set_tap2_active ( bool value )

  • bool is_tap2_active ( )

If true, the second tap will be enabled.


float tap2_delay_ms = 500.0

  • void set_tap2_delay_ms ( float value )

  • float get_tap2_delay_ms ( )

Second tap delay time in milliseconds.


float tap2_level_db = -12.0

  • void set_tap2_level_db ( float value )

  • float get_tap2_level_db ( )

Sound level for the second tap.


float tap2_pan = -0.4

  • void set_tap2_pan ( float value )

  • float get_tap2_pan ( )

Pan position for the second tap. Value can range from -1 (fully left) to 1 (fully right).