dos h0011 musicUrl - cwtickle/danoniplus-docs GitHub Wiki

English | Japanese

Home > Chart settings specification > Music & chart information

| <- dosNo | musicUrl | musicNo -> |

musicUrl

  • Music file locations setting

Usage

|musicUrl=PetitMagie.mp3|
|musicUrl=PetitMagie.js|
|musicUrl=rainbow.mp3$rainbow2.js|
|musicUrl=(..)PetitMagie.mp3|  // Browse to the same directory as the work page

|musicUrl=
0001_rainbow.mp3,0:50-1:00
0002_destiny.ogg,1:12-1:40
0003_J219.js
|

Overview

  1. When specifying the main body of the music file (mp3/wav/ogg)
    • Enter the name of the music file (mp3/wav/ogg). The actual file should be placed in the "music" directory.
    • If you are uploading mp3/wav/ogg files and your server supports ".htaccess", save the following as a ".htaccess" file and put it in the "music" directory. Specify the following.
    • Bolded text should be read according to the server. "." should be replaced by "\.".
SetEnvIf Request_URI "\.(mp3|wav|ogg)$" deny_ref
SetEnvIf Referer "cw7\.sakura\.ne\.jp" !deny_ref
Order Allow,Deny
Allow from all
Deny from env=deny_ref
  1. using base64-converted music data
    • First, prepare base64 encoded data of mp3 data. Specify the value of "musicUrl" as a "js file" or "txt file". In this case, the file should be saved in the following format and placed in the "music" directory.
function musicInit(){
  g_musicdata='base64-converted music data';
}

Additional information

Multiple musics can be specified by "$" or newline delimiter.
The "$" or newline delimiter in "musicTitle" is linked to the "musicNo" number.

When in music selection mode (packageName is set), you can specify the section of BGM to play by connecting them with commas. Specify in the format of x:xx-x:xx. The default is 0:00-0:20. If you specify only the start time, it is automatically set to 20 seconds from the start time.

Related pages

Changelog

Version Change details
v41.2.0 - Support for specifying a section of BGM in music selection mode (second element separated by a comma).
v27.5.0 - Supports newline delimitation as an alternative to "$" delimitation
v10.0.0 - Changed to refer to the same directory as the work page by specifying (..) at the beginning.
v4.0.0 - Changed so that multiple songs can be specified by separating them with "$".
v1.7.0 - Changed so that base64-converted mp3 data (js files) can be specified
v1.0.0
(v0.40.0)
- Initial implementation

| <- dosNo | musicUrl | musicNo -> |

⚠️ **GitHub.com Fallback** ⚠️