元編程參考文件

時間與音高

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
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
時間與音高
所屬包
音訊處理