元編程參考文件

音符

12 個節點

本頁內容 12

音符

函數

此節點沒有文件說明。

過載 1/2

簽名
音符 -> F Note
    音高: F Note Pitch 陣列
    基礎音級: 整數
    力度: 整數
    延長時值: 整數
FNote FNote(
    FNotePitch[] pitches,
    int baseStep,
    int velocity,
    int extendedDuration)

參數

名稱型別預設值說明
音高F Note Pitch 陣列—A single MIDI note or a chord of notes, or a vocal
基礎音級整數—Duration: 1, 2, 4, 8, 16, 32
力度整數—The MIDI velocity range is from 0–127, with 127 being the loudest
延長時值整數—How many additional 1/2 durations should we extend from Duration of this note

返回

音符F Note

過載 2/2

簽名
音符 -> F Note
    音高: F Note Pitch 陣列
    相對小節時長: 數字
    力度: 整數
FNote FNote(
    FNotePitch[] pitches,
    double relativeMeasureDuration,
    int velocity)

參數

名稱型別預設值說明
音高F Note Pitch 陣列—
相對小節時長數字—
力度整數—

返回

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

相等

函數

此節點沒有文件說明。

過載 1/2

簽名
相等(F Note: F Note, 物件: 任意) -> 真否
bool Equals(FNote F Note, object obj)

參數

名稱型別預設值說明
F NoteF Note—
物件任意—

返回

結果真否

過載 2/2

簽名
相等(F Note: F Note, 另一個: F Note) -> 真否
bool Equals(FNote F Note, FNote other)

參數

名稱型別預設值說明
F NoteF Note—
另一個F Note—

返回

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

基礎音級

函數

The step size that corresponds to one such note.

簽名
基礎音級(F Note: F Note) -> 數字
double BaseStep(FNote F Note)

參數

名稱型別預設值說明
F NoteF Note—

返回

結果數字

備註

Example: for FNote.MeasureFractionDuration of `0.25`, this is 4, meaning for a quarter note beat size, this note is one beat.

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

小節分數時值

函數

Durations of note in fractional number of (any) beat size.
I.e. "how much of a (base) beat is this note"?
I.e. "How big are we in the 4/4 scale relative to that 1 (which is 4 times 1/4)?" A.a in a 4/4 measure, each 4th note is actually a 1/4, i.e. 0.25. It's 0.25 of that entire measure.

簽名
小節分數時值(F Note: F Note) -> 數字
double MeasureFractionDuration(FNote F Note)

參數

名稱型別預設值說明
F NoteF Note—

返回

結果數字

備註

Not fully supported yet, e.g. Types.ScoreSheetMIDIReader may not work.

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

取得音高

函數

此節點沒有文件說明。

簽名
取得音高(F Note: F Note) -> F Note Pitch 陣列
FNotePitch[] Pitches(FNote F Note)

參數

名稱型別預設值說明
F NoteF Note—

返回

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

取得力度

函數

此節點沒有文件說明。

簽名
取得力度(F Note: F Note) -> 整數
int Velocity(FNote F Note)

參數

名稱型別預設值說明
F NoteF Note—

返回

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

取得時值單位

函數

此節點沒有文件說明。

簽名
取得時值單位(F Note: F Note, 分母: 數字) -> 整數
int GetDurationUnits(FNote F Note, double denominator)

參數

名稱型別預設值說明
F NoteF Note—
分母數字—

返回

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

取得雜湊碼

函數

此節點沒有文件說明。

簽名
取得雜湊碼(F Note: F Note) -> 整數
int GetHashCode(FNote F Note)

參數

名稱型別預設值說明
F NoteF Note—

返回

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

取得相對音階

函數

How many (reference) beats is this note. E.g. if reference is an 8, and we are a 4, then we are twice the reference.

簽名
取得相對音階(F Note: F Note, 參考步長: 整數) -> 數字
double GetRelativeScale(FNote F Note, int referenceStepSize)

參數

名稱型別預設值說明
F NoteF Note—
參考步長整數—

返回

結果數字

備註

If reference step is equal to our own FNote.BaseStep, then it will be 1 beat.

(Remark) The math is all weird because an 8 is actually smaller than a 4 in music.

所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
事件 例程 狀態機狀態
宣告於
音符
所屬包
音樂

轉為文字

函數

此節點沒有文件說明。

簽名
轉為文字(F Note: F Note) -> 文字
string ToString(FNote F Note)

參數

名稱型別預設值說明
F NoteF Note—

返回

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

相等運算

函數

此節點沒有文件說明。

簽名
相等運算(左側: F Note, 右側: F Note) -> 真否
bool op_Equality(FNote left, FNote right)

參數

名稱型別預設值說明
左側F Note—
右側F Note—

返回

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

不等運算

函數

此節點沒有文件說明。

簽名
不等運算(左側: F Note, 右側: F Note) -> 真否
bool op_Inequality(FNote left, FNote right)

參數

名稱型別預設值說明
左側F Note—
右側F Note—

返回

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