分析
11 個節點
本頁內容 11
聲道數
函數How many channels a clip has: 1 for mono, 2 for stereo.
聲道數(音訊: AudioBuffer) -> 整數
int ChannelCount(AudioBuffer audio)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 音訊 | AudioBuffer | — | The clip to read. |
返回
| 聲道數 | 整數 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 分析
- 所屬包
- 音訊處理
描述
函數A one-line description of a clip: its length, sample rate, channels and peak level.
描述(音訊: AudioBuffer) -> 文字
string Describe(AudioBuffer audio)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 音訊 | AudioBuffer | — | The clip to describe. |
返回
| 描述 | 文字 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 分析
- 所屬包
- 音訊處理
主頻率
函數The frequency a clip holds most of - for a single note, its pitch.
主頻率(音訊: AudioBuffer) -> 數字
double DominantFrequency(AudioBuffer audio)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 音訊 | AudioBuffer | — | The clip to analyse. |
返回
| 頻率 | 數字 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 分析
- 所屬包
- 音訊處理
時長
函數A clip's length.
時長(音訊: AudioBuffer) -> 數字
double Duration(AudioBuffer audio)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 音訊 | AudioBuffer | — | The clip to measure. |
返回
| 秒數 | 數字 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 分析
- 所屬包
- 音訊處理
峰值
函數The loudest sample in a clip, from 0 (silent) to 1 (full scale).
峰值(音訊: AudioBuffer) -> 數字
double Peak(AudioBuffer audio)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 音訊 | AudioBuffer | — | The clip to measure. |
返回
| 峰值 | 數字 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 分析
- 所屬包
- 音訊處理
峰值分貝
函數The loudest sample in a clip, in decibels below full scale.
峰值分貝(音訊: AudioBuffer) -> 數字
double PeakDecibels(AudioBuffer audio)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 音訊 | AudioBuffer | — | The clip to measure. |
返回
| 分貝 | 數字 |
備註
A silent clip reads -120 dB rather than minus infinity.
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 分析
- 所屬包
- 音訊處理
均方根
函數A clip's average level - the root of the mean of the squared samples - which follows how loud a clip sounds far better than its peak does.
均方根(音訊: AudioBuffer) -> 數字
double Rms(AudioBuffer audio)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 音訊 | AudioBuffer | — | The clip to measure. |
返回
| 均方根 | 數字 |
備註
A full-scale sine reads about 0.707; a full-scale square wave reads 1.
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 分析
- 所屬包
- 音訊處理
均方根分貝
函數A clip's average level in decibels below full scale.
均方根分貝(音訊: AudioBuffer) -> 數字
double RmsDecibels(AudioBuffer audio)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 音訊 | AudioBuffer | — | The clip to measure. |
返回
| 分貝 | 數字 |
備註
A full-scale sine reads about -3 dB. A silent clip reads -120 dB.
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 分析
- 所屬包
- 音訊處理
取樣率
函數How many samples a clip has per second, per channel.
取樣率(音訊: AudioBuffer) -> 整數
int SampleRate(AudioBuffer audio)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 音訊 | AudioBuffer | — | The clip to read. |
返回
| 取樣率 | 整數 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 分析
- 所屬包
- 音訊處理
頻譜質心
函數The centre of gravity of a clip's spectrum - a single number for how bright it sounds.
頻譜質心(音訊: AudioBuffer) -> 數字
double SpectralCentroid(AudioBuffer audio)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 音訊 | AudioBuffer | — | The clip to analyse. |
返回
| 頻率 | 數字 |
備註
A dull, bassy clip has a low centroid and a bright, hissy one a high centroid; a filter that darkens a sound moves it down.
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 分析
- 所屬包
- 音訊處理
頻譜
函數How much of each frequency a clip holds, averaged over its whole length.
頻譜(音訊: AudioBuffer, 變換大小: 整數) -> Audio Spectrum
AudioSpectrum Spectrum(
AudioBuffer audio,
int transformSize = 8192)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 音訊 | AudioBuffer | — | The clip to analyse. |
| 變換大小 | 整數 | 8192 | Samples per transform: a power of two from 256 to 65536. Bigger resolves closer frequencies. |
返回
| 頻譜 | Audio Spectrum |
備註
The clip is cut into overlapping stretches of Transform Size samples, each is windowed and transformed, and their power is averaged - so a steady tone reads at its true level however long the clip is, and noise settles into a smooth floor instead of a jagged one.
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 分析
- 所屬包
- 音訊處理