跳转到内容

自定义乐器音乐 ​

首先,在 Sound/Instrument 文件夹中准备一个音效文件,文件名请使用以下音频ID之一:

如果您要制作一个新的乐器,请使用该乐器的ID(Thing ID)作为音频ID。

游戏内乐器音频ID

|乐器 ID|音频 ID|CN|EN|JP|

|-|-|-|-|-| |trumpet|trumpet_practice|喇叭|trumpet|トランペット| |piano|piano_kanon|三角钢琴|grand piano|グランドピアノ| |piano2|piano_neko|钢琴|piano|ピアノ| |piano_killkill|piano_neko|杀杀钢琴|kill kill piano|キルキルピアノ| |piano_gould|piano_gould|古尔德钢琴|Gould's piano|グールドのピアノノ| |harpsichord|harpsichord_goldberg|大键琴|harpsichord|チェンバロ| |guitar_ash|guitar_caccini|阿什的吉他|Ash's guitar|アッシュのギター| |guitar_efrond|guitar_dusk|埃夫隆德的吉他|Efrond's guitar|エフロンドのギター| |guitar|guitar_air|吉他|guitar|ギター| |harp|harp_komori|竖琴|harp|ハープ| |panty|violin_chaconne|内裤|panty|パンティー| |lute|guitar_sad|鲁特琴|lute|リュート| |shield_lute|guitar_sad|乌德琴|Al'ud|アル・ウード| |recorder|recorder|竖笛|recorder|リコーダー| |flute|flute|长笛|flute|フルート| |taiko|taiko|太鼓|taiko|太鼓| |drum|drum|鼓|drum|鼓| |mokugyo|mokugyo|木鱼|wooden gong|木魚| |tambourine|tambourine|铃鼓|tambourine|タンバリン| |mic|mic_rachmaninoff|麦克风|mic|マイク| |cello|cello_prelude|大提琴|cello|チェロ| |instrument_violin|violin_chaconne|小提琴|violin|ヴァイオリン| |panty|violin_chaconne|小提琴|panty|パンティー| |stradivarius|violin_furusato|斯特拉迪瓦里|stradivarius|ストラディバリウス| |koto|koto|古筝|koto|琴| |sax|trumpet_practice|萨克斯|sax|サックス|

启动游戏一次,为新添加的音效生成一个元数据 JSON 文件,然后退出游戏,编辑该文件,将 "type" 设置为 BGM,并为乐器演奏添加一些 parts(片段):

cello_prelude.json
json
{
    "type": "BGM",
    "id": -1,
    "loop": 0,
    "minInterval": 0.0,
    "chance": 1.0,
    "delay": 0.0,
    "startAt": 0.0,
    "fadeAtStart": false,
    "fadeLength": 0.0,
    "volume": 0.5,
    "volumeAsMtp": false,
    "allowMultiple": true,
    "skipIfPlaying": false,
    "important": false,
    "alwaysPlay": false,
    "noSameSound": false,
    "pitch": 1.0,
    "randomPitch": 0.0,
    "reverbMix": 1.0,
    "spatial": 0.0,
    "bgmDataOptional": {
        "day": false,
        "night": false,
        "fadeIn": 0.1,
        "fadeOut": 0.5,
        "failDuration": 0.7,
        "failPitch": 0.12,
        "pitchDuration": 0.01,
        "parts": [
            {
                "start": 0.0,
                "duration": 4.0
            },
            {
                "start": 4.0,
                "duration": 4.0
            },
            {
                "start": 8.0,
                "duration": 4.0
            },
            {
                "start": 12.0,
                "duration": 4.0
            },
            {
                "start": 16.0,
                "duration": 4.0
            }
        ]
    }
}

每个 part 都有一个以秒为单位的起始时间(start)和持续时间(duration)。在乐器演奏期间,系统将随机选择这些片段进行播放。

This project is an unofficial documentation site and is not affiliated with, endorsed by, or associated with Elin or Lafrontier / Noa. All trademarks are the property of their respective owners.