元編程參考文件

效果

9 個節點

本頁內容 9

帶通

函數

Keeps a band of frequencies around a centre and turns down the rest - a telephone, a megaphone.

簽名
帶通(音訊: AudioBuffer, 中心: 數字, 共振: 數字) -> AudioBuffer
AudioBuffer BandPass(
    AudioBuffer audio,
    double center = 1000,
    double resonance = 2)

參數

名稱型別預設值說明
音訊AudioBuffer—The clip to filter.
中心數字1000The middle of the band that is kept, in hertz.
共振數字2How narrow the band is, from 0.5 (wide) to 20 (very narrow).

返回

音訊AudioBuffer

備註

The centre frequency passes at its own level whatever the resonance; resonance only decides how narrow the band is.

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

降低位深

函數

Reduces a clip's resolution and sample rate on purpose, for the gritty sound of an early games console.

簽名
降低位深 -> AudioBuffer
    音訊: AudioBuffer
    位數: 整數
    取樣率: 整數
AudioBuffer BitCrush(
    AudioBuffer audio,
    int bits = 6,
    int sampleRate = 8000)

參數

名稱型別預設值說明
音訊AudioBuffer—The clip to crush.
位數整數6How many bits each sample keeps, from 2 (very harsh) to 16 (untouched).
取樣率整數8000The rate the clip is held to, in samples per second; it cannot be above the clip's own.

返回

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

失真

函數

Overdrives a clip so its peaks round off - from warm saturation to a fuzzy distortion.

簽名
失真(音訊: AudioBuffer, 驅動: 數字) -> AudioBuffer
AudioBuffer Distort(AudioBuffer audio, double drive = 4)

參數

名稱型別預設值說明
音訊AudioBuffer—The clip to distort.
驅動數字4How hard the clip is pushed, from about 1 (gentle) to 50 (fuzz).

返回

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

回聲

函數

Repeats a clip back to itself after a delay, each repeat quieter than the last.

簽名
回聲 -> AudioBuffer
    音訊: AudioBuffer
    延遲: 數字
    反饋: 數字
    混合比例: 數字
AudioBuffer Echo(
    AudioBuffer audio,
    double delay = 0.25,
    double feedback = 0.4,
    double mix = 0.4)

參數

名稱型別預設值說明
音訊AudioBuffer—The clip to echo.
延遲數字0.25Time between repeats, in seconds.
反饋數字0.4How much of each repeat comes back again, from 0 (one repeat) to 0.95 (a long trail).
混合比例數字0.4How loud the repeats are against the original, from 0 (none) to 1 (repeats only).

返回

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

高通

函數

Keeps the frequencies above a cutoff and turns down everything below it - a thinner, brighter sound, like a small radio.

簽名
高通 -> AudioBuffer
    音訊: AudioBuffer
    截止頻率: 數字
    共振: 數字
AudioBuffer HighPass(
    AudioBuffer audio,
    double cutoff = 1000,
    double resonance = 0.707)

參數

名稱型別預設值說明
音訊AudioBuffer—The clip to filter.
截止頻率數字1000The frequency where the filter starts to bite, in hertz.
共振數字0.707How sharply the filter peaks at the cutoff, from 0.5 to 20; 0.707 is flat, higher values ring.

返回

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

低通

函數

Keeps the frequencies below a cutoff and turns down everything above it - a duller, warmer, more distant sound.

簽名
低通 -> AudioBuffer
    音訊: AudioBuffer
    截止頻率: 數字
    共振: 數字
AudioBuffer LowPass(
    AudioBuffer audio,
    double cutoff = 1000,
    double resonance = 0.707)

參數

名稱型別預設值說明
音訊AudioBuffer—The clip to filter.
截止頻率數字1000The frequency where the filter starts to bite, in hertz.
共振數字0.707How sharply the filter peaks at the cutoff, from 0.5 to 20; 0.707 is flat, higher values ring.

返回

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

陷波

函數

Cuts out a narrow band of frequencies around a centre and leaves the rest - for removing a hum or a whistle.

簽名
陷波(音訊: AudioBuffer, 中心: 數字, 共振: 數字) -> AudioBuffer
AudioBuffer Notch(
    AudioBuffer audio,
    double center = 1000,
    double resonance = 2)

參數

名稱型別預設值說明
音訊AudioBuffer—The clip to filter.
中心數字1000The frequency to remove, in hertz.
共振數字2How narrow the cut is, from 0.5 (wide) to 20 (very narrow).

返回

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

混響

函數

Puts a clip in a room: a wash of reflections that makes it sound further away and less dry.

簽名
混響 -> AudioBuffer
    音訊: AudioBuffer
    房間大小: 數字
    阻尼: 數字
    混合比例: 數字
AudioBuffer Reverb(
    AudioBuffer audio,
    double roomSize = 0.8,
    double damping = 0.35,
    double mix = 0.3)

參數

名稱型別預設值說明
音訊AudioBuffer—The clip to place.
房間大小數字0.8How long the room rings, from 0 (a cupboard) to 0.98 (a cathedral).
阻尼數字0.35How quickly the high frequencies die in the room, from 0 (hard walls) to 0.99 (soft furnishings).
混合比例數字0.3How much of the room is heard against the original, from 0 to 1.

返回

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

環形調製

函數

Multiplies a clip by a tone, turning it metallic - at low frequencies a voice becomes a robot's.

簽名
環形調製(音訊: AudioBuffer, 頻率: 數字) -> AudioBuffer
AudioBuffer RingModulate(
    AudioBuffer audio,
    double frequency = 50)

參數

名稱型別預設值說明
音訊AudioBuffer—The clip to modulate.
頻率數字50The modulating tone, in hertz; 30 to 80 for a robot voice, a few hundred for a bell-like clang.

返回

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