乐器
8 个节点
本页内容 8
FM 乐器
函数A General MIDI voice on an emulated OPL FM chip.
FM 乐器 -> Instrument
乐器: General Midi Instrument
芯片: OplChipTypeInstrument FmInstrument(
GeneralMidiInstrument instrument = GeneralMidiInstrument.AcousticGrandPiano,
OplChipType chip = OplChipType.Opl3)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 乐器 | General Midi Instrument | Acoustic grand piano | Which voice. |
| 芯片 | OplChipType | Opl3 | OPL2 or OPL3. |
返回
| 乐器 | Instrument |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 乐器
- 所属包
- 音乐
演奏声部
函数Music played on one instrument, whatever instruments it names: a part, ready for the mixer.
演奏声部 -> AudioBuffer
音乐: Music
乐器: Instrument
每分钟拍数: 数字
尾音: 数字
采样率: 整数AudioBuffer PlayPart(
Music music,
Instrument instrument,
double beatsPerMinute = 120,
double tail = 1,
int sampleRate = 44100)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 音乐 | Music | — | The part. |
| 乐器 | Instrument | — | What plays it. |
| 每分钟拍数 | 数字 | 120 | Quarter notes a minute. |
| 尾音 | 数字 | 1 | Seconds after the last note. |
| 采样率 | 整数 | 44100 | Output rate. |
返回
| 音频 | AudioBuffer |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 乐器
- 所属包
- 音乐
拨弦乐器
函数A plucked string: each note a burst of noise ringing at its pitch, dying away high harmonics first, damped when the key lifts.
拨弦乐器 -> Instrument
衰减: 数字
亮度: 数字
释音: 数字
增益: 数字Instrument PluckedInstrument(
double decay = 3,
double brightness = 0.6,
double release = 0.08,
double gain = 0.6)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 衰减 | 数字 | 3 | Seconds for a held note to fall 60 dB. |
| 亮度 | 数字 | 0.6 | 0 to 1: a soft finger to a hard pick; louder notes are brighter. |
| 释音 | 数字 | 0.08 | Seconds a lifted note takes to be damped. |
| 增益 | 数字 | 0.6 | The voice's level. |
返回
| 乐器 | Instrument |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 乐器
- 所属包
- 音乐
预设乐器
函数Any preset of a SoundFont - another bank's variation, or a drum kit, which plays by key.
预设乐器 -> Instrument
预设: Sound Font Preset
音色库: Sound Font BankInstrument PresetInstrument(
SoundFontPreset preset,
SoundFontBank soundFont)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 预设 | Sound Font Preset | — | The preset, from Presets or Find Preset. |
| 音色库 | Sound Font Bank | — | The font it belongs to; the default when not connected. |
返回
| 乐器 | Instrument |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 乐器
- 所属包
- 音乐
采样器乐器
函数A recording played at every pitch: the root note at its own speed, the rest faster or slower.
采样器乐器 -> Instrument
采样: AudioBuffer
根音: 文本
起音: 数字
释音: 数字
循环: 真否Instrument SamplerInstrument(
AudioBuffer sample,
string rootNote = "C4",
double attack = 0.002,
double release = 0.1,
bool loop = false)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 采样 | AudioBuffer | — | The recording. |
| 根音 | 文本 | C4 | The note it sounds at, such as C4. |
| 起音 | 数字 | 0.002 | Seconds to fade in. |
| 释音 | 数字 | 0.1 | Seconds to fade out after each note. |
| 循环 | 真否 | False | Whether a long note loops the recording. |
返回
| 乐器 | Instrument |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 乐器
- 所属包
- 音乐
音色库乐器
函数A General MIDI instrument from a SoundFont.
音色库乐器 -> Instrument
乐器: General Midi Instrument
音色库: Sound Font BankInstrument SoundFontInstrument(
GeneralMidiInstrument instrument = GeneralMidiInstrument.AcousticGrandPiano,
SoundFontBank soundFont)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 乐器 | General Midi Instrument | Acoustic grand piano | Which instrument. |
| 音色库 | Sound Font Bank | — | The font; the default General MIDI one when not connected. |
返回
| 乐器 | Instrument |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 乐器
- 所属包
- 音乐
合成器乐器
函数A subtractive synthesizer: detuned band-limited oscillators through a resonant ladder filter that the envelope opens.
合成器乐器 -> Instrument
波形: Oscillator Shape
失谐: 数字
截止频率: 数字
共振: 数字
滤波包络: 数字
起音: 数字
衰减: 数字
延音: 数字
释音: 数字
增益: 数字Instrument SynthInstrument(
OscillatorShape shape = OscillatorShape.Saw,
double detune = 8,
double cutoff = 600,
double resonance = 0.3,
double filterEnvelope = 2400,
double attack = 0.005,
double decay = 0.25,
double sustain = 0.5,
double release = 0.2,
double gain = 0.4)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 波形 | Oscillator Shape | Saw | The oscillators' waveform. |
| 失谐 | 数字 | 8 | Cents between the two oscillators; 0 for one. |
| 截止频率 | 数字 | 600 | The filter's resting cutoff, hertz. |
| 共振 | 数字 | 0.3 | 0 to 1. |
| 滤波包络 | 数字 | 2400 | Hertz the envelope opens the filter by. |
| 起音 | 数字 | 0.005 | Seconds to rise. |
| 衰减 | 数字 | 0.25 | Seconds to settle. |
| 延音 | 数字 | 0.5 | The level held, 0 to 1. |
| 释音 | 数字 | 0.2 | Seconds to die away. |
| 增益 | 数字 | 0.4 | The voice's level. |
返回
| 乐器 | Instrument |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 乐器
- 所属包
- 音乐
波表乐器
函数A wavetable synthesizer: each note plays the table at its pitch while the envelope sweeps the position, so the timbre moves as the note sounds.
波表乐器 -> Instrument
波表: Wavetable
位置: 数字
扫描: 数字
截止频率: 数字
起音: 数字
衰减: 数字
延音: 数字
释音: 数字
增益: 数字Instrument WavetableInstrument(
Wavetable table,
double position = 0,
double sweep = 0.6,
double cutoff = 6000,
double attack = 0.01,
double decay = 0.4,
double sustain = 0.6,
double release = 0.3,
double gain = 0.4)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 波表 | Wavetable | — | The waves; sine, triangle, saw and square when not connected. |
| 位置 | 数字 | 0 | Where across the waves a note rests, 0 to 1. |
| 扫描 | 数字 | 0.6 | How far the envelope moves the position at its peak. |
| 截止频率 | 数字 | 6000 | The lowpass cutoff, hertz. |
| 起音 | 数字 | 0.01 | Seconds to rise. |
| 衰减 | 数字 | 0.4 | Seconds to settle. |
| 延音 | 数字 | 0.6 | The level held, 0 to 1. |
| 释音 | 数字 | 0.3 | Seconds to die away. |
| 增益 | 数字 | 0.4 | The voice's level. |
返回
| 乐器 | Instrument |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 乐器
- 所属包
- 音乐