元編程參考文件

音色庫

8 個節點

本頁內容 8

Default SoundFont

函數

The General MIDI SoundFont that ships with Divooka: GeneralUser GS, 287 presets covering every General MIDI instrument and drum kit.

簽名
DefaultSoundFont() -> Sound Font Bank
SoundFontBank DefaultSoundFont()

返回

SoundFontSound Font Bank

備註

Set SYNTHSIZER_SOUNDFONT_FILE to use another font everywhere one is not given.

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

描述音色庫

函數

A font's name, preset count, size and the text it stores about itself: author, copyright, comments.

簽名
描述音色庫(音色庫: Sound Font Bank) -> 文字
string DescribeSoundFont(SoundFontBank soundFont)

參數

名稱型別預設值說明
音色庫Sound Font Bank—The font; the default one when not connected.

返回

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

查詢預設

函數

The first preset whose name contains the given text, ignoring case - "piano", "strings", "kit".

簽名
查詢預設 -> Sound Font Preset
    音色庫: Sound Font Bank
    名稱: 文字
SoundFontPreset FindPreset(
    SoundFontBank soundFont,
    string name = "piano")

參數

名稱型別預設值說明
音色庫Sound Font Bank—The font; the default one when not connected.
名稱文字pianoPart of the preset's name.

返回

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

載入音色庫

函數

Opens a SoundFont 2 file.

簽名
載入音色庫(路徑: 文字) -> Sound Font Bank
SoundFontBank LoadSoundFont(string path)

參數

名稱型別預設值說明
路徑文字—An .sf2 file.

返回

音色庫Sound Font Bank

備註

A file is read once and shared while it is unchanged, so loading the same font on every run costs nothing after the first.

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

從位元組載入音色庫

函數

Reads a SoundFont that is already in memory - an asset, a download, an attachment.

簽名
從位元組載入音色庫 -> Sound Font Bank
    位元組: 位元組陣列
    名稱: 文字
SoundFontBank LoadSoundFontBytes(byte[] bytes, string name = "")

參數

名稱型別預設值說明
位元組位元組陣列—The whole .sf2 file.
名稱文字—What to call it; the name stored in the file when empty.

返回

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

預設列表

函數

Every preset in a font, by bank and program.

簽名
預設列表(音色庫: Sound Font Bank) -> Sound Font Preset 陣列
SoundFontPreset[] Presets(SoundFontBank soundFont)

參數

名稱型別預設值說明
音色庫Sound Font Bank—The font; the default one when not connected.

返回

預設Sound Font Preset 陣列
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
音色庫
所屬包
音樂

儲存音色庫

函數

Saves a font as an .sf2 file, creating the folder if it is not there.

簽名
儲存音色庫(音色庫: Sound Font Bank, 路徑: 文字) -> 文字
string SaveSoundFont(SoundFontBank soundFont, string path)

參數

名稱型別預設值說明
音色庫Sound Font Bank—The font to save.
路徑文字—Where to write it.

返回

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

精簡音色庫

函數

A smaller font holding only the chosen presets and the instruments and samples they use - for shipping the three sounds a piece plays instead of the whole bank.

簽名
精簡音色庫 -> Sound Font Bank
    音色庫: Sound Font Bank
    預設: 文字陣列
SoundFontBank TrimSoundFont(
    SoundFontBank soundFont,
    string[] presets)

參數

名稱型別預設值說明
音色庫Sound Font Bank—The font to trim; the default one when not connected.
預設文字陣列—The presets to keep, written bank:program, such as 0:0 for the piano and 128:0 for the standard drum kit.

返回

音色庫Sound Font Bank

備註

Stereo partners of kept samples are kept with them. Every kept preset sounds exactly as it did in the original.

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