元編程參考文件

動態處理

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.

返回

真峰值數字
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
動態處理
所屬包
音訊處理