现场演奏
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. |
| 名称 | 文本 | bass | What to call the track, for Update Live. |
| 增益 | 数字 | 1 | The 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. |
| 每分钟拍数 | 数字 | 120 | The tempo. |
| 循环数 | 整数 | 4 | How many cycles. |
| 每循环拍数 | 数字 | 4 | Beats a cycle lasts. |
| 尾音 | 数字 | 1 | Seconds after the last cycle, for the sound to ring out. |
| 采样率 | 整数 | 44100 | Output 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. |
| 每分钟拍数 | 数字 | 120 | The 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. |
| 增益 | 数字 | 1 | The 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. |
| 每分钟拍数 | 数字 | 120 | The tempo. |
| 每循环拍数 | 数字 | 4 | Beats 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 QuantizeLiveSession 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 Quantize | Cycle | When the new pattern takes over. |
返回
| 会话 | Live Session |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 现场演奏
- 所属包
- 音乐