23 Commits
v14 ... v15

Author SHA1 Message Date
StageGuard
c0976b30c1 Update version 15 2020-10-01 00:09:46 +08:00
StageGuard
65fdecb9be Update version 15 2020-10-01 00:09:10 +08:00
StageGuard
2a16af252f Add sheet attribute. 2020-09-28 21:56:15 +08:00
StageGuard
cd967af5c8 Upload user shared sheets 2020-09-28 21:18:36 +08:00
StageGuard
df9ddff4e4 Upload user shared sheets 2020-09-27 12:06:45 +08:00
StageGuard
8f26c9e1de Upload user shared sheets 2020-09-25 10:10:02 +08:00
StageGuard
b88515f4f2 Upload user shared sheets 2020-09-24 21:34:27 +08:00
StageGuard
46b88f4c6f Upload user shared sheets 2020-09-24 21:32:56 +08:00
StageGuard
03af82818a Upgrade user agreements 2020-09-23 16:25:01 +08:00
StageGuard
9f5a6ab58e Upgrade user agreements 2020-09-23 16:24:35 +08:00
StageGuard
f468dabb89 Update README.md 2020-09-23 16:20:06 +08:00
StageGuard
bb570e1b5c Upload user shared sheets 2020-09-22 08:01:30 +08:00
StageGuard
e57d7d5ad3 Add English instruction for usage 2020-09-21 21:27:41 +08:00
StageGuard
b3d3f77ba5 Update README.md 2020-09-21 07:03:06 +08:00
StageGuard
8abf823182 Upload user shared sheets 2020-09-18 19:49:58 +08:00
StageGuard
064a8fbe9a fix stupid bug 2020-09-14 20:48:11 +08:00
StageGuard
c43edd8549 fix stupid bug 2020-09-14 20:47:27 +08:00
StageGuard
eca5b79934 fix stupid bug 2020-09-14 20:42:40 +08:00
StageGuard
4e14a0d2c9 fix user infomation 2020-09-13 22:22:30 +08:00
StageGuard
f38adb904f Upload user shared sheets 2020-09-13 22:13:52 +08:00
StageGuard
44aab3f525 Upload user shared sheets 2020-09-13 22:12:16 +08:00
StageGuard
1383f66726 Upload user shared sheets 2020-09-13 22:09:46 +08:00
StageGuard
715e21a420 Fix contributor list 2020-09-13 21:56:15 +08:00
22 changed files with 695 additions and 348 deletions

View File

@@ -14,11 +14,15 @@ A script to play Sheets generated by SkyStudio automatically in game Sky with ac
* 自动更新及时修复BUG无需担心版本过时问题。
* ...
## 使用
## 使用(Usage)
<br>①Auto.js`4.1.1 Alpha2 (461)`版本下载: [`Ericwyn/Auto.js/releases@V4.1.1.Alpha2`](https://github.com/Ericwyn/Auto.js/releases/tag/V4.1.1.Alpha2)
<br>Download `Auto.js`[`Ericwyn/Auto.js/releases@V4.1.1.Alpha2`](https://github.com/Ericwyn/Auto.js/releases/tag/V4.1.1.Alpha2)
<br>手机请下载`autoJs-V4.1.1.Alpha2-common-armeabi-v7a-debug.apk`
<br>Please download `autoJs-V4.1.1.Alpha2-common-armeabi-v7a-debug.apk`
<br>②为Auto.js开启**无障碍服务**和**悬浮窗权限**。
<br>Turn on **Accessibility service** and allow **Display pop-up window** permission for Auto.js
<br>③在Auto.js中新建一个脚本并粘贴以下代码并运行
<br>Create a new script file in Auto.js. Copy the code below and run!
```javascript
"ui";
"use strict";
@@ -45,8 +49,10 @@ emitter.on('evaluate', function(s){
在Auto.js版本`4.1.1 Alpha2 (461)`中测试通过,不保证其他版本的兼容性(取决于其他版本相对于此版本的API是否有`breaking changes`)
## 清除数据
SkyAutoPlayer在使用过程中会产生本地数据存储若想全部删除请使用Auto.js执行以下代码
## 清除数据(Clear data)
`SkyAutoPlayerScript`在使用过程中会产生本地数据存储若想全部删除请使用Auto.js执行以下代码
<br>`SkyAutoPlayerScript` will store some data while using, if you want to delete all data, please run the code below in Auto.js
```
storages.remove("StageGuard:SkyAutoPlayer:Config");
files.removeDir("/storage/emulated/0/Documents/SkyAutoPlayer/");
@@ -71,6 +77,8 @@ files.removeDir("/storage/emulated/0/Documents/SkyAutoPlayer/");
"bpm" : 320,
//暂时没用
"suggested_instrument": 1,
//乐谱键位数(8键或15键)
"keyCount": 15,
//乐谱音高
"pitchLevel": 0
}
@@ -79,6 +87,8 @@ files.removeDir("/storage/emulated/0/Documents/SkyAutoPlayer/");
修改完成后,申请`Pull Request`等待merge即可。
> 请注意:在申请`Pull Request`之前请确保你的SkyAutoPlayerScript仓库已同步至最新以免出现意外问题
或通过发送乐谱到邮箱[beamiscool@qq.com](mailto:beamiscool@qq.com)
<br>
# 注意
@@ -89,6 +99,7 @@ files.removeDir("/storage/emulated/0/Documents/SkyAutoPlayer/");
3. 本脚本仅可用作娱乐用途,请不要在正规场合使用本脚本(请自行体会\"正规场合\"是什么意思)若因使用本脚本所出现了一些不友好的问题与脚本作者StageGuard无关。
4. 脚本只能给你一时满足感而不能使你进步,请适当使用,只有真正的技术才是王道,才能使你感到快乐。
5. 本脚本只是一个"弹奏机"并不内置曲谱请在GooglePlay下载[SkyStudio](https://play.google.com/store/apps/details?id=com.Maple.SkyStudio)编谱。
6. 本脚本不会增加解密乐谱功能,包括但不限于**加密的SkyStudio乐谱****加密的JS**等,也不接受加密乐谱的共享。
# 贡献
欢迎任何人贡献本项目包括但不限于Pull RequestIssueNew feature request
@@ -109,8 +120,9 @@ files.removeDir("/storage/emulated/0/Documents/SkyAutoPlayer/");
酷安[@社区最弱萌新](http://www.coolapk.com/u/3291313)<br>
酷安[@九方辰](http://www.coolapk.com/u/634078)<br>
酷安[@北极马可罗尼](http://www.coolapk.com/u/463478)<br>
酷安[@UTF16](http://www.coolapk.com/u/3751911)<br>
酷安[@]()<br>
哔哩哔哩[@UTF16](https://space.bilibili.com/623364258)<br>
酷安[@Syngenex](http://www.coolapk.com/u/1093421)<br>
Twitter[Phoebe@huunhut1217](https://mobile.twitter.com/huunhut1217)<br>
<br>
# 图标来源
@@ -138,4 +150,4 @@ files.removeDir("/storage/emulated/0/Documents/SkyAutoPlayer/");
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>
```
```

View File

@@ -1 +1 @@
13979f81ae3a4e415446100d56b9499592d89b8d
65fdecb9be4821eaa1ef42a71598c250e64a3de5

View File

@@ -1,147 +1,318 @@
{
"sheets": [{
"name": "恋爱循环",
"file": "恋爱循环.txt",
"author": "酷安@Syngenex",
"desc": "酷安酷友<a href=http://www.coolapk.com/u/1093421>@Syngenex<a/>分享乐谱 恋爱循环",
"bpm" : 480,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 0
}, {
"name": "微微",
"file": "微微.txt",
"author": "酷安@Syngenex",
"desc": "酷安酷友<a href=http://www.coolapk.com/u/1093421>@Syngenex<a/>分享乐谱 微微",
"bpm" : 204,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 0
}, {
"name": "Dream It Possible",
"file": "Dream_It_Possible.txt",
"author": "酷安@Syngenex",
"desc": "酷安酷友<a href=http://www.coolapk.com/u/1093421>@Syngenex<a/>分享乐谱 Dream It Possible\n华为加油",
"bpm" : 455,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 0
}, {
"name": "Love 5",
"file": "Love_5.txt",
"author": "Phoebe(twitter@huunhut1217)",
"desc": "Twitter用户<a href=https://mobile.twitter.com/huunhut1217>Phoebe(twitter@huunhut1217)<a/>分享乐谱 Love 5",
"bpm" : 600,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 2
}, {
"name": "Co Chac Yeu La Day - MTP",
"file": "Co_Chac_Yeu_La_Day-MTP.txt",
"author": "Phoebe(twitter@huunhut1217)",
"desc": "Twitter用户<a href=https://mobile.twitter.com/huunhut1217>Phoebe(twitter@huunhut1217)<a/>分享乐谱 Co Chac Yeu La Day - MTP",
"bpm" : 720,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 6
}, {
"name": "Hanava",
"file": "Hanava.txt",
"author": "Phoebe(twitter@huunhut1217)",
"desc": "Twitter用户<a href=https://mobile.twitter.com/huunhut1217>Phoebe(twitter@huunhut1217)<a/>分享乐谱 Hanava",
"bpm" : 800,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 10
}, {
"name": "Summertime",
"file": "Summertime.txt",
"author": "Phoebe(twitter@huunhut1217)",
"desc": "Twitter用户<a href=https://mobile.twitter.com/huunhut1217>Phoebe(twitter@huunhut1217)<a/>分享乐谱 Summertime",
"bpm" : 850,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 2
}, {
"name": "See You Again (Stb)",
"file": "See_You_Again_(Stb).txt",
"author": "Phoebe(twitter@huunhut1217)",
"desc": "Twitter用户<a href=https://mobile.twitter.com/huunhut1217>Phoebe(twitter@huunhut1217)<a/>分享乐谱 See You Again (Stb)",
"bpm" : 280,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 0
}, {
"name": "不知所措",
"file": "不知所措.txt",
"author": "哔哩哔哩@UTF16",
"desc": "哔哩哔哩用户<a href=https://space.bilibili.com/623364258>@UTF16<a/>分享乐谱 不知所措",
"bpm" : 300,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 0
}, {
"name": "那女孩对我说",
"file": "那女孩对我说.txt",
"author": "哔哩哔哩@UTF16",
"desc": "哔哩哔哩用户<a href=https://space.bilibili.com/623364258>@UTF16<a/>分享乐谱 那女孩对我说",
"bpm" : 190,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 0
}, {
"name": "演员",
"file": "演员.txt",
"author": "哔哩哔哩@UTF16",
"desc": "哔哩哔哩用户<a href=https://space.bilibili.com/623364258>@UTF16<a/>分享乐谱 演员",
"bpm" : 240,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 0
}, {
"name": "追光者",
"file": "追光者.txt",
"author": "酷安@Syngenex",
"desc": "酷安酷友<a href=http://www.coolapk.com/u/1093421>@Syngenex<a/>分享乐谱 追光者",
"bpm" : 286,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 0
}, {
"name": "走马",
"file": "走马.txt",
"author": "酷安@Syngenex",
"desc": "酷安酷友<a href=http://www.coolapk.com/u/1093421>@Syngenex<a/>分享乐谱 走马",
"bpm" : 289,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 0
}, {
"name": "Mojito",
"file": "Mojito.txt",
"author": "酷安@Syngenex",
"desc": "酷安酷友<a href=http://www.coolapk.com/u/1093421>@Syngenex<a/>分享乐谱 Mojito",
"bpm" : 245,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 0
}, {
"name": "下雨天",
"file": "下雨天.txt",
"author": "哔哩哔哩@UTF16",
"desc": "哔哩哔哩用户<a href=https://space.bilibili.com/623364258>@UTF16<a/>分享乐谱 下雨天",
"bpm" : 207,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 0
}, {
"name": "极乐净土(和弦)",
"file": "极乐净土(和弦).txt",
"author": "酷安@Syngene",
"desc": "酷安酷友<a href=http://www.coolapk.com/u/1093421>@Syngene<a/>分享乐谱 极乐净土(和弦)",
"author": "酷安@Syngenex",
"desc": "酷安酷友<a href=http://www.coolapk.com/u/1093421>@Syngenex<a/>分享乐谱 极乐净土(和弦)",
"bpm" : 532,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 0
}, {
"name": "极乐净土(无和弦)",
"file": "极乐净土(无和弦).txt",
"author": "酷安@Syngene",
"desc": "酷安酷友<a href=http://www.coolapk.com/u/1093421>@Syngene<a/>分享乐谱 极乐净土(无和弦)",
"author": "酷安@Syngenex",
"desc": "酷安酷友<a href=http://www.coolapk.com/u/1093421>@Syngenex<a/>分享乐谱 极乐净土(无和弦)",
"bpm" : 532,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 0
}, {
"name": "童话镇",
"file": "童话镇.txt",
"author": "哔哩哔哩@UTF16",
"desc": "哔哩哔哩用户<a href=https://space.bilibili.com/623364258>@UTF16<a/>分享乐谱 童话镇",
"bpm" : 240,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 0
}, {
"name": "体面",
"file": "体面.txt",
"author": "哔哩哔哩@UTF16",
"desc": "哔哩哔哩用户<a href=https://space.bilibili.com/623364258>@UTF16<a/>分享乐谱 体面",
"bpm" : 241,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 0
}, {
"name": "阿珍爱上了阿强",
"file": "阿珍爱上了阿强_UTF16.txt",
"author": "酷安@UTF16",
"desc": "酷安酷友<a href=http://www.coolapk.com/u/3751911>@UTF16<a/>分享乐谱 阿珍爱上了阿强",
"author": "哔哩哔哩@UTF16",
"desc": "哔哩哔哩用户<a href=https://space.bilibili.com/623364258>@UTF16<a/>分享乐谱 阿珍爱上了阿强",
"bpm" : 197,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 0
}, {
"name": "虫儿飞儿歌",
"file": "虫儿飞儿歌_UTF16.txt",
"author": "酷安@UTF16",
"desc": "酷安酷友<a href=http://www.coolapk.com/u/3751911>@UTF16<a/>分享乐谱 虫儿飞儿歌",
"author": "哔哩哔哩@UTF16",
"desc": "哔哩哔哩用户<a href=https://space.bilibili.com/623364258>@UTF16<a/>分享乐谱 虫儿飞儿歌",
"bpm" : 240,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 0
}, {
"name": "辞乆门回忆",
"file": "辞乆门回忆_UTF16.txt",
"author": "酷安@UTF16",
"desc": "酷安酷友<a href=http://www.coolapk.com/u/3751911>@UTF16<a/>分享乐谱 辞乆门回忆",
"author": "哔哩哔哩@UTF16",
"desc": "哔哩哔哩用户<a href=https://space.bilibili.com/623364258>@UTF16<a/>分享乐谱 辞乆门回忆",
"bpm" : 270,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 0
}, {
"name": "打上花火",
"file": "打上花火_UTF16.txt",
"author": "酷安@UTF16",
"desc": "酷安酷友<a href=http://www.coolapk.com/u/3751911>@UTF16<a/>分享乐谱 打上花火",
"author": "哔哩哔哩@UTF16",
"desc": "哔哩哔哩用户<a href=https://space.bilibili.com/623364258>@UTF16<a/>分享乐谱 打上花火",
"bpm" : 300,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 0
}, {
"name": "大悲咒",
"file": "大悲咒_UTF16.txt",
"author": "酷安@UTF16",
"desc": "酷安酷友<a href=http://www.coolapk.com/u/3751911>@UTF16<a/>分享乐谱 大悲咒",
"author": "哔哩哔哩@UTF16",
"desc": "哔哩哔哩用户<a href=https://space.bilibili.com/623364258>@UTF16<a/>分享乐谱 大悲咒",
"bpm" : 230,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 0
}, {
"name": "好运来HX",
"file": "好运来HX_UTF16.txt",
"author": "酷安@UTF16",
"desc": "酷安酷友<a href=http://www.coolapk.com/u/3751911>@UTF16<a/>分享乐谱 好运来HX",
"author": "哔哩哔哩@UTF16",
"desc": "哔哩哔哩用户<a href=https://space.bilibili.com/623364258>@UTF16<a/>分享乐谱 好运来HX",
"bpm" : 240,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 0
}, {
"name": "幻昼CH",
"file": "幻昼CH_UTF16.txt",
"author": "酷安@UTF16",
"desc": "酷安酷友<a href=http://www.coolapk.com/u/3751911>@UTF16<a/>分享乐谱 幻昼CH",
"author": "哔哩哔哩@UTF16",
"desc": "哔哩哔哩用户<a href=https://space.bilibili.com/623364258>@UTF16<a/>分享乐谱 幻昼CH",
"bpm" : 200,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 0
}, {
"name": "偏爱",
"file": "偏爱_UTF16.txt",
"author": "酷安@UTF16",
"desc": "酷安酷友<a href=http://www.coolapk.com/u/3751911>@UTF16<a/>分享乐谱 偏爱",
"author": "哔哩哔哩@UTF16",
"desc": "哔哩哔哩用户<a href=https://space.bilibili.com/623364258>@UTF16<a/>分享乐谱 偏爱",
"bpm" : 220,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 0
}, {
"name": "四月是你的谎言",
"file": "四月是你的谎言_UTF16.txt",
"author": "酷安@UTF16",
"desc": "酷安酷友<a href=http://www.coolapk.com/u/3751911>@UTF16<a/>分享乐谱 四月是你的谎言",
"author": "哔哩哔哩@UTF16",
"desc": "哔哩哔哩用户<a href=https://space.bilibili.com/623364258>@UTF16<a/>分享乐谱 四月是你的谎言",
"bpm" : 240,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 0
}, {
"name": "误红装A1",
"file": "误红装A1_UTF16.txt",
"author": "酷安@UTF16",
"desc": "酷安酷友<a href=http://www.coolapk.com/u/3751911>@UTF16<a/>分享乐谱 误红装A1",
"author": "哔哩哔哩@UTF16",
"desc": "哔哩哔哩用户<a href=https://space.bilibili.com/623364258>@UTF16<a/>分享乐谱 误红装A1",
"bpm" : 200,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 0
}, {
"name": "夏天的风",
"file": "夏天的风_UTF16.txt",
"author": "酷安@UTF16",
"desc": "酷安酷友<a href=http://www.coolapk.com/u/3751911>@UTF16<a/>分享乐谱 夏天的风",
"author": "哔哩哔哩@UTF16",
"desc": "哔哩哔哩用户<a href=https://space.bilibili.com/623364258>@UTF16<a/>分享乐谱 夏天的风",
"bpm" : 220,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 0
}, {
"name": "夏天的风GF",
"file": "夏天的风GF_UTF16.txt",
"author": "酷安@UTF16",
"desc": "酷安酷友<a href=http://www.coolapk.com/u/3751911>@UTF16<a/>分享乐谱 夏天的风GF",
"author": "哔哩哔哩@UTF16",
"desc": "哔哩哔哩用户<a href=https://space.bilibili.com/623364258>@UTF16<a/>分享乐谱 夏天的风GF",
"bpm" : 220,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 0
}, {
"name": "小星星",
"file": "小星星_UTF16.txt",
"author": "酷安@UTF16",
"desc": "酷安酷友<a href=http://www.coolapk.com/u/3751911>@UTF16<a/>分享乐谱 小星星",
"author": "哔哩哔哩@UTF16",
"desc": "哔哩哔哩用户<a href=https://space.bilibili.com/623364258>@UTF16<a/>分享乐谱 小星星",
"bpm" : 240,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 0
}, {
"name": "心作",
"file": "心作_UTF16.txt",
"author": "酷安@UTF16",
"desc": "酷安酷友<a href=http://www.coolapk.com/u/3751911>@UTF16<a/>分享乐谱 心作",
"author": "哔哩哔哩@UTF16",
"desc": "哔哩哔哩用户<a href=https://space.bilibili.com/623364258>@UTF16<a/>分享乐谱 心作",
"bpm" : 240,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 0
}, {
"name": "雨林",
"file": "雨林_UTF16.txt",
"author": "酷安@UTF16",
"desc": "酷安酷友<a href=http://www.coolapk.com/u/3751911>@UTF16<a/>分享乐谱 雨林",
"author": "哔哩哔哩@UTF16",
"desc": "哔哩哔哩用户<a href=https://space.bilibili.com/623364258>@UTF16<a/>分享乐谱 雨林",
"bpm" : 249,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 0
}, {
"name": "猪猪侠",
"file": "猪猪侠_UTF16.txt",
"author": "酷安@UTF16",
"desc": "酷安酷友<a href=http://www.coolapk.com/u/3751911>@UTF16<a/>分享乐谱 猪猪侠",
"author": "哔哩哔哩@UTF16",
"desc": "哔哩哔哩用户<a href=https://space.bilibili.com/623364258>@UTF16<a/>分享乐谱 猪猪侠",
"bpm" : 280,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 0
}, {
"name": "もペもぺmopemope",
@@ -150,6 +321,7 @@
"desc": "酷安酷友<a href=http://www.coolapk.com/u/2313452>@夏卡卡卡<a/>分享乐谱 もペもぺmopemope\n一首音游玩家熟悉的、好听的儿歌(并不)\n非完整版",
"bpm" : 400,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 7
}, {
"name": "[IPhone]马林巴琴",
@@ -158,6 +330,7 @@
"desc": "酷安酷友<a href=http://www.coolapk.com/u/2313452>@夏卡卡卡<a/>分享乐谱 [IPhone]马林巴琴",
"bpm" : 660,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 0
}, {
"name": "穿越时空的思念",
@@ -166,6 +339,7 @@
"desc": "酷安酷友<a href=http://www.coolapk.com/u/463478>@北极马可罗尼<a/>分享乐谱 穿越时空的思念",
"bpm" : 160,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 0
}, {
"name": "不染",
@@ -174,6 +348,7 @@
"desc": "酷安酷友<a href=http://www.coolapk.com/u/634078>酷安@九方辰<a/>分享乐谱 不染\n原作者为 抖音用户@子哲啊🌈(zizhe1880689503) \n 完善后续,修改了杂音",
"bpm" : 150,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 0
}, {
"name": "Souvevirs d'Enfance\n童年的回忆",
@@ -182,6 +357,7 @@
"desc": "酷安酷友<a href=http://www.coolapk.com/u/2416229>酷安@你们很有趣呢<a/>分享乐谱\n Souvevirs d'Enfance童年的回忆\n作者理查德·克莱德曼Richard Clayderman又名爱的记忆\n曲子比原曲慢了一点点建议加速播放",
"bpm" : 720,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 7
}, {
"name": "Canon卡农 C大调 简易版",
@@ -190,6 +366,7 @@
"desc": "酷安酷友<a href=http://www.coolapk.com/u/2313452>@夏卡卡卡<a/>分享乐谱 Canon卡农 C大调 简易版",
"bpm" : 300,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 0
}, {
"name": "九九八十一",
@@ -198,6 +375,7 @@
"desc": "酷安酷友<a href=http://www.coolapk.com/u/3286967>@慕疵<a/>分享乐谱 九九八十一",
"bpm" : 550,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 0
}, {
"name": "Коробейники (货郎)\n俄罗斯方块BGM",
@@ -206,6 +384,7 @@
"desc": "酷安酷友<a href=http://www.coolapk.com/u/2313452>@夏卡卡卡<a/>分享乐谱 Коробейники (货郎)",
"bpm" : 720,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 0
}, {
"name": "土耳其进行曲(莫扎特)",
@@ -214,6 +393,7 @@
"desc": "酷安酷友<a href=http://www.coolapk.com/u/2313452>@夏卡卡卡<a/>分享乐谱 土耳其进行曲(莫扎特)",
"bpm" : 528,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 0
}, {
"name": "The truth that you leave\n你离开的事实",
@@ -222,6 +402,7 @@
"desc": "酷安酷友<a href=http://www.coolapk.com/u/643670>@情如风雪如常<a/>分享乐谱 The truth that you leave",
"bpm" : 520,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 11
}, {
"name": "名侦探柯南",
@@ -230,6 +411,7 @@
"desc": "酷安酷友<a href=http://www.coolapk.com/u/643670>@情如风雪如常<a/>分享乐谱 名侦探柯南",
"bpm" : 511,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 8
}, {
"name": "Unity",
@@ -238,6 +420,7 @@
"desc": "酷安酷友<a href=http://www.coolapk.com/u/2313452>@夏卡卡卡<a/>分享乐谱 Unity",
"bpm" : 600,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 0
}, {
"name": "大鱼(简易)",
@@ -246,6 +429,7 @@
"desc": "酷安酷友<a href=http://www.coolapk.com/u/2313452>@夏卡卡卡<a/>分享乐谱 大鱼(简易)",
"bpm" : 288,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 0
}, {
"name": "嘿咻狂想曲",
@@ -254,6 +438,7 @@
"desc": "酷安酷友<a href=http://www.coolapk.com/u/2313452>@夏卡卡卡<a/>分享乐谱 嘿咻狂想曲\n<b>I love you🎵 , I miss you🎵</b>\n<u>建议在雨林右侧副本的隐藏图(两人掉下去那个),释放蝴蝶后弹奏</u>",
"bpm" : 480,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 5
}, {
"name": "城南花已开",
@@ -262,6 +447,7 @@
"desc": "酷安酷友<a href=http://www.coolapk.com/u/2313452>@夏卡卡卡<a/>分享乐谱 城南花已开",
"bpm" : 480,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 0
}, {
"name": "撒野完整版",
@@ -270,6 +456,7 @@
"desc": "酷安酷友<a href=http://www.coolapk.com/u/3005974>@深空失忆か<a/>分享乐谱 撒野完整版",
"bpm" : 240,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 0
}, {
"name": "婚礼进行曲(整活用)",
@@ -278,6 +465,7 @@
"desc": "酷安酷友<a href=http://www.coolapk.com/u/2313452>@夏卡卡卡<a/>分享乐谱 婚礼进行曲(整活用)(简易版)\n<b>不推荐在别人递白蜡烛🕯时使用,因为会导致画面极度生草,且伴有顺着网线被暴打一顿的风险,没听懂的话我再强调一遍( 滑稽 )</b>",
"bpm" : 280,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 0
}, {
"name": "Graze the Roof",
@@ -286,6 +474,7 @@
"desc": "酷安酷友<a href=http://www.coolapk.com/u/2313452>@夏卡卡卡<a/>分享乐谱 Graze the Roof\n游戏《植物大战僵尸》(Plants vs. Zombies Soundtrack) 屋顶关卡背景音乐",
"bpm" : 520,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 8
}, {
"name": "Only My Railgun",
@@ -294,6 +483,7 @@
"desc": "酷安酷友<a href=http://www.coolapk.com/u/2313452>@夏卡卡卡<a/>分享乐谱 Only My Railgun \n(TVアニメ「とある科学の超電磁砲」OP1テーマ) \n你指尖跳跃的电光是我此生不灭的信仰",
"bpm" : 440,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 0
}, {
"name": "生命之名(いのちの名前)",
@@ -302,6 +492,7 @@
"desc": "酷安酷友<a href=http://www.coolapk.com/u/2416229>酷安@你们很有趣呢<a/>分享乐谱\n 生命之名(いのちの名前)\n(千と千寻の神隠し插曲One Summers Day完整版)\n这是我第一次的手编谱可能有些音转的不完美。\nPs:这谱很长很长,而且越弹到后面越不对劲。",
"bpm" : 595,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 1
}, {
"name": "Martin Ermen - River Flows in You",
@@ -310,6 +501,7 @@
"desc": "没写outro",
"bpm" : 572,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 4
}, {
"name": "神々が恋した幻想郷(修改版)",
@@ -318,6 +510,7 @@
"desc": "源谱来自酷安酷友<a href=http://www.coolapk.com/u/2313452>@夏卡卡卡<a/>\n稍作修改使节奏更接近原曲\n(过一段时间出完整版)",
"bpm" : 512,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 5
}, {
"name": "猪八戒背媳妇(简易单指)",
@@ -326,6 +519,7 @@
"desc": "酷安酷友<a href=http://www.coolapk.com/u/2313452>@夏卡卡卡<a/>分享乐谱 猪八戒背媳妇(简易单指)\n背 背 友 尽 曲 ",
"bpm" : 440,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 0
}, {
"name": "猪八戒背媳妇",
@@ -334,6 +528,7 @@
"desc": "酷安酷友<a href=http://www.coolapk.com/u/2313452>@夏卡卡卡<a/>分享乐谱 猪八戒背媳妇\n背 背 友 尽 曲 ",
"bpm" : 440,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 0
}, {
"name": "夜的钢琴曲(五)",
@@ -342,6 +537,7 @@
"desc": "酷安酷友<a href=http://www.coolapk.com/u/2313452>@夏卡卡卡<a/>分享乐谱 夜的钢琴曲(五)\n<u>应尽量避免洞穴效应</u>",
"bpm" : 400,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 3
}, {
"name": "雨的印记Kiss the Rain)",
@@ -350,6 +546,7 @@
"desc": "酷安酷友<a href=http://www.coolapk.com/u/2416229>酷安@你们很有趣呢<a/>分享乐谱\n 雨的印记Kiss the Rain)\n初始手编作更多谱子即将到来。",
"bpm" : 225,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 9
}, {
"name": "The Right Path",
@@ -358,6 +555,7 @@
"desc": "酷安酷友<a href=http://www.coolapk.com/u/2313452>@夏卡卡卡<a/>分享乐谱 The Right Path",
"bpm" : 500,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 10
}, {
"name": "[C418]Danny (Minecraft BGM)",
@@ -366,6 +564,7 @@
"desc": "酷安酷友<a href=http://www.coolapk.com/u/2313452>@夏卡卡卡<a/>分享乐谱 [C418]Danny (Minecraft BGM)",
"bpm" : 320,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 0
}, {
"name": "[C418]Wet Hands (Minecraft BGM)",
@@ -374,6 +573,7 @@
"desc": "酷安酷友<a href=http://www.coolapk.com/u/2313452>@夏卡卡卡<a/>分享乐谱 [C418]Wet Hands (Minecraft BGM)",
"bpm" : 272,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 9
}, {
"name": "[C418]Hal2 (Minecraft BGM)",
@@ -382,6 +582,7 @@
"desc": "酷安酷友<a href=http://www.coolapk.com/u/2313452>@夏卡卡卡<a/>分享乐谱 [C418]Hal2 (Minecraft BGM)",
"bpm" : 300,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 0
}, {
"name": "MIUI铃声(循环)",
@@ -390,6 +591,7 @@
"desc": "酷安酷友<a href=http://www.coolapk.com/u/2313452>@夏卡卡卡<a/>分享乐谱 MIUI铃声(循环)",
"bpm" : 280,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 0
}, {
"name": "美丽拍档(朱一旦枯燥曲)",
@@ -398,6 +600,7 @@
"desc": "酷安酷友<a href=http://www.coolapk.com/u/2313452>@夏卡卡卡<a/>分享乐谱 \n美丽拍档(朱一旦枯燥曲)",
"bpm" : 266,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 0
}, {
"name": "Flower Dance",
@@ -406,6 +609,7 @@
"desc": "酷安酷友<a href=http://www.coolapk.com/u/2313452>@夏卡卡卡<a/>分享乐谱 Flower Dance",
"bpm" : 400,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 11
}, {
"name": "不染",
@@ -414,6 +618,7 @@
"desc": "抖音用户@子哲啊🌈(zizhe1880689503)上传乐谱 不染",
"bpm" : 150,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 0
}, {
"name": "赤岭",
@@ -422,6 +627,7 @@
"desc": "抖音用户@子哲啊🌈(zizhe1880689503)上传乐谱 赤岭",
"bpm" : 145,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 0
}, {
"name": "大鱼海棠",
@@ -430,6 +636,7 @@
"desc": "抖音用户@子哲啊🌈(zizhe1880689503)上传乐谱 大鱼海棠",
"bpm" : 123,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 0
}, {
"name": "失眠飞行t",
@@ -438,6 +645,7 @@
"desc": "抖音用户@子哲啊🌈(zizhe1880689503)上传乐谱 失眠飞行t",
"bpm" : 200,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 0
}, {
"name": "千本桜",
@@ -446,6 +654,7 @@
"desc": "酷安酷友<a href=http://www.coolapk.com/u/2313452>@夏卡卡卡<a/>分享乐谱 千本桜",
"bpm" : 614,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 5
}, {
"name": "神々が恋した幻想郷",
@@ -454,6 +663,7 @@
"desc": "越共探头(\n酷安酷友<a href=http://www.coolapk.com/u/2313452>@夏卡卡卡<a/>分享乐谱 神々が恋した幻想郷",
"bpm" : 256,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 5
}, {
"name": "Vicetone - Nevada",
@@ -462,6 +672,7 @@
"desc": "Nevada SkyStudio钢琴版。\n内包含<u>比较复杂的和弦</u>,不适合手弹(笑\n你可以在SkyStudio的练习模式试试[狗头]",
"bpm" : 497,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 3
}, {
"name": "TK from Ling tosite sigure - Unravel",
@@ -470,6 +681,7 @@
"desc": "TK from Ling tosite sigure - Unravel钢琴版。\n咕了很长时间的Unravel终于整完了\n难度适中(指比Nevada简单一点)\n有些地方实在不知道该怎么谱所以有一点点瑕疵啦",
"bpm" : 530,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 10
}, {
"name": "[CL]だんご大家族",
@@ -478,6 +690,7 @@
"desc": "<b>写作CL译作经典拼读人生。</b>\n酷安酷友<a href=http://www.coolapk.com/u/2313452>@夏卡卡卡<a/>分享乐谱 だんご大家族",
"bpm" : 200,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 6
}, {
"name": "いつも何度でも (「千と千尋の神隠し」主題歌)",
@@ -486,6 +699,7 @@
"desc": "酷安酷友<a href=http://www.coolapk.com/u/2313452>@夏卡卡卡<a/>分享乐谱 いつも何度でも \n(「千と千尋の神隠し」主題歌)",
"bpm" : 230,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 5
}, {
"name": "[钢琴曲]潮鸣り(原速)",
@@ -494,6 +708,7 @@
"desc": "酷安酷友<a href=http://www.coolapk.com/u/2313452>@夏卡卡卡<a/>分享乐谱 [钢琴曲]潮鸣り(原速)\n<b>只建议用钢琴演奏原速</b>\n如需切合其他乐器请<u>通过Sky Studio修改更高的速度</u>",
"bpm" : 108,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 0
}, {
"name": "Lemon",
@@ -502,6 +717,7 @@
"desc": "酷安酷友<a href=http://www.coolapk.com/u/3005974>@深空失忆か<a/>分享乐谱 Lemon",
"bpm" : 500,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 0
}, {
"name": "克罗地亚狂想曲",
@@ -510,6 +726,7 @@
"desc": "酷安酷友<a href=http://www.coolapk.com/u/3005974>@深空失忆か<a/>分享乐谱 克罗地亚狂想曲",
"bpm" : 720,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 3
}, {
"name": "斗地主",
@@ -518,6 +735,7 @@
"desc": "酷安酷友<a href=http://www.coolapk.com/u/3005974>@深空失忆か<a/>分享乐谱 斗地主",
"bpm" : 240,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 10
}, {
"name": "黑人抬棺Astronomia",
@@ -526,6 +744,7 @@
"desc": "酷安酷友<a href=http://www.coolapk.com/u/3005974>@深空失忆か<a/>分享乐谱 黑人抬棺Astronomia",
"bpm" : 240,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 10
}, {
"name": "简易茉莉花",
@@ -534,6 +753,7 @@
"desc": "酷安酷友<a href=http://www.coolapk.com/u/2313452>@夏卡卡卡<a/>分享乐谱 简易茉莉花\n建议在由洞穴效应的地方弹;最后的部分因音高问题进行了小修改",
"bpm" : 200,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 0
}, {
"name": "大悲咒",
@@ -542,6 +762,7 @@
"desc": "酷安酷友<a href=http://www.coolapk.com/u/1286879>@Aex技术总监</a>分享乐谱 大悲咒",
"bpm" : 151,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 3
}, {
"name": "坏苹果",
@@ -550,6 +771,7 @@
"desc": "酷安酷友<a href=http://www.coolapk.com/u/1286879>@Aex技术总监</a>分享乐谱 坏苹果",
"bpm" : 720,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 6
}, {
"name": "三葉",
@@ -558,6 +780,7 @@
"desc": "酷安酷友<a href=http://www.coolapk.com/u/1286879>@Aex技术总监</a>分享乐谱 三葉",
"bpm" : 318,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 0
}, {
"name": "亡灵序曲选节",
@@ -566,6 +789,7 @@
"desc": "酷安酷友<a href=http://www.coolapk.com/u/1286879>@Aex技术总监</a>分享乐谱 亡灵序曲选节",
"bpm" : 240,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 6
}, {
"name": "天空之城",
@@ -574,6 +798,7 @@
"desc": "酷安酷友<a href=http://www.coolapk.com/u/1286879>@Aex技术总监</a>分享乐谱 天空之城",
"bpm" : 240,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 3
}, {
"name": "幻昼",
@@ -582,6 +807,7 @@
"desc": "酷安酷友<a href=http://www.coolapk.com/u/1286879>@Aex技术总监</a>分享乐谱 幻昼",
"bpm" : 281,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 10
}, {
"name": "烟花易冷",
@@ -590,6 +816,7 @@
"desc": "酷安酷友<a href=http://www.coolapk.com/u/1286879>@Aex技术总监</a>分享乐谱 烟花易冷",
"bpm" : 132,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 4
}, {
"name": "菊次郎的夏天",
@@ -598,6 +825,7 @@
"desc": "酷安酷友<a href=http://www.coolapk.com/u/1286879>@Aex技术总监</a>分享乐谱 菊次郎的夏天",
"bpm" : 349,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 2
}, {
"name": "起风了",
@@ -606,6 +834,7 @@
"desc": "酷安酷友<a href=http://www.coolapk.com/u/1286879>@Aex技术总监</a>分享乐谱 起风了",
"bpm" : 236,
"suggested_instrument": 1,
"keyCount": 15,
"pitchLevel": 6
}]
}

Binary file not shown.

Binary file not shown.

BIN
shared_sheets/Hanava.txt Normal file

Binary file not shown.

BIN
shared_sheets/Love_5.txt Normal file

Binary file not shown.

BIN
shared_sheets/Mojito.txt Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
shared_sheets/下雨天.txt Normal file

Binary file not shown.

Binary file not shown.

BIN
shared_sheets/体面.txt Normal file

Binary file not shown.

BIN
shared_sheets/微微.txt Normal file

Binary file not shown.

Binary file not shown.

BIN
shared_sheets/演员.txt Normal file

Binary file not shown.

BIN
shared_sheets/童话镇.txt Normal file

Binary file not shown.

BIN
shared_sheets/走马.txt Normal file

Binary file not shown.

BIN
shared_sheets/追光者.txt Normal file

Binary file not shown.

Binary file not shown.

View File

@@ -31,7 +31,9 @@ const user_agreements =
"1. SkyAutoPlayer(以下简称\"本脚本\")是完全免费且开源的软件/脚本(https://github.com/StageGuard/SkyAutoPlayerScript),禁止使用本脚本作为盈利用途!\n若你是从其他渠道购买获得的本脚本那么就说明你被骗了\n\n" +
"2. 本脚本仅可用作娱乐用途,请不要在正规场合使用本脚本(请自行体会\"正规场合\"是什么意思)若因使用本脚本所出现了一些不友好的问题与脚本作者StageGuard(以下简称\"作者\")无关。\n\n" +
"3. 脚本只能给你一时满足感而不能使你进步,请适当使用,只有真正的技术才是王道,才能使你感到快乐。\n\n" +
"4. 本脚本的发行遵守GPLv3协议若你不了解协议内容请访问 https://www.gnu.org/licenses 查看"
"4. 本脚本只是一个\"弹奏机\"并不内置曲谱请在GooglePlay下载SkyStudio编谱。\n\n" +
"5. 本脚本不会增加解密乐谱功能包括但不限于加密的SkyStudio乐谱加密的JS等也不接受加密乐谱的共享。\n\n" +
"6. 本脚本的发行遵守GPLv3协议若你不了解协议内容请访问 https://www.gnu.org/licenses 查看"
;
//Script global scope
@@ -88,7 +90,7 @@ sheetmgr = {
return resultList;
},
downloadAndLoad: function(file, author, listener) {
downloadAndLoad: function(file, extraData, listener) {
listener({status:1});
config.fetchRepoFile("shared_sheets/" + file, null, function(body) {
var sheet = files.join(sheetmgr.rootDir, files.getNameWithoutExtension(file) + (function(length) {
@@ -103,7 +105,8 @@ sheetmgr = {
files.write(sheet, parsed = (function() {
var data = eval(body.string())[0];
listener({status:2});
data.author = author;
data.author = extraData.author;
data.keyCount = extraData.keyCount;
return "[" + JSON.stringify(data) + "]";
}()), sheetmgr.encoding);
parsed = eval(parsed)[0];
@@ -218,6 +221,8 @@ sheetplayer = {
currentNote: 0,
playing: false,
nextInterval: 0,
keyCount: 15,
speed: 1,
current_speed_index: 9,
@@ -259,11 +264,8 @@ sheetplayer = {
run: function() {
var gestureMap = [];
sheetplayer.notes[sheetplayer.currentNote].keys.map(function(e, i) {
gestureMap.push([
0, 25,
[config.values.key_coordinates[e][0], config.values.key_coordinates[e][1]],
[config.values.key_coordinates[e][0], config.values.key_coordinates[e][1]]
]);
var keyCoordinates = sheetplayer.keyCount == 15 ? [config.values.key_coordinates15[e][0], config.values.key_coordinates15[e][1]] : [config.values.key_coordinates8[e][0], config.values.key_coordinates8[e][1]];
gestureMap.push([0, 25, keyCoordinates, keyCoordinates]);
});
gestureMap = sheetplayer.toSource(gestureMap);
eval("gestures(" + gestureMap.slice(1, gestureMap.length - 1) + ");");
@@ -317,6 +319,7 @@ sheetplayer = {
this.pitch = j.pitchLevel;
this.bpm = j.bpm;
this.noteCount = this.notes.length;
this.keyCount = j.keyCount;
},
toSource: function(obj) {
@@ -342,16 +345,18 @@ config = {
_global_storage: null,
values: {
key_coordinates: [],
key_coordinates15: [],
key_coordinates8: [],
skipRunScriptTip: false,
skipOpenWindowTip: false,
skipOpenPlayerPanelWindowTip: false,
skipOnlineUploadTip: false,
skipOnlineSharedSheetCTip: false,
skipImportLocalSheetTip: false,
skipChangeKeyCountTip: false,
showFailedSheets: true,
tipOnAndroidR: true,
currentVersion: 14,
currentVersion: 15,
gitVersion: "",
},
@@ -360,13 +365,15 @@ config = {
init: function() {
this._global_storage = storages.create("StageGuard:SkyAutoPlayer:Config");
this.values.key_coordinates = this._global_storage.get("key_coordinates", this.values.key_coordinates);
this.values.key_coordinates15 = this._global_storage.get("key_coordinates15", this.values.key_coordinates15);
this.values.key_coordinates8 = this._global_storage.get("key_coordinates8", this.values.key_coordinates8);
this.values.skipRunScriptTip = this._global_storage.get("skip_run_script_tip", this.values.skipRunScriptTip);
this.values.skipOpenWindowTip = this._global_storage.get("skip_open_window_tip", this.values.skipOpenWindowTip);
this.values.skipOpenPlayerPanelWindowTip = this._global_storage.get("skip_open_player_panel_window_tip", this.values.skipOpenPlayerPanelWindowTip);
this.values.skipOnlineUploadTip = this._global_storage.get("skip_online_upload_tip", this.values.skipOnlineUploadTip);
this.values.skipOnlineSharedSheetCTip = this._global_storage.get("skip_shared_sheet_c_tip", this.values.skipOnlineSharedSheetCTip);
this.values.skipImportLocalSheetTip = this._global_storage.get("skip_import_local_sheet_tip", this.values.skipImportLocalSheetTip);
this.values.skipChangeKeyCountTip = this._global_storage.get("skip_change_key_count_tip", this.values.skipChangeKeyCountTip);
this.values.showFailedSheets = this._global_storage.get("show_failed_sheets", this.values.showFailedSheets);
this.values.tipOnAndroidR = this._global_storage.get("tip_storage_on_android_r", this.values.tipOnAndroidR);
@@ -753,273 +760,273 @@ gui = {
dialogs: {
showDialog: function(layout, width, height, onDismiss, canExit) {
var frame, trans, params;
frame = new android.widget.FrameLayout(ctx);
frame.setBackgroundColor(android.graphics.Color.argb(0x80, 0, 0, 0));
frame.setOnTouchListener(new android.view.View.OnTouchListener({
onTouch: function touch(v, e) {
try {
if (e.getAction() == e.ACTION_DOWN && canExit) {
frame.setEnabled(false);
frame.setClickable(false);
gui.utils.value_animation("Float", 1.0, 0, 75, new android.view.animation.DecelerateInterpolator(), function(anim) {
frame.setAlpha(anim.getAnimatedValue());
if(anim.getAnimatedValue() == 0) {
if(onDismiss != null) onDismiss(frame);
gui.winMgr.removeView(frame);
}
});
var frame, trans, params;
frame = new android.widget.FrameLayout(ctx);
frame.setBackgroundColor(android.graphics.Color.argb(0x80, 0, 0, 0));
frame.setOnTouchListener(new android.view.View.OnTouchListener({
onTouch: function touch(v, e) {
try {
if (e.getAction() == e.ACTION_DOWN && canExit) {
frame.setEnabled(false);
frame.setClickable(false);
gui.utils.value_animation("Float", 1.0, 0, 75, new android.view.animation.DecelerateInterpolator(), function(anim) {
frame.setAlpha(anim.getAnimatedValue());
if(anim.getAnimatedValue() == 0) {
if(onDismiss != null) onDismiss(frame);
gui.winMgr.removeView(frame);
}
return false;
} catch (e) {
error(e);
return false;
}
});
}
return false;
} catch (e) {
error(e);
return false;
}
}
}));
layout.setLayoutParams(new android.widget.FrameLayout.LayoutParams(width, height, android.view.Gravity.CENTER));
layout.getLayoutParams().setMargins(20 * dp, 20 * dp, 20 * dp, 20 * dp);
frame.addView(layout);
gui.utils.value_animation("Float", 0, 1, 75, new android.view.animation.DecelerateInterpolator(), function(anim) {
frame.setAlpha(anim.getAnimatedValue());
});
layout.setElevation(16 * dp);
params = new android.view.WindowManager.LayoutParams();
params.type = android.view.WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY;
if(!canExit) params.flags = android.view.WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE;
params.format = android.graphics.PixelFormat.TRANSLUCENT;
params.width = -1;
params.height = -1;
gui.winMgr.addView(frame, params);
return frame;
},
showProgressDialog: function self(f, isNoText, canExit) {
self.init = function(o) {
gui.run(function() {
try {
var layout = o.layout = new android.widget.LinearLayout(ctx);
layout.setOrientation(android.widget.LinearLayout.VERTICAL);
layout.setPadding(dp * 10, isNoText ? dp * 5 : dp * 10, dp * 10, isNoText ? dp * 5 : 0);
layout.setBackgroundColor(gui.config.colors.background);
if (!isNoText) {
var text = o.text = new android.widget.TextView(ctx);
text.setLayoutParams(new android.widget.FrameLayout.LayoutParams(-2, -2));
text.setTextColor(gui.config.colors.text);
text.setPadding(dp * 10, dp * 10, dp * 10, dp * 10);
layout.addView(text);
}
var progress = o.progress = android.widget.ProgressBar(ctx, null, android.R.attr.progressBarStyleHorizontal);
layout.addView(progress);
o.popup = gui.dialogs.showDialog(layout, -2, -2, null, canExit);
} catch (e) {
error(e + " → " + e.lineNumber);
}
})
}, self.controller = {
setText: function(s) {
if (isNoText) return;
var o = this;
gui.run(function() {
try {
o.text.setText(s);
} catch (e) {
error(e + " → " + e.lineNumber);
}
}));
layout.setLayoutParams(new android.widget.FrameLayout.LayoutParams(width, height, android.view.Gravity.CENTER));
layout.getLayoutParams().setMargins(20 * dp, 20 * dp, 20 * dp, 20 * dp);
frame.addView(layout);
gui.utils.value_animation("Float", 0, 1, 75, new android.view.animation.DecelerateInterpolator(), function(anim) {
frame.setAlpha(anim.getAnimatedValue());
});
layout.setElevation(16 * dp);
params = new android.view.WindowManager.LayoutParams();
params.type = android.view.WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY;
if(!canExit) params.flags = android.view.WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE;
params.format = android.graphics.PixelFormat.TRANSLUCENT;
params.width = -1;
params.height = -1;
gui.winMgr.addView(frame, params);
return frame;
},
showProgressDialog: function self(f, isNoText, canExit) {
self.init = function(o) {
gui.run(function() {
try {
var layout = o.layout = new android.widget.LinearLayout(ctx);
layout.setOrientation(android.widget.LinearLayout.VERTICAL);
layout.setPadding(dp * 10, isNoText ? dp * 5 : dp * 10, dp * 10, isNoText ? dp * 5 : 0);
layout.setBackgroundColor(gui.config.colors.background);
if (!isNoText) {
var text = o.text = new android.widget.TextView(ctx);
text.setLayoutParams(new android.widget.FrameLayout.LayoutParams(-2, -2));
text.setTextColor(gui.config.colors.text);
text.setPadding(dp * 10, dp * 10, dp * 10, dp * 10);
layout.addView(text);
setIndeterminate: function(b) {
var o = this;
gui.run(function() {
try {
o.progress.setIndeterminate(b);
} catch (e) {
error(e + " → " + e.lineNumber);
}
});
},
setMax: function(max) {
var o = this;
gui.run(function() {
try {
o.progress.setMax(max);
} catch (e) {
error(e + " → " + e.lineNumber);
}
});
},
setProgress: function(prog) {
var o = this;
gui.run(function() {
try {
if (!o.progress.isIndeterminate()) {
o.progress.setProgress(prog, true);
}
} catch (e) {
error(e + " → " + e.lineNumber);
}
});
},
close: function() {
var o = this;
gui.run(function() {
try {
gui.utils.value_animation("Float", 1, 0, 75, new android.view.animation.DecelerateInterpolator(), function(anim) {
o.popup.setAlpha(anim.getAnimatedValue());
if(anim.getAnimatedValue() == 1) gui.winMgr.removeView(o.popup);
});
} catch (e) {
error(e + " → " + e.lineNumber);
}
});
},
async: function(f) {
var o = this;
var t = threads.start(function() {
try {
f(o);
} catch (e) {
error(e + " → " + e.lineNumber);
}
});
}
};
var o = Object.create(self.controller);
self.init(o);
if (f) o.async(f);
return o;
},
showConfirmDialog: function(s) {
gui.run(function() {
try {
var scr, layout, title, text, skip, onClick, dialog;
scr = new android.widget.ScrollView(ctx);
scr.setBackgroundColor(gui.config.colors.background);
layout = new android.widget.LinearLayout(ctx);
layout.setLayoutParams(new android.widget.FrameLayout.LayoutParams(-2, -2));
layout.setOrientation(android.widget.LinearLayout.VERTICAL);
layout.setPadding(15 * dp, 15 * dp, 15 * dp, 5 * dp);
if (s.title) {
title = new android.widget.TextView(ctx);
title.setText(s.title);
title.setLayoutParams(new android.widget.LinearLayout.LayoutParams(-2, -2));
title.setPadding(0, 0, 0, 10 * dp);
title.setTextColor(gui.config.colors.text);
title.setTextSize(16);
layout.addView(title);
}
if (s.text) {
text = new android.widget.TextView(ctx);
text.setText(s.text);
text.setPadding(0, 0, 0, 10 * dp);
text.setLayoutParams(new android.widget.LinearLayout.LayoutParams(-2, -2));
text.setTextColor(gui.config.colors.sec_text);
text.setTextSize(14);
layout.addView(text);
}
if (s.skip) {
skip = new android.widget.CheckBox(ctx);
//skip.setChecked(Boolean(s.canSkip));
skip.setLayoutParams(android.widget.LinearLayout.LayoutParams(-2, -2, 0));
skip.getLayoutParams().setMargins(0, 0, 0, 10 * dp)
skip.setText("不再提示");
skip.setTextColor(gui.config.colors.sec_text)
layout.addView(skip);
}
onClick = function(i) {
if (s.skip) s.skip(skip.isChecked());
if (s.callback && s.callback(i)) return;
}
var closed = false;
s.buttons.map(function(e, i) {
var b = android.widget.TextView(ctx);
b.setId(i);
b.setLayoutParams(new android.widget.LinearLayout.LayoutParams(-1, -2));
b.setText(String(e));
b.setGravity(android.view.Gravity.CENTER);
b.setPadding(10 * dp, 10 * dp, 10 * dp, 10 * dp);
b.setTextColor(gui.config.colors.text);
b.setTextSize(14);
b.measure(0, 0);
b.setBackgroundDrawable(gui.utils.ripple_drawable(b.getMeasuredWidth(), b.getMeasuredHeight(), "rect"));
b.setOnClickListener(new android.view.View.OnClickListener({
onClick: function f(v) {
try {if(closed != true) {
onClick(v.getId());
closed = true;
gui.winMgr.removeView(dialog);
return true;
}} catch (e) {
error(e + " → " + e.lineNumber);
}
var progress = o.progress = android.widget.ProgressBar(ctx, null, android.R.attr.progressBarStyleHorizontal);
layout.addView(progress);
o.popup = gui.dialogs.showDialog(layout, -2, -2, null, canExit);
}
}));
layout.addView(b);
return b;
});
scr.addView(layout);
dialog = gui.dialogs.showDialog(scr, -2, -2, null, (s.canExit != true ? false : true));
} catch (e) {
error(e + " → " + e.lineNumber);
}
})
},
showOperateDialog: function self(s, callback, canExit) {
gui.run(function() {
try {
var frame, list, dialog;
if (!self.adapter) {
self.adapter = function(e) {
e.view = new android.widget.LinearLayout(ctx);
e.view.setOrientation(android.widget.LinearLayout.VERTICAL);
e.view.setPadding(15 * dp, 15 * dp, 15 * dp, 15 * dp);
e.view.setLayoutParams(new android.widget.AbsListView.LayoutParams(-1, -2));
e._title = new android.widget.TextView(ctx);
e._title.setText(e.text);
e._title.setGravity(android.view.Gravity.CENTER | android.view.Gravity.LEFT);
e._title.setFocusable(false);
e._title.setLayoutParams(new android.widget.LinearLayout.LayoutParams(-1, -2));
e._title.setTextSize(16);
e._title.setTextColor(gui.config.colors.text);
e.view.addView(e._title);
if (e.description) {
e._description = new android.widget.TextView(ctx);
e._description.setText(e.description);
e._description.setPadding(0, 3 * dp, 0, 0);
e._description.setLayoutParams(android.widget.LinearLayout.LayoutParams(-1, -2));
e._description.setTextSize(14);
e._description.setTextColor(gui.config.colors.sec_text);
e.view.addView(e._description);
}
return e.view;
}
}
frame = new android.widget.FrameLayout(ctx);
frame.setPadding(5 * dp, 5 * dp, 5 * dp, 5 * dp);
frame.setBackgroundColor(gui.config.colors.background);
list = new android.widget.ListView(ctx);
list.setLayoutParams(new android.widget.FrameLayout.LayoutParams(-1, -2));
list.setDividerHeight(0);
list.setAdapter(new RhinoListAdapter(s, self.adapter));
list.setOnItemClickListener(new android.widget.AdapterView.OnItemClickListener({
onItemClick: function(parent, view, pos, id) {
try {
if (callback && !callback(pos, s[pos])) gui.utils.value_animation("Float", 1, 0, 75, new android.view.animation.DecelerateInterpolator(), function(anim) {
dialog.setAlpha(anim.getAnimatedValue());
if(anim.getAnimatedValue() == 1) gui.winMgr.removeView(dialog);
});
return true;
} catch (e) {
error(e + " → " + e.lineNumber);
}
})
}, self.controller = {
setText: function(s) {
if (isNoText) return;
var o = this;
gui.run(function() {
try {
o.text.setText(s);
} catch (e) {
error(e + " → " + e.lineNumber);
}
});
},
setIndeterminate: function(b) {
var o = this;
gui.run(function() {
try {
o.progress.setIndeterminate(b);
} catch (e) {
error(e + " → " + e.lineNumber);
}
});
},
setMax: function(max) {
var o = this;
gui.run(function() {
try {
o.progress.setMax(max);
} catch (e) {
error(e + " → " + e.lineNumber);
}
});
},
setProgress: function(prog) {
var o = this;
gui.run(function() {
try {
if (!o.progress.isIndeterminate()) {
o.progress.setProgress(prog, true);
}
} catch (e) {
error(e + " → " + e.lineNumber);
}
});
},
close: function() {
var o = this;
gui.run(function() {
try {
gui.utils.value_animation("Float", 1, 0, 75, new android.view.animation.DecelerateInterpolator(), function(anim) {
o.popup.setAlpha(anim.getAnimatedValue());
if(anim.getAnimatedValue() == 1) gui.winMgr.removeView(o.popup);
});
} catch (e) {
error(e + " → " + e.lineNumber);
}
});
},
async: function(f) {
var o = this;
var t = threads.start(function() {
try {
f(o);
} catch (e) {
error(e + " → " + e.lineNumber);
}
});
}
};
var o = Object.create(self.controller);
self.init(o);
if (f) o.async(f);
return o;
},
showConfirmDialog: function(s) {
gui.run(function() {
try {
var scr, layout, title, text, skip, onClick, dialog;
scr = new android.widget.ScrollView(ctx);
scr.setBackgroundColor(gui.config.colors.background);
layout = new android.widget.LinearLayout(ctx);
layout.setLayoutParams(new android.widget.FrameLayout.LayoutParams(-2, -2));
layout.setOrientation(android.widget.LinearLayout.VERTICAL);
layout.setPadding(15 * dp, 15 * dp, 15 * dp, 5 * dp);
if (s.title) {
title = new android.widget.TextView(ctx);
title.setText(s.title);
title.setLayoutParams(new android.widget.LinearLayout.LayoutParams(-2, -2));
title.setPadding(0, 0, 0, 10 * dp);
title.setTextColor(gui.config.colors.text);
title.setTextSize(16);
layout.addView(title);
}
if (s.text) {
text = new android.widget.TextView(ctx);
text.setText(s.text);
text.setPadding(0, 0, 0, 10 * dp);
text.setLayoutParams(new android.widget.LinearLayout.LayoutParams(-2, -2));
text.setTextColor(gui.config.colors.sec_text);
text.setTextSize(14);
layout.addView(text);
}
if (s.skip) {
skip = new android.widget.CheckBox(ctx);
//skip.setChecked(Boolean(s.canSkip));
skip.setLayoutParams(android.widget.LinearLayout.LayoutParams(-2, -2, 0));
skip.getLayoutParams().setMargins(0, 0, 0, 10 * dp)
skip.setText("不再提示");
skip.setTextColor(gui.config.colors.sec_text)
layout.addView(skip);
}
onClick = function(i) {
if (s.skip) s.skip(skip.isChecked());
if (s.callback && s.callback(i)) return;
}
var closed = false;
s.buttons.map(function(e, i) {
var b = android.widget.TextView(ctx);
b.setId(i);
b.setLayoutParams(new android.widget.LinearLayout.LayoutParams(-1, -2));
b.setText(String(e));
b.setGravity(android.view.Gravity.CENTER);
b.setPadding(10 * dp, 10 * dp, 10 * dp, 10 * dp);
b.setTextColor(gui.config.colors.text);
b.setTextSize(14);
b.measure(0, 0);
b.setBackgroundDrawable(gui.utils.ripple_drawable(b.getMeasuredWidth(), b.getMeasuredHeight(), "rect"));
b.setOnClickListener(new android.view.View.OnClickListener({
onClick: function f(v) {
try {if(closed != true) {
onClick(v.getId());
closed = true;
gui.winMgr.removeView(dialog);
return true;
}} catch (e) {
error(e + " → " + e.lineNumber);
}
}
}));
layout.addView(b);
return b;
});
scr.addView(layout);
dialog = gui.dialogs.showDialog(scr, -2, -2, null, (s.canExit != true ? false : true));
} catch (e) {
error(e + " → " + e.lineNumber);
}
})
},
showOperateDialog: function self(s, callback, canExit) {
gui.run(function() {
try {
var frame, list, dialog;
if (!self.adapter) {
self.adapter = function(e) {
e.view = new android.widget.LinearLayout(ctx);
e.view.setOrientation(android.widget.LinearLayout.VERTICAL);
e.view.setPadding(15 * dp, 15 * dp, 15 * dp, 15 * dp);
e.view.setLayoutParams(new android.widget.AbsListView.LayoutParams(-1, -2));
e._title = new android.widget.TextView(ctx);
e._title.setText(e.text);
e._title.setGravity(android.view.Gravity.CENTER | android.view.Gravity.LEFT);
e._title.setFocusable(false);
e._title.setLayoutParams(new android.widget.LinearLayout.LayoutParams(-1, -2));
e._title.setTextSize(16);
e._title.setTextColor(gui.config.colors.text);
e.view.addView(e._title);
if (e.description) {
e._description = new android.widget.TextView(ctx);
e._description.setText(e.description);
e._description.setPadding(0, 3 * dp, 0, 0);
e._description.setLayoutParams(android.widget.LinearLayout.LayoutParams(-1, -2));
e._description.setTextSize(14);
e._description.setTextColor(gui.config.colors.sec_text);
e.view.addView(e._description);
}
return e.view;
}
}
frame = new android.widget.FrameLayout(ctx);
frame.setPadding(5 * dp, 5 * dp, 5 * dp, 5 * dp);
frame.setBackgroundColor(gui.config.colors.background);
list = new android.widget.ListView(ctx);
list.setLayoutParams(new android.widget.FrameLayout.LayoutParams(-1, -2));
list.setDividerHeight(0);
list.setAdapter(new RhinoListAdapter(s, self.adapter));
list.setOnItemClickListener(new android.widget.AdapterView.OnItemClickListener({
onItemClick: function(parent, view, pos, id) {
try {
if (callback && !callback(pos, s[pos])) gui.utils.value_animation("Float", 1, 0, 75, new android.view.animation.DecelerateInterpolator(), function(anim) {
dialog.setAlpha(anim.getAnimatedValue());
if(anim.getAnimatedValue() == 1) gui.winMgr.removeView(dialog);
});
return true;
} catch (e) {
error(e + " → " + e.lineNumber);
}
}
}));
frame.addView(list);
dialog = gui.dialogs.showDialog(frame, -1, -2, null, (canExit != true ? (typeof(canExit) != "boolean" ? true : false) : true));
} catch (e) {
error(e + " → " + e.lineNumber);
}
})
},
}));
frame.addView(list);
dialog = gui.dialogs.showDialog(frame, -1, -2, null, (canExit != true ? (typeof(canExit) != "boolean" ? true : false) : true));
} catch (e) {
error(e + " → " + e.lineNumber);
}
})
},
},
@@ -1515,7 +1522,7 @@ gui = {
current_index: 0,
__internal_showTargetDots: function s() { gui.run(function(){
__internal_showTargetDots: function s(keyTargetedCbk, finishCbk) { gui.run(function(){
if(!gui.key_coordinate_navigation.isShowing) {
gui.key_coordinate_navigation._global_base = new android.widget.TextView(ctx);
gui.key_coordinate_navigation._global_base.setLayoutParams(new android.widget.LinearLayout.LayoutParams(-2, -2));
@@ -1537,7 +1544,7 @@ gui = {
break;
case event.ACTION_UP:
gui.key_coordinate_navigation._global_text.setText("键" + (gui.key_coordinate_navigation.current_index + 1) + "坐标已设置: [" + event.getRawX() + ", " + event.getRawY() + "]");
config.values.key_coordinates.push([event.getRawX(), event.getRawY()])
keyTargetedCbk([event.getRawX(), event.getRawY()]);
gui.utils.value_animation("Float", 1, 0, 200 , new android.view.animation.DecelerateInterpolator(), function(anim) {
gui.key_coordinate_navigation._global_base.setAlpha(anim.getAnimatedValue());
gui.key_coordinate_navigation._global_text.setAlpha(1 - anim.getAnimatedValue());
@@ -1546,19 +1553,16 @@ gui = {
gui.key_coordinate_navigation.isShowing = false;
}
});
threads.start(function() {
java.lang.Thread.currentThread().sleep(1000);
gui.run(function() {
if(++gui.key_coordinate_navigation.current_index < 15) {
gui.key_coordinate_navigation.__internal_showTargetDots(gui.key_coordinate_navigation.current_index);
} else {
config.save("key_coordinates");
toast("坐标设置已保存至存储!\n");
gui.key_coordinate_navigation.__internal_dismissText();
gui.main.show(2);
}
});
});
var handler = new android.os.Handler();
handler.postDelayed(function() {
if(++gui.key_coordinate_navigation.current_index < gui.key_coordinate_navigation.total) {
gui.key_coordinate_navigation.__internal_showTargetDots(keyTargetedCbk, finishCbk);
} else {
finishCbk();
gui.key_coordinate_navigation.__internal_dismissText();
gui.main.show(2);
}
}, 1000);
default:
return false;
}
@@ -1628,11 +1632,11 @@ gui = {
}
})},
show: function() {
config.values.key_coordinates.length = 0;
show: function(keyCount, keyTargetedCbk, finishCbk) {
gui.key_coordinate_navigation.current_index = 0;
gui.key_coordinate_navigation.total = keyCount ? keyCount : 15;
this.__internal_showTips();
this.__internal_showTargetDots();
this.__internal_showTargetDots(keyTargetedCbk, finishCbk);
},
},
@@ -2088,18 +2092,47 @@ gui.dialogs.showProgressDialog(function(o) {
element.v_play.setBackgroundDrawable(gui.utils.ripple_drawable(element.v_play.getMeasuredWidth(), element.v_play.getMeasuredHeight(), "rect"));
element.v_play.setOnClickListener(new android.view.View.OnClickListener({
onClick: function() {
if(config.values.key_coordinates.length == 15 && gui.main.isShowing) {
gui.main.__internal_dismiss();
gui.player_panel.__internal_showPanel(element);
} else {
toast("未设置键位坐标或坐标数据错误,请前往设置页设置键位坐标");
if(gui.main.isShowing) {
if(!element.keyCount) {
gui.dialogs.showConfirmDialog({
title: "设置键位数",
text: "这是一个本地乐谱,请设置这个乐谱的键位数",
canExit: true,
buttons: ["8 键位", "15 键位"],
callback: function(id) {
files.write(files.join(sheetmgr.rootDir, element.fileName), (function() {
var readable = files.open(files.join(sheetmgr.rootDir, element.fileName), "r", sheetmgr.encoding);
var parsed = eval(readable.read())[0];
readable.close();
parsed.keyCount = id == 0 ? (element.keyCount = 8) : (element.keyCount = 15)
return "[" + JSON.stringify(parsed) + "]";
}()), sheetmgr.encoding);
toast("已将 " + element.name + " 设置为 " + element.keyCount + " 键乐谱\n请再次点击弹奏按钮。\n长按乐谱以重新设置键位数。");
},
});
} else {
switch(element.keyCount) {
case 8: {
if(config.values.key_coordinates8.length != 8) {
toast("未设置8键键位坐标或坐标数据错误请前往设置页设置键位坐标");
return true;
}
};break;
case 15: {
if(config.values.key_coordinates15.length != 15) {
toast("未设置15键键位坐标或坐标数据错误请前往设置页设置键位坐标");
return true;
}
};break;
}
gui.main.__internal_dismiss();
gui.player_panel.__internal_showPanel(element);
}
}
return true;
}
}));
element.v_relative.addView(element.v_play);
}
element.v_delete = new android.widget.ImageView(ctx);
@@ -2142,7 +2175,8 @@ gui.dialogs.showProgressDialog(function(o) {
s.ns0_listView.setAdapter(s.ns0_listAdapterController.self);
s.ns0_listView.setOnItemClickListener(new android.widget.AdapterView.OnItemClickListener({
onItemClick: function(parent, view, pos, id) {
var item = s.ns0_listAdapterController.get(pos);if(item.type == -1) {
var item = s.ns0_listAdapterController.get(pos);
if(item.type == -1) {
switch(item.index) {
case 0: {
gui.dialogs.showConfirmDialog({
@@ -2169,6 +2203,24 @@ gui.dialogs.showProgressDialog(function(o) {
});
break;
}
case 1: {
gui.dialogs.showConfirmDialog({
title: "修改乐谱键位数",
text: "版本15增加了对不同键位乐器(8键位和15键位)乐谱的支持,它们使用不同的坐标数据。\n" +
"当前已存储在本地的乐谱(外部导入的乐谱或在版本15之前从共享乐谱下载的乐谱)它们没有键位信息SkyAutoPlayerScript无法确认它是8键位乐谱还是15键位乐谱。\n" +
"共享乐谱信息已更新,现在下载的共享乐谱它已经包含了乐谱键位信息,不需要再设置。\n" +
"点击开始弹奏按钮时若无键位信息则会弹出对话框以选择乐谱键位SkyAutoPlayerScript会保存键位信息到乐谱。\n" +
"如果因为一些原因设置了错误的键位信息,可以长按乐谱来重新设置。\n\n" +
"p.s.: 需要重新设置15键键位坐标。",
canExit: true,
skip: function(checked) {
config.values.skipChangeKeyCountTip = config.save("skip_change_key_count_tip", checked);
if(checked) s.ns0_listAdapterController.removeByIndex(pos, true);
},
buttons: ["确认"]
});
break;
}
}
return true;
}
@@ -2251,6 +2303,30 @@ gui.dialogs.showProgressDialog(function(o) {
}()), -2, -2, null, true);
}
}));
s.ns0_listView.setOnItemLongClickListener(new android.widget.AdapterView.OnItemLongClickListener({
onItemLongClick: function(parent, view, pos, id) {
var item = s.ns0_listAdapterController.get(pos);
if(!item.failed && item.type == 0) {
gui.dialogs.showConfirmDialog({
title: "设置键位数",
text: "这是一个本地乐谱,请设置这个乐谱的键位数",
canExit: true,
buttons: ["8 键位", "15 键位"],
callback: function(id) {
files.write(files.join(sheetmgr.rootDir, item.fileName), (function() {
var readable = files.open(files.join(sheetmgr.rootDir, item.fileName), "r", sheetmgr.encoding);
var parsed = eval(readable.read())[0];
readable.close();
parsed.keyCount = id == 0 ? (item.keyCount = 8) : (item.keyCount = 15)
return "[" + JSON.stringify(parsed) + "]";
}()), sheetmgr.encoding);
toast("已将 " + item.name + " 设置为 " + item.keyCount + " 键乐谱\n请再次点击弹奏按钮。\n长按乐谱以重新设置键位数。");
},
});
}
return true;
},
}));
s.ns0_rl.addView(s.ns0_listView);
s.ns0_progress = new android.widget.ProgressBar(ctx, null, android.R.attr.progressBarStyleHorizontal);
@@ -2287,6 +2363,11 @@ gui.dialogs.showProgressDialog(function(o) {
title: "如何导入本地乐谱",
index: 0
});//上传乐谱提示
if(!config.values.skipChangeKeyCountTip) s.ns0_listAdapterController.add({
type: -1,
title: "修改乐谱键位数",
index: 1
});//修改乐谱键位提示
s.ns0_listAdapterController.notifyChange();
threads.start(function() {
sheetmgr.getLocalSheetList(isForce, function(successCount, failedCount) {
@@ -2295,10 +2376,11 @@ gui.dialogs.showProgressDialog(function(o) {
});
}).map(function(e, i) {
gui.run(function(){
if(!e.failed) {
s.ns0_listAdapterController.add(e);
} else if(config.values.showFailedSheets){
s.ns0_listAdapterController.add(e);
if(!e.failed || config.values.showFailedSheets) {
s.ns0_listAdapterController.add((function(item) {
item.type = 0;
return item;
}(e)));
}
});
});
@@ -2433,7 +2515,7 @@ gui.dialogs.showProgressDialog(function(o) {
element.download.setBackgroundDrawable(gui.utils.ripple_drawable(element.download.getMeasuredWidth(), element.download.getMeasuredHeight(), "rect"));
element.download.setOnClickListener(new android.view.View.OnClickListener({
onClick: function() { threads.start(function() {
if(!element.isShowingStatusBar) sheetmgr.downloadAndLoad(element.file, element.author, function(r) {
if(!element.isShowingStatusBar) sheetmgr.downloadAndLoad(element.file, {author: element.author, keyCount: element.keyCount}, function(r) {
switch(r.status) {
case 1: {
gui.run(function() {
@@ -2795,10 +2877,29 @@ gui.dialogs.showProgressDialog(function(o) {
name: "基本设置",
}, {
type: "default",
name: "设置键位坐标",
name: "设置8键盘键位坐标",
onClick: function(v) {
gui.main.__internal_dismiss();
gui.key_coordinate_navigation.show();
config.values.key_coordinates8.length = 0;
gui.key_coordinate_navigation.show(8, function(value) {
config.values.key_coordinates8.push(value);
}, function() {
config.save("key_coordinates8");
toast("坐标设置已保存至存储!");
});
}
}, {
type: "default",
name: "设置15键盘键位坐标",
onClick: function(v) {
gui.main.__internal_dismiss();
config.values.key_coordinates15.length = 0;
gui.key_coordinate_navigation.show(15, function(value) {
config.values.key_coordinates15.push(value);
}, function() {
config.save("key_coordinates15");
toast("坐标设置已保存至存储!");
});
}
}, {
type: "checkbox",
@@ -2857,7 +2958,7 @@ gui.dialogs.showProgressDialog(function(o) {
try {
android.os.Build.VERSION_CODES.R
} catch (e) {
sList.list.splice(3, 1);
sList.list.splice(4, 1);
}
return sList.list;
}()), function self(element) {

View File

@@ -1,5 +1,10 @@
版本: 15
更新时间: 2020.10.01 00:00
更新内容:
* 新增8键位乐谱支持
版本: 14
更新时间: 2020.09.03 20:51
更新时间: 2020.09.13 20:51
更新内容:
* 新增:共享乐谱支持搜索功能
* 改善:窗口拓展功能