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