元编程参考文档

时间与音高

4 个节点

本页内容 4

采集噪声样本

函数

Learns what a clip's background noise sounds like, from a stretch of it with nothing else - room tone, hiss, hum - for Reduce Noise to take out.

签名
采集噪声样本(噪声: AudioBuffer) -> Noise Profile Data
NoiseProfileData CaptureNoiseProfile(AudioBuffer noise)

参数

名称类型默认值说明
噪声AudioBuffer—A clip of the noise alone; half a second or more.

返回

噪声样本Noise Profile Data
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
时间与音高
所属包
音频处理

移调

函数

Raises or lowers a clip's pitch without changing its length.

签名
移调 -> AudioBuffer
    音频: AudioBuffer
    半音数: 数字
    窗口大小: 整数
AudioBuffer PitchShift(
    AudioBuffer audio,
    double semitones = 3,
    int windowSize = 2048)

参数

名称类型默认值说明
音频AudioBuffer—The clip to shift.
半音数数字3How far: 12 is an octave up, -7 a fifth down; -24 to 24.
窗口大小整数2048The analysis window in samples, a power of two.

返回

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

降噪

函数

Takes a captured noise out of a clip by spectral subtraction, the way the Audio Editor's noise reduction does.

签名
降噪 -> AudioBuffer
    音频: AudioBuffer
    噪声样本: Noise Profile Data
    衰减量: 数字
    灵敏度: 数字
AudioBuffer ReduceNoise(
    AudioBuffer audio,
    NoiseProfileData profile,
    double reduction = 12,
    double sensitivity = 6)

参数

名称类型默认值说明
音频AudioBuffer—The noisy clip.
噪声样本Noise Profile Data—The noise, from Capture Noise Profile on a clip at the same rate and channel count.
衰减量数字12How far in dB to turn the noise down.
灵敏度数字6How far in dB above the noise a sound must be to be kept untouched.

返回

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

时间伸缩

函数

Makes a clip longer or shorter without changing its pitch.

签名
时间伸缩 -> AudioBuffer
    音频: AudioBuffer
    倍数: 数字
    窗口大小: 整数
AudioBuffer TimeStretch(
    AudioBuffer audio,
    double factor = 1.5,
    int windowSize = 2048)

参数

名称类型默认值说明
音频AudioBuffer—The clip to stretch.
倍数数字1.5The new length over the old: 2 is twice as long, 0.5 half; 0.25 to 4.
窗口大小整数2048The analysis window in samples, a power of two: larger keeps tones smoother, smaller keeps drums sharper.

返回

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