元编程参考文档

可视化

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