diff --git a/shared_sheets.json b/shared_sheets.json index de3d274..2ed98e8 100644 --- a/shared_sheets.json +++ b/shared_sheets.json @@ -1,5 +1,21 @@ { "sheets": [{ + "name": "Graze the Roof", + "file": "Graze_the_Roof.txt", + "author": "酷安@夏川丶呇", + "desc": "酷安酷友@夏川丶呇分享乐谱 Graze the Roof\n游戏《植物大战僵尸》(Plants vs. Zombies Soundtrack) 屋顶关卡背景音乐", + "bpm" : 520, + "suggested_instrument": 1, + "pitchLevel": 8 + }, { + "name": "Only My Railgun", + "file": "Only_my_railgun.txt", + "author": "酷安@夏川丶呇", + "desc": "酷安酷友@夏川丶呇分享乐谱 Only My Railgun (TVアニメ「とある科学の超電磁砲」OP1テーマ) \n你指尖跳跃的电光,是我此生不灭的信仰", + "bpm" : 440, + "suggested_instrument": 1, + "pitchLevel": 0 + }, { "name": "生命之名(いのちの名前)", "file": "生命之名(いのちの名前).txt", "author": "酷安@你们很有趣呢", diff --git a/shared_sheets/Graze_the_Roof.txt b/shared_sheets/Graze_the_Roof.txt new file mode 100644 index 0000000..034b775 Binary files /dev/null and b/shared_sheets/Graze_the_Roof.txt differ diff --git a/shared_sheets/Only_my_railgun.txt b/shared_sheets/Only_my_railgun.txt new file mode 100644 index 0000000..9c080bf Binary files /dev/null and b/shared_sheets/Only_my_railgun.txt differ diff --git a/source/SkyAutoplayer.js b/source/SkyAutoplayer.js index 6db07c2..84d9e86 100644 --- a/source/SkyAutoplayer.js +++ b/source/SkyAutoplayer.js @@ -91,15 +91,13 @@ sheetmgr = { } return stringBuffer.toString(); } (7)) + ".txt"); - var writable = files.open(sheet, "w", sheetmgr.encoding); var parsed; - writable.write(parsed = (function() { + files.write(sheet, parsed = (function() { var data = eval(body.string())[0]; listener({status:2}); data.author = author; return "[" + JSON.stringify(data) + "]"; - }())); - writable.close(); + }()), sheetmgr.encoding); parsed = eval(parsed)[0]; //parsed.songNotes = sheetmgr.parseSongNote(parsed.songNotes); parsed.fileName = sheet;