元編程參考文件

視覺化

3 個節點

本頁內容 3

繪製頻譜圖

函數

A spectrogram: time runs left to right, frequency bottom to top, and brightness is level - a picture of how a sound's spectrum changes.

簽名
繪製頻譜圖 -> Pixel Image
    音訊: AudioBuffer
    寬度: 整數
    高度: 整數
    變換大小: 整數
PixelImage DrawSpectrogram(
    AudioBuffer audio,
    int width = 800,
    int height = 300,
    int transformSize = 2048)

參數

名稱型別預設值說明
音訊AudioBuffer—The clip to draw.
寬度整數800Picture width, in pixels; each column is one moment of the clip.
高度整數300Picture height, in pixels.
變換大小整數2048Samples per transform: a power of two from 256 to 16384. Bigger is sharper in frequency and blurrier in time.

返回

影像Pixel Image

備註

A steady tone is a horizontal line, a sweep is a rising one, a drum hit a vertical stripe and noise a haze.

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

繪製頻譜

函數

A spectrum as a picture: level against frequency.

簽名
繪製頻譜 -> Pixel Image
    頻譜: Audio Spectrum
    寬度: 整數
    高度: 整數
PixelImage DrawSpectrum(
    AudioSpectrum spectrum,
    int width = 800,
    int height = 300)

參數

名稱型別預設值說明
頻譜Audio Spectrum—The spectrum to draw, from the Spectrum node.
寬度整數800Picture width, in pixels.
高度整數300Picture height, in pixels.

返回

影像Pixel Image

備註

Faint vertical lines mark 100 Hz, 1 kHz and 10 kHz; faint horizontal ones every 20 dB.

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

繪製波形

函數

A clip's waveform: its level over time, one lane per channel.

簽名
繪製波形 -> Pixel Image
    音訊: AudioBuffer
    寬度: 整數
    高度: 整數
PixelImage DrawWaveform(
    AudioBuffer audio,
    int width = 800,
    int height = 240)

參數

名稱型別預設值說明
音訊AudioBuffer—The clip to draw.
寬度整數800Picture width, in pixels.
高度整數240Picture height, in pixels.

返回

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