元编程参考文档

现场演奏

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
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
现场演奏
所属包
音乐