Skip to content

自定义乐器音乐

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

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

游戏内乐器音频ID
乐器 ID音频 IDCNENJP
trumpettrumpet_practice喇叭trumpetトランペット
pianopiano_kanon三角钢琴grand pianoグランドピアノ
piano2piano_neko钢琴pianoピアノ
piano_killkillpiano_neko杀杀钢琴kill kill pianoキルキルピアノ
piano_gouldpiano_gould古尔德钢琴Gould's pianoグールドのピアノノ
harpsichordharpsichord_goldberg大键琴harpsichordチェンバロ
guitar_ashguitar_caccini阿什的吉他Ash's guitarアッシュのギター
guitar_efrondguitar_dusk埃夫隆德的吉他Efrond's guitarエフロンドのギター
guitarguitar_air吉他guitarギター
harpharp_komori竖琴harpハープ
pantyviolin_chaconne内裤pantyパンティー
luteguitar_sad鲁特琴luteリュート
shield_luteguitar_sad乌德琴Al'udアル・ウード
recorderrecorder竖笛recorderリコーダー
fluteflute长笛fluteフルート
taikotaiko太鼓taiko太鼓
drumdrumdrum
mokugyomokugyo木鱼wooden gong木魚
tambourinetambourine铃鼓tambourineタンバリン
micmic_rachmaninoff麦克风micマイク
cellocello_prelude大提琴celloチェロ
instrument_violinviolin_chaconne小提琴violinヴァイオリン
pantyviolin_chaconne小提琴pantyパンティー
stradivariusviolin_furusato斯特拉迪瓦里stradivariusストラディバリウス
kotokoto古筝koto
saxtrumpet_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.