元編程參考文件

現場演奏

9 個節點

本頁內容 9

新增現場音軌

函數

Adds a track to a live session: another pattern on another instrument, in time with the rest from the next cycle.

簽名
新增現場音軌 -> Live Session
    會話: Live Session
    節奏型: Pattern
    樂器: Instrument
    名稱: 文字
    增益: 數字
LiveSession AddTrack(
    LiveSession session,
    Pattern pattern,
    Instrument instrument,
    string name = "bass",
    double gain = 1)

參數

名稱型別預設值說明
會話Live Session—The session.
節奏型Pattern—What the track plays.
樂器Instrument—What plays it; the default SoundFont's piano when not connected.
名稱文字bassWhat to call the track, for Update Live.
增益數字1The track's level.

返回

會話Live Session
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
現場演奏
所屬包
音樂

現場錄音

函數

Starts recording what a live session plays, from the next block.

簽名
現場錄音(會話: Live Session) -> Live Session
LiveSession Record(LiveSession session)

參數

名稱型別預設值說明
會話Live Session—The session.

返回

會話Live Session
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
現場演奏
所屬包
音樂

渲染現場演奏

函數

Runs the live engine offline: a pattern on an instrument for some cycles, rendered exactly as the device would hear it, into a clip.

簽名
渲染現場演奏 -> AudioBuffer
    節奏型: Pattern
    樂器: Instrument
    每分鐘拍數: 數字
    迴圈數: 整數
    每迴圈拍數: 數字
    尾音: 數字
    取樣率: 整數
AudioBuffer Render(
    Pattern pattern,
    Instrument instrument,
    double beatsPerMinute = 120,
    int cycles = 4,
    double cycleBeats = 4,
    double tail = 1,
    int sampleRate = 44100)

參數

名稱型別預設值說明
節奏型Pattern—What to play.
樂器Instrument—What plays it; the default SoundFont's piano when not connected.
每分鐘拍數數字120The tempo.
迴圈數整數4How many cycles.
每迴圈拍數數字4Beats a cycle lasts.
尾音數字1Seconds after the last cycle, for the sound to ring out.
取樣率整數44100Output rate.

返回

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

設定現場速度

函數

Changes a live session's tempo while it plays.

簽名
設定現場速度 -> Live Session
    會話: Live Session
    每分鐘拍數: 數字
LiveSession SetTempo(
    LiveSession session,
    double beatsPerMinute = 120)

參數

名稱型別預設值說明
會話Live Session—The session.
每分鐘拍數數字120The new tempo.

返回

會話Live Session
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
現場演奏
所屬包
音樂

設定現場音軌電平

函數

Sets one track's level while it plays; 0 mutes it.

簽名
設定現場音軌電平 -> Live Session
    會話: Live Session
    音軌: 文字
    增益: 數字
LiveSession SetTrackGain(
    LiveSession session,
    string track = "",
    double gain = 1)

參數

名稱型別預設值說明
會話Live Session—The session.
音軌文字—Which track; the first when empty.
增益數字1The level.

返回

會話Live Session
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
現場演奏
所屬包
音樂

開始現場演奏

函數

Starts playing a pattern on the audio device, looping until it is stopped.

簽名
開始現場演奏 -> Live Session
    節奏型: Pattern
    樂器: Instrument
    每分鐘拍數: 數字
    每迴圈拍數: 數字
LiveSession Start(
    Pattern pattern,
    Instrument instrument,
    double beatsPerMinute = 120,
    double cycleBeats = 4)

參數

名稱型別預設值說明
節奏型Pattern—What to play.
樂器Instrument—What plays it; the default SoundFont's piano when not connected. FM instruments play offline only.
每分鐘拍數數字120The tempo.
每迴圈拍數數字4Beats a cycle of the pattern lasts; 4 is a bar of 4/4.

返回

會話Live Session
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
現場演奏
所屬包
音樂

停止現場演奏

函數

Stops a live session.

簽名
停止現場演奏(會話: Live Session)
void Stop(LiveSession session)

參數

名稱型別預設值說明
會話Live Session—The session.
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
現場演奏
所屬包
音樂

停止錄音

函數

Stops recording a live session and gives back what was heard since Record Live, as a clip for the mixer or a file.

簽名
停止錄音(會話: Live Session) -> AudioBuffer
AudioBuffer StopRecording(LiveSession session)

參數

名稱型別預設值說明
會話Live Session—The session.

返回

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

更新現場演奏

函數

Swaps what a track of a live session plays without stopping it, on the same beat grid: at the start of the next cycle unless told otherwise, so a phrase is never cut off halfway.

簽名
更新現場演奏 -> Live Session
    會話: Live Session
    節奏型: Pattern
    音軌: 文字
    量化: Live Quantize
LiveSession Update(
    LiveSession session,
    Pattern pattern,
    string track = "",
    LiveQuantize quantize = LiveQuantize.Cycle)

參數

名稱型別預設值說明
會話Live Session—The session.
節奏型Pattern—The new pattern.
音軌文字—Which track; the first when empty.
量化Live QuantizeCycleWhen the new pattern takes over.

返回

會話Live Session
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
現場演奏
所屬包
音樂