元編程參考文件

樂器

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.

參數

名稱型別預設值說明
InstrumentInstrument—
notesIReadOnlyList<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.

參數

名稱型別預設值說明
InstrumentInstrument—
musicMusic—
beatsPerMinute數字120
tail數字1
sampleRate整數44100

返回

結果AudioBuffer
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
樂器
所屬包
音樂