可视化
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. |
| 宽度 | 整数 | 800 | Picture width, in pixels; each column is one moment of the clip. |
| 高度 | 整数 | 300 | Picture height, in pixels. |
| 变换大小 | 整数 | 2048 | Samples 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. |
| 宽度 | 整数 | 800 | Picture width, in pixels. |
| 高度 | 整数 | 300 | Picture 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. |
| 宽度 | 整数 | 800 | Picture width, in pixels. |
| 高度 | 整数 | 240 | Picture height, in pixels. |
返回
| 图像 | Pixel Image |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 可视化
- 所属包
- 音频处理