元编程参考文档

动态处理

6 个节点

本页内容 6

压缩

函数

Evens out a clip's level: whatever rises above the threshold is turned down by the ratio, through a soft knee, with the attack and release a studio compressor has.

签名
压缩 -> AudioBuffer
    音频: AudioBuffer
    阈值: 数字
    比率: 数字
    拐点: 数字
    起音: 数字
    释音: 数字
    补偿增益: 数字
AudioBuffer Compress(
    AudioBuffer audio,
    double threshold = -18,
    double ratio = 4,
    double knee = 6,
    double attack = 10,
    double release = 150,
    double makeup = 0)

参数

名称类型默认值说明
音频AudioBuffer—The clip to compress.
阈值数字-18Level in dB above which compression starts.
比率数字4How hard: 4 turns every 4 dB over the threshold into 1.
拐点数字6Width in dB of the soft knee around the threshold.
起音数字10Milliseconds to clamp down on a rise.
释音数字150Milliseconds to let go.
补偿增益数字0Gain in dB added afterwards to win back level.

返回

音频AudioBuffer

备注

The channels are linked - one gain for all - so a stereo image does not wander. The look-ahead is compensated, so the result lines up with the input.

所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
动态处理
所属包
音频处理

闪避

函数

Turns one clip down while another plays - music under a voice-over, the classic radio duck.

签名
闪避 -> AudioBuffer
    音频: AudioBuffer
    控制: AudioBuffer
    阈值: 数字
    衰减量: 数字
    起音: 数字
    释音: 数字
AudioBuffer Duck(
    AudioBuffer audio,
    AudioBuffer control,
    double threshold = -30,
    double reduction = 12,
    double attack = 50,
    double release = 200)

参数

名称类型默认值说明
音频AudioBuffer—The clip to turn down.
控制AudioBuffer—The clip whose sound triggers it, such as the voice; heard over the first clip's length.
阈值数字-30How loud in dB the control must be to duck.
衰减量数字12How far in dB to turn the clip down.
起音数字50Milliseconds to fall.
释音数字200Milliseconds to come back.

返回

音频AudioBuffer
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
动态处理
所属包
音频处理

限幅

函数

Keeps a clip under a ceiling without audible clipping: a look-ahead limiter that turns the level down just before a peak would cross it.

签名
限幅 -> AudioBuffer
    音频: AudioBuffer
    上限: 数字
    前瞻: 数字
    释音: 数字
AudioBuffer Limit(
    AudioBuffer audio,
    double ceiling = -1,
    double lookahead = 5,
    double release = 50)

参数

名称类型默认值说明
音频AudioBuffer—The clip to limit.
上限数字-1The highest level in dB the clip may reach; -1 leaves room for a codec's overshoot.
前瞻数字5Milliseconds the limiter sees ahead.
释音数字50Milliseconds to let go after a peak.

返回

音频AudioBuffer
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
动态处理
所属包
音频处理

响度

函数

A clip's integrated loudness in LUFS, measured as ITU-R BS.1770 does: K-weighted, gated, over the whole clip.

签名
响度(音频: AudioBuffer) -> 数字
double Loudness(AudioBuffer audio)

参数

名称类型默认值说明
音频AudioBuffer—The clip to measure.

返回

响度数字

备注

Streaming services aim at about -14 LUFS, broadcast at -23 (EBU R128) or -24 (ATSC A/85). A clip too short or too quiet to measure gives negative infinity.

所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
动态处理
所属包
音频处理

响度归一化

函数

Brings a clip to a target integrated loudness, as a streaming service or broadcaster would.

签名
响度归一化 -> AudioBuffer
    音频: AudioBuffer
    目标: 数字
    最大增益: 数字
AudioBuffer NormalizeLoudness(
    AudioBuffer audio,
    double target = -14,
    double maximumGain = 30)

参数

名称类型默认值说明
音频AudioBuffer—The clip to adjust.
目标数字-14The loudness to reach, in LUFS.
最大增益数字30The most gain in dB it may add, so silence is not turned into noise.

返回

音频AudioBuffer

备注

This only changes gain; follow it with Limit if the gain pushes peaks past full scale.

所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
动态处理
所属包
音频处理

真峰值

函数

A clip's true peak in dBTP: the highest the waveform reaches between samples as well as on them, by 4× band-limited reconstruction, which is what a converter will actually play.

签名
真峰值(音频: AudioBuffer) -> 数字
double TruePeak(AudioBuffer audio)

参数

名称类型默认值说明
音频AudioBuffer—The clip to measure.

返回

真峰值数字
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
动态处理
所属包
音频处理