樂器
1 個節點
本頁內容 1
Play
函數過載 1/2
簽名
Play -> AudioBuffer
Instrument: Instrument
notes: IReadOnlyList<Music Event>
sampleRate: 整數
tail: 數字AudioBuffer Play(
Instrument Instrument,
IReadOnlyList<MusicEvent> notes,
int sampleRate,
double tail)Plays performed notes - times in seconds - into a stereo clip that runs Tail seconds past the last note's end.
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Instrument | Instrument | — | |
| notes | IReadOnlyList<Music Event> | — | |
| sampleRate | 整數 | — | |
| tail | 數字 | — |
返回
| 結果 | AudioBuffer |
過載 2/2
簽名
Play -> AudioBuffer
Instrument: Instrument
music: Music
beatsPerMinute: 數字
tail: 數字
sampleRate: 整數AudioBuffer Play(
Instrument Instrument,
Music music,
double beatsPerMinute = 120,
double tail = 1,
int sampleRate = 44100)Plays music at a tempo.
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Instrument | Instrument | — | |
| music | Music | — | |
| beatsPerMinute | 數字 | 120 | |
| tail | 數字 | 1 | |
| sampleRate | 整數 | 44100 |
返回
| 結果 | AudioBuffer |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 樂器
- 所屬包
- 音樂