元编程参考文档

效果

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
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
效果
所属包
音频处理