音樂分析
8 個節點
本頁內容 8
色度
函數How much of each of the twelve pitch classes a clip holds, C to B, folded across every octave and averaged over the clip - its harmony at a glance.
簽名
色度(音訊: AudioBuffer) -> 數字陣列
double[] Chroma(AudioBuffer audio)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 音訊 | AudioBuffer | — | The clip. |
返回
| 色度 | 數字陣列 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 音樂分析
- 所屬包
- 音訊處理
檢測調性
函數The key a clip is most likely in, by correlating its chroma with the Krumhansl-Kessler major and minor key profiles.
簽名
檢測調性(音訊: AudioBuffer) -> (調性: 文字, 置信度: 數字)
string DetectKey(AudioBuffer audio, out double confidence)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 音訊 | AudioBuffer | — | The clip; a few seconds of the music at least. |
返回
| 調性 | 文字 |
| 置信度 | 數字 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 音樂分析
- 所屬包
- 音訊處理
檢測起音
函數When each new note or hit begins, in seconds.
簽名
檢測起音 -> 數字陣列
音訊: AudioBuffer
靈敏度: 數字
間隔: 數字double[] DetectOnsets(
AudioBuffer audio,
double sensitivity = 2,
double separation = 100)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 音訊 | AudioBuffer | — | The clip; several channels are averaged. |
| 靈敏度 | 數字 | 2 | How far above the recent average a rise in spectral flux must be to count; lower finds more. |
| 間隔 | 數字 | 100 | The least time in milliseconds between two onsets. |
返回
| 起音 | 數字陣列 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 音樂分析
- 所屬包
- 音訊處理
檢測音高
函數The one pitch a clip mostly holds: the median of its pitch track.
簽名
檢測音高(音訊: AudioBuffer) -> (頻率: 數字, 音符: 文字)
double DetectPitch(AudioBuffer audio, out string note)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 音訊 | AudioBuffer | — | The clip. |
返回
| 頻率 | 數字 |
| 音符 | 文字 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 音樂分析
- 所屬包
- 音訊處理
估計速度
函數A clip's tempo in beats per minute.
簽名
估計速度(音訊: AudioBuffer) -> 數字
double EstimateTempo(AudioBuffer audio)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 音訊 | AudioBuffer | — | The clip. |
返回
| 速度 | 數字 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 音樂分析
- 所屬包
- 音訊處理
音名
函數The name of the equal-tempered note nearest a frequency, at A4 = 440 Hz.
簽名
音名(頻率: 數字) -> (音符: 文字, 音分: 數字)
string NoteName(double frequency, out double cents)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 頻率 | 數字 | — | The frequency in Hz. |
返回
| 音符 | 文字 |
| 音分 | 數字 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 音樂分析
- 所屬包
- 音訊處理
節拍跟蹤
函數The beats of a clip, in seconds, from a bank of comb filters that lock on to the tempo and its phase.
簽名
節拍跟蹤(音訊: AudioBuffer) -> (節拍: 數字陣列, 速度: 數字)
double[] TrackBeats(AudioBuffer audio, out double tempo)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 音訊 | AudioBuffer | — | The clip; several channels are averaged. |
返回
| 節拍 | 數字陣列 |
| 速度 | 數字 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 音樂分析
- 所屬包
- 音訊處理
音高跟蹤
函數Follows the pitch of a clip that plays one note at a time - a voice, a flute, a bass line - window by window.
簽名
音高跟蹤 -> Pitch Point 陣列
音訊: AudioBuffer
最小值: 數字
最大值: 數字PitchPoint[] TrackPitch(
AudioBuffer audio,
double minimum = 50,
double maximum = 1000)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 音訊 | AudioBuffer | — | The clip; several channels are averaged. |
| 最小值 | 數字 | 50 | The lowest pitch to look for, in Hz. |
| 最大值 | 數字 | 1000 | The highest, in Hz. |
返回
| 音高 | Pitch Point 陣列 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 音樂分析
- 所屬包
- 音訊處理