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 を生成し、その後ゲームを終了します。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.