Custom Instrument Tracks โ
First, prepare a sound file in the Sound/Instrument folder, with filename using one of the following Sound ID:
In Game Instruments Sound ID
| Instrument ID | Sound 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 | ใตใใฏใน |
If you are making a new instrument, use instrument's ID (Thing ID) as Sound ID.
Launch the game once to generate a metadata json file for the newly added sound, exit game, edit the metadata json to use "type": BGM, and add some parts for the instrument play:
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
}
]
}
}Each part has a start timestamp and a duration in seconds. Parts will be randomly selected during instrument play.