元編程參考文件

演奏事件

13 個節點

本頁內容 13

演奏事件

函數

One note as it sounds: when, how long, which key, how hard, on what.

簽名
演奏事件 -> Music Event
    Start: 數字
    Length: 數字
    Key: 整數
    Velocity: 整數
    Instrument: General Midi Instrument
    Percussion: 真否
MusicEvent MusicEvent(
    double Start,
    double Length,
    int Key,
    int Velocity,
    GeneralMidiInstrument Instrument,
    bool Percussion)

參數

名稱型別預設值說明
Start數字—Seconds from the beginning.
Length數字—Seconds it sounds.
Key整數—MIDI key; for drums, the drum.
Velocity整數—MIDI velocity, 1 to 127.
InstrumentGeneral Midi Instrument—The General MIDI instrument; ignored for drums.
Percussion真否—Whether it is played on the drum kit.

返回

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

Deconstruct

函數

此節點沒有文件說明。

簽名
Deconstruct(Music Event: Music Event) -> (Start: 數字, Length: 數字, Key: 整數, Velocity: 整數, Instrument: General Midi Instrument, Percussion: 真否)
void Deconstruct(
    MusicEvent Music Event,
    out double Start,
    out double Length,
    out int Key,
    out int Velocity,
    out GeneralMidiInstrument Instrument,
    out bool Percussion)

參數

名稱型別預設值說明
Music EventMusic Event—

返回

Start數字
Length數字
Key整數
Velocity整數
InstrumentGeneral Midi Instrument
Percussion真否
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
演奏事件
所屬包
音樂

Equals

函數

此節點沒有文件說明。

過載 1/2

簽名
Equals(Music Event: Music Event, obj: 任意) -> 真否
bool Equals(MusicEvent Music Event, object obj)

參數

名稱型別預設值說明
Music EventMusic Event—
obj任意—

返回

結果真否

過載 2/2

簽名
Equals(Music Event: Music Event, other: Music Event) -> 真否
bool Equals(MusicEvent Music Event, MusicEvent other)

參數

名稱型別預設值說明
Music EventMusic Event—
otherMusic Event—

返回

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

Instrument

函數

The General MIDI instrument; ignored for drums.

簽名
Instrument(Music Event: Music Event) -> General Midi Instrument
GeneralMidiInstrument Instrument(MusicEvent Music Event)

參數

名稱型別預設值說明
Music EventMusic Event—

返回

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

Key

函數

MIDI key; for drums, the drum.

簽名
Key(Music Event: Music Event) -> 整數
int Key(MusicEvent Music Event)

參數

名稱型別預設值說明
Music EventMusic Event—

返回

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

Length

函數

Seconds it sounds.

簽名
Length(Music Event: Music Event) -> 數字
double Length(MusicEvent Music Event)

參數

名稱型別預設值說明
Music EventMusic Event—

返回

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

Percussion

函數

Whether it is played on the drum kit.

簽名
Percussion(Music Event: Music Event) -> 真否
bool Percussion(MusicEvent Music Event)

參數

名稱型別預設值說明
Music EventMusic Event—

返回

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

Start

函數

Seconds from the beginning.

簽名
Start(Music Event: Music Event) -> 數字
double Start(MusicEvent Music Event)

參數

名稱型別預設值說明
Music EventMusic Event—

返回

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

Velocity

函數

MIDI velocity, 1 to 127.

簽名
Velocity(Music Event: Music Event) -> 整數
int Velocity(MusicEvent Music Event)

參數

名稱型別預設值說明
Music EventMusic Event—

返回

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

Get Hash Code

函數

此節點沒有文件說明。

簽名
GetHashCode(Music Event: Music Event) -> 整數
int GetHashCode(MusicEvent Music Event)

參數

名稱型別預設值說明
Music EventMusic Event—

返回

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

To String

函數

0.50 s C4 0.25 s v100 AcousticGrandPiano.

簽名
ToString(Music Event: Music Event) -> 文字
string ToString(MusicEvent Music Event)

參數

名稱型別預設值說明
Music EventMusic Event—

返回

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

Op Equality

函數

此節點沒有文件說明。

簽名
op_Equality(left: Music Event, right: Music Event) -> 真否
bool op_Equality(MusicEvent left, MusicEvent right)

參數

名稱型別預設值說明
leftMusic Event—
rightMusic Event—

返回

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

Op Inequality

函數

此節點沒有文件說明。

簽名
op_Inequality(left: Music Event, right: Music Event) -> 真否
bool op_Inequality(MusicEvent left, MusicEvent right)

參數

名稱型別預設值說明
leftMusic Event—
rightMusic Event—

返回

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