Compare commits
40 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c0976b30c1 | ||
|
|
65fdecb9be | ||
|
|
2a16af252f | ||
|
|
cd967af5c8 | ||
|
|
df9ddff4e4 | ||
|
|
8f26c9e1de | ||
|
|
b88515f4f2 | ||
|
|
46b88f4c6f | ||
|
|
03af82818a | ||
|
|
9f5a6ab58e | ||
|
|
f468dabb89 | ||
|
|
bb570e1b5c | ||
|
|
e57d7d5ad3 | ||
|
|
b3d3f77ba5 | ||
|
|
8abf823182 | ||
|
|
064a8fbe9a | ||
|
|
c43edd8549 | ||
|
|
eca5b79934 | ||
|
|
4e14a0d2c9 | ||
|
|
f38adb904f | ||
|
|
44aab3f525 | ||
|
|
1383f66726 | ||
|
|
715e21a420 | ||
|
|
a9cbc2348f | ||
|
|
13979f81ae | ||
|
|
8ff1de8e21 | ||
|
|
383d79f95b | ||
|
|
93918c8a8a | ||
|
|
8f737fa07b | ||
|
|
32d83d3b3d | ||
|
|
ae090a2141 | ||
|
|
e9dc16cf9d | ||
|
|
d88424e659 | ||
|
|
07e17626a3 | ||
|
|
adca548b63 | ||
|
|
e5d024e2d2 | ||
|
|
2d44ba080b | ||
|
|
aeae50875b | ||
|
|
e9a4662001 | ||
|
|
3b83a9b113 |
63
README.md
63
README.md
@@ -14,9 +14,15 @@ A script to play Sheets generated by SkyStudio automatically in game Sky with ac
|
||||
* 自动更新,及时修复BUG,无需担心版本过时问题。
|
||||
* ...
|
||||
|
||||
## 使用
|
||||
①为Auto.js开启**无障碍服务**和**悬浮窗权限**。
|
||||
</br>②在Auto.js中新建一个脚本并粘贴以下代码并运行:
|
||||
## 使用(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";
|
||||
@@ -42,17 +48,19 @@ emitter.on('evaluate', function(s){
|
||||
```
|
||||
|
||||
在Auto.js版本`4.1.1 Alpha2 (461)`中测试通过,不保证其他版本的兼容性(取决于其他版本相对于此版本的API是否有`breaking changes`)
|
||||
</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>手机请下载`autoJs-V4.1.1.Alpha2-common-armeabi-v7a-debug.apk`
|
||||
|
||||
### 清除数据
|
||||
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/");
|
||||
```
|
||||
|
||||
## 上传乐谱
|
||||
<br>
|
||||
|
||||
# 上传乐谱
|
||||
|
||||
你可以fork本仓库,将你要上传的乐谱添加至`shared_sheets`文件夹,并按照以下要求在`shared_sheets.json`添加项目
|
||||
```javascript
|
||||
@@ -69,6 +77,8 @@ files.removeDir("/storage/emulated/0/Documents/SkyAutoPlayer/");
|
||||
"bpm" : 320,
|
||||
//暂时没用
|
||||
"suggested_instrument": 1,
|
||||
//乐谱键位数(8键或15键)
|
||||
"keyCount": 15,
|
||||
//乐谱音高
|
||||
"pitchLevel": 0
|
||||
}
|
||||
@@ -77,8 +87,11 @@ files.removeDir("/storage/emulated/0/Documents/SkyAutoPlayer/");
|
||||
修改完成后,申请`Pull Request`,等待merge即可。
|
||||
> 请注意:在申请`Pull Request`之前请确保你的SkyAutoPlayerScript仓库已同步至最新,以免出现意外问题!
|
||||
|
||||
或通过发送乐谱到邮箱[beamiscool@qq.com](mailto:beamiscool@qq.com)
|
||||
|
||||
## 注意
|
||||
<br>
|
||||
|
||||
# 注意
|
||||
### 请仔细阅读以下使用须知!
|
||||
|
||||
1. 未充分测试,若遇到BUG,请酷安私信@StageGuard或新建Issue来反馈BUG!
|
||||
@@ -86,17 +99,41 @@ 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 Request,Issue,New feature request
|
||||
|
||||
## 图标来源
|
||||
## 贡献者名单(按照首次贡献时间排序)
|
||||
|
||||
### SkyAutoPlayerScript
|
||||
无
|
||||
|
||||
### 共享乐谱
|
||||
酷安[@Aex技术总监](http://www.coolapk.com/u/1286879)<br>
|
||||
酷安[@夏卡卡卡](http://www.coolapk.com/u/2313452)<br>
|
||||
酷安[@深空失忆か](http://www.coolapk.com/u/3005974)<br>
|
||||
抖音@子哲啊🌈(zizhe1880689503)<br>
|
||||
酷安[@你们很有趣呢](http://www.coolapk.com/u/2416229)<br>
|
||||
酷安[@情如风雪无常](http://www.coolapk.com/u/643670)<br>
|
||||
酷安[@慕疵](http://www.coolapk.com/u/3286967)<br>
|
||||
酷安[@社区最弱萌新](http://www.coolapk.com/u/3291313)<br>
|
||||
酷安[@九方辰](http://www.coolapk.com/u/634078)<br>
|
||||
酷安[@北极马可罗尼](http://www.coolapk.com/u/463478)<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>
|
||||
|
||||
# 图标来源
|
||||
[Iconfont-阿里巴巴矢量图标库](https://www.iconfont.cn/)
|
||||
<br>
|
||||
|
||||
## 鸣谢
|
||||
# 鸣谢
|
||||
[projectXero](https://gitee.com/projectXero) (提供适用于Rhino的`ListAdapter`)
|
||||
<br>
|
||||
|
||||
## 许可证协议
|
||||
# 许可证协议
|
||||
```
|
||||
SkyAutoPlayer (Auto.js script)
|
||||
Copyright © 2020 StageGuard
|
||||
|
||||
@@ -1 +1 @@
|
||||
c45c75bad3b4ddc25595429bcfc38101865f78e3
|
||||
65fdecb9be4821eaa1ef42a71598c250e64a3de5
|
||||
BIN
resources/filter.png
Normal file
BIN
resources/filter.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.7 KiB |
BIN
resources/search.png
Normal file
BIN
resources/search.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.6 KiB |
@@ -1,12 +1,355 @@
|
||||
{
|
||||
"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": "酷安@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": "酷安@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=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=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=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=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=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=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=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=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=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=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=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=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=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=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=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=https://space.bilibili.com/623364258>@UTF16<a/>分享乐谱 猪猪侠",
|
||||
"bpm" : 280,
|
||||
"suggested_instrument": 1,
|
||||
"keyCount": 15,
|
||||
"pitchLevel": 0
|
||||
}, {
|
||||
"name": "もペもぺ(mopemope)",
|
||||
"file": "もペもぺ(mopemope).txt",
|
||||
"author": "酷安@夏卡卡卡",
|
||||
"desc": "酷安酷友<a href=http://www.coolapk.com/u/2313452>@夏卡卡卡<a/>分享乐谱 もペもぺ(mopemope)\n一首音游玩家熟悉的、好听的儿歌(并不)\n非完整版",
|
||||
"bpm" : 400,
|
||||
"suggested_instrument": 1,
|
||||
"keyCount": 15,
|
||||
"pitchLevel": 7
|
||||
}, {
|
||||
"name": "[IPhone]马林巴琴",
|
||||
"file": "IPhone马林巴琴.txt",
|
||||
"author": "酷安@夏卡卡卡",
|
||||
"desc": "酷安酷友<a href=http://www.coolapk.com/u/2313452>@夏卡卡卡<a/>分享乐谱 [IPhone]马林巴琴",
|
||||
"bpm" : 660,
|
||||
"suggested_instrument": 1,
|
||||
"keyCount": 15,
|
||||
"pitchLevel": 0
|
||||
}, {
|
||||
"name": "穿越时空的思念",
|
||||
"file": "穿越时空的思念.txt",
|
||||
"author": "酷安@北极马可罗尼",
|
||||
"desc": "酷安酷友<a href=http://www.coolapk.com/u/463478>@北极马可罗尼<a/>分享乐谱 穿越时空的思念",
|
||||
"bpm" : 160,
|
||||
"suggested_instrument": 1,
|
||||
"keyCount": 15,
|
||||
"pitchLevel": 0
|
||||
}, {
|
||||
"name": "不染",
|
||||
"file": "不染_enhanced.txt",
|
||||
"author": "酷安@九方辰",
|
||||
"desc": "酷安酷友<a href=http://www.coolapk.com/u/634078>酷安@九方辰<a/>分享乐谱 不染\n原作者为 抖音用户@子哲啊🌈(zizhe1880689503) \n 完善后续,修改了杂音",
|
||||
"bpm" : 720,
|
||||
"bpm" : 150,
|
||||
"suggested_instrument": 1,
|
||||
"pitchLevel": 7
|
||||
"keyCount": 15,
|
||||
"pitchLevel": 0
|
||||
}, {
|
||||
"name": "Souvevirs d'Enfance\n童年的回忆",
|
||||
"file": "Souvevirs_d'Enfance.txt",
|
||||
@@ -14,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大调 简易版",
|
||||
@@ -22,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": "九九八十一",
|
||||
@@ -30,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",
|
||||
@@ -38,6 +384,7 @@
|
||||
"desc": "酷安酷友<a href=http://www.coolapk.com/u/2313452>@夏卡卡卡<a/>分享乐谱 Коробейники (货郎)",
|
||||
"bpm" : 720,
|
||||
"suggested_instrument": 1,
|
||||
"keyCount": 15,
|
||||
"pitchLevel": 0
|
||||
}, {
|
||||
"name": "土耳其进行曲(莫扎特)",
|
||||
@@ -46,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你离开的事实",
|
||||
@@ -54,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": "名侦探柯南",
|
||||
@@ -62,6 +411,7 @@
|
||||
"desc": "酷安酷友<a href=http://www.coolapk.com/u/643670>@情如风雪如常<a/>分享乐谱 名侦探柯南",
|
||||
"bpm" : 511,
|
||||
"suggested_instrument": 1,
|
||||
"keyCount": 15,
|
||||
"pitchLevel": 8
|
||||
}, {
|
||||
"name": "Unity",
|
||||
@@ -70,6 +420,7 @@
|
||||
"desc": "酷安酷友<a href=http://www.coolapk.com/u/2313452>@夏卡卡卡<a/>分享乐谱 Unity",
|
||||
"bpm" : 600,
|
||||
"suggested_instrument": 1,
|
||||
"keyCount": 15,
|
||||
"pitchLevel": 0
|
||||
}, {
|
||||
"name": "大鱼(简易)",
|
||||
@@ -78,6 +429,7 @@
|
||||
"desc": "酷安酷友<a href=http://www.coolapk.com/u/2313452>@夏卡卡卡<a/>分享乐谱 大鱼(简易)",
|
||||
"bpm" : 288,
|
||||
"suggested_instrument": 1,
|
||||
"keyCount": 15,
|
||||
"pitchLevel": 0
|
||||
}, {
|
||||
"name": "嘿咻狂想曲",
|
||||
@@ -86,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": "城南花已开",
|
||||
@@ -94,6 +447,7 @@
|
||||
"desc": "酷安酷友<a href=http://www.coolapk.com/u/2313452>@夏卡卡卡<a/>分享乐谱 城南花已开",
|
||||
"bpm" : 480,
|
||||
"suggested_instrument": 1,
|
||||
"keyCount": 15,
|
||||
"pitchLevel": 0
|
||||
}, {
|
||||
"name": "撒野完整版",
|
||||
@@ -102,6 +456,7 @@
|
||||
"desc": "酷安酷友<a href=http://www.coolapk.com/u/3005974>@深空失忆か<a/>分享乐谱 撒野完整版",
|
||||
"bpm" : 240,
|
||||
"suggested_instrument": 1,
|
||||
"keyCount": 15,
|
||||
"pitchLevel": 0
|
||||
}, {
|
||||
"name": "婚礼进行曲(整活用)",
|
||||
@@ -110,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",
|
||||
@@ -118,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",
|
||||
@@ -126,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": "生命之名(いのちの名前)",
|
||||
@@ -134,6 +492,7 @@
|
||||
"desc": "酷安酷友<a href=http://www.coolapk.com/u/2416229>酷安@你们很有趣呢<a/>分享乐谱\n 生命之名(いのちの名前)\n(千と千寻の神隠し插曲One Summer’s Day完整版)\n这是我第一次的手编谱,可能有些音转的不完美。\nPs:这谱很长很长,而且越弹到后面越不对劲。",
|
||||
"bpm" : 595,
|
||||
"suggested_instrument": 1,
|
||||
"keyCount": 15,
|
||||
"pitchLevel": 1
|
||||
}, {
|
||||
"name": "Martin Ermen - River Flows in You",
|
||||
@@ -142,6 +501,7 @@
|
||||
"desc": "没写outro",
|
||||
"bpm" : 572,
|
||||
"suggested_instrument": 1,
|
||||
"keyCount": 15,
|
||||
"pitchLevel": 4
|
||||
}, {
|
||||
"name": "神々が恋した幻想郷(修改版)",
|
||||
@@ -150,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": "猪八戒背媳妇(简易单指)",
|
||||
@@ -158,6 +519,7 @@
|
||||
"desc": "酷安酷友<a href=http://www.coolapk.com/u/2313452>@夏卡卡卡<a/>分享乐谱 猪八戒背媳妇(简易单指)\n背 背 友 尽 曲 ",
|
||||
"bpm" : 440,
|
||||
"suggested_instrument": 1,
|
||||
"keyCount": 15,
|
||||
"pitchLevel": 0
|
||||
}, {
|
||||
"name": "猪八戒背媳妇",
|
||||
@@ -166,6 +528,7 @@
|
||||
"desc": "酷安酷友<a href=http://www.coolapk.com/u/2313452>@夏卡卡卡<a/>分享乐谱 猪八戒背媳妇\n背 背 友 尽 曲 ",
|
||||
"bpm" : 440,
|
||||
"suggested_instrument": 1,
|
||||
"keyCount": 15,
|
||||
"pitchLevel": 0
|
||||
}, {
|
||||
"name": "夜的钢琴曲(五)",
|
||||
@@ -174,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)",
|
||||
@@ -182,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",
|
||||
@@ -190,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)",
|
||||
@@ -198,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)",
|
||||
@@ -206,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)",
|
||||
@@ -214,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铃声(循环)",
|
||||
@@ -222,6 +591,7 @@
|
||||
"desc": "酷安酷友<a href=http://www.coolapk.com/u/2313452>@夏卡卡卡<a/>分享乐谱 MIUI铃声(循环)",
|
||||
"bpm" : 280,
|
||||
"suggested_instrument": 1,
|
||||
"keyCount": 15,
|
||||
"pitchLevel": 0
|
||||
}, {
|
||||
"name": "美丽拍档(朱一旦枯燥曲)",
|
||||
@@ -230,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",
|
||||
@@ -238,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": "不染",
|
||||
@@ -246,6 +618,7 @@
|
||||
"desc": "抖音用户@子哲啊🌈(zizhe1880689503)上传乐谱 不染",
|
||||
"bpm" : 150,
|
||||
"suggested_instrument": 1,
|
||||
"keyCount": 15,
|
||||
"pitchLevel": 0
|
||||
}, {
|
||||
"name": "赤岭",
|
||||
@@ -254,6 +627,7 @@
|
||||
"desc": "抖音用户@子哲啊🌈(zizhe1880689503)上传乐谱 赤岭",
|
||||
"bpm" : 145,
|
||||
"suggested_instrument": 1,
|
||||
"keyCount": 15,
|
||||
"pitchLevel": 0
|
||||
}, {
|
||||
"name": "大鱼海棠",
|
||||
@@ -262,6 +636,7 @@
|
||||
"desc": "抖音用户@子哲啊🌈(zizhe1880689503)上传乐谱 大鱼海棠",
|
||||
"bpm" : 123,
|
||||
"suggested_instrument": 1,
|
||||
"keyCount": 15,
|
||||
"pitchLevel": 0
|
||||
}, {
|
||||
"name": "失眠飞行t",
|
||||
@@ -270,6 +645,7 @@
|
||||
"desc": "抖音用户@子哲啊🌈(zizhe1880689503)上传乐谱 失眠飞行t",
|
||||
"bpm" : 200,
|
||||
"suggested_instrument": 1,
|
||||
"keyCount": 15,
|
||||
"pitchLevel": 0
|
||||
}, {
|
||||
"name": "千本桜",
|
||||
@@ -278,6 +654,7 @@
|
||||
"desc": "酷安酷友<a href=http://www.coolapk.com/u/2313452>@夏卡卡卡<a/>分享乐谱 千本桜",
|
||||
"bpm" : 614,
|
||||
"suggested_instrument": 1,
|
||||
"keyCount": 15,
|
||||
"pitchLevel": 5
|
||||
}, {
|
||||
"name": "神々が恋した幻想郷",
|
||||
@@ -286,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",
|
||||
@@ -294,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",
|
||||
@@ -302,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]だんご大家族",
|
||||
@@ -310,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": "いつも何度でも (「千と千尋の神隠し」主題歌)",
|
||||
@@ -318,6 +699,7 @@
|
||||
"desc": "酷安酷友<a href=http://www.coolapk.com/u/2313452>@夏卡卡卡<a/>分享乐谱 いつも何度でも \n(「千と千尋の神隠し」主題歌)",
|
||||
"bpm" : 230,
|
||||
"suggested_instrument": 1,
|
||||
"keyCount": 15,
|
||||
"pitchLevel": 5
|
||||
}, {
|
||||
"name": "[钢琴曲]潮鸣り(原速)",
|
||||
@@ -326,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",
|
||||
@@ -334,6 +717,7 @@
|
||||
"desc": "酷安酷友<a href=http://www.coolapk.com/u/3005974>@深空失忆か<a/>分享乐谱 Lemon",
|
||||
"bpm" : 500,
|
||||
"suggested_instrument": 1,
|
||||
"keyCount": 15,
|
||||
"pitchLevel": 0
|
||||
}, {
|
||||
"name": "克罗地亚狂想曲",
|
||||
@@ -342,6 +726,7 @@
|
||||
"desc": "酷安酷友<a href=http://www.coolapk.com/u/3005974>@深空失忆か<a/>分享乐谱 克罗地亚狂想曲",
|
||||
"bpm" : 720,
|
||||
"suggested_instrument": 1,
|
||||
"keyCount": 15,
|
||||
"pitchLevel": 3
|
||||
}, {
|
||||
"name": "斗地主",
|
||||
@@ -350,6 +735,7 @@
|
||||
"desc": "酷安酷友<a href=http://www.coolapk.com/u/3005974>@深空失忆か<a/>分享乐谱 斗地主",
|
||||
"bpm" : 240,
|
||||
"suggested_instrument": 1,
|
||||
"keyCount": 15,
|
||||
"pitchLevel": 10
|
||||
}, {
|
||||
"name": "黑人抬棺Astronomia",
|
||||
@@ -358,6 +744,7 @@
|
||||
"desc": "酷安酷友<a href=http://www.coolapk.com/u/3005974>@深空失忆か<a/>分享乐谱 黑人抬棺Astronomia",
|
||||
"bpm" : 240,
|
||||
"suggested_instrument": 1,
|
||||
"keyCount": 15,
|
||||
"pitchLevel": 10
|
||||
}, {
|
||||
"name": "简易茉莉花",
|
||||
@@ -366,6 +753,7 @@
|
||||
"desc": "酷安酷友<a href=http://www.coolapk.com/u/2313452>@夏卡卡卡<a/>分享乐谱 简易茉莉花\n建议在由洞穴效应的地方弹;最后的部分因音高问题进行了小修改",
|
||||
"bpm" : 200,
|
||||
"suggested_instrument": 1,
|
||||
"keyCount": 15,
|
||||
"pitchLevel": 0
|
||||
}, {
|
||||
"name": "大悲咒",
|
||||
@@ -374,6 +762,7 @@
|
||||
"desc": "酷安酷友<a href=http://www.coolapk.com/u/1286879>@Aex技术总监</a>分享乐谱 大悲咒",
|
||||
"bpm" : 151,
|
||||
"suggested_instrument": 1,
|
||||
"keyCount": 15,
|
||||
"pitchLevel": 3
|
||||
}, {
|
||||
"name": "坏苹果",
|
||||
@@ -382,6 +771,7 @@
|
||||
"desc": "酷安酷友<a href=http://www.coolapk.com/u/1286879>@Aex技术总监</a>分享乐谱 坏苹果",
|
||||
"bpm" : 720,
|
||||
"suggested_instrument": 1,
|
||||
"keyCount": 15,
|
||||
"pitchLevel": 6
|
||||
}, {
|
||||
"name": "三葉",
|
||||
@@ -390,6 +780,7 @@
|
||||
"desc": "酷安酷友<a href=http://www.coolapk.com/u/1286879>@Aex技术总监</a>分享乐谱 三葉",
|
||||
"bpm" : 318,
|
||||
"suggested_instrument": 1,
|
||||
"keyCount": 15,
|
||||
"pitchLevel": 0
|
||||
}, {
|
||||
"name": "亡灵序曲选节",
|
||||
@@ -398,6 +789,7 @@
|
||||
"desc": "酷安酷友<a href=http://www.coolapk.com/u/1286879>@Aex技术总监</a>分享乐谱 亡灵序曲选节",
|
||||
"bpm" : 240,
|
||||
"suggested_instrument": 1,
|
||||
"keyCount": 15,
|
||||
"pitchLevel": 6
|
||||
}, {
|
||||
"name": "天空之城",
|
||||
@@ -406,6 +798,7 @@
|
||||
"desc": "酷安酷友<a href=http://www.coolapk.com/u/1286879>@Aex技术总监</a>分享乐谱 天空之城",
|
||||
"bpm" : 240,
|
||||
"suggested_instrument": 1,
|
||||
"keyCount": 15,
|
||||
"pitchLevel": 3
|
||||
}, {
|
||||
"name": "幻昼",
|
||||
@@ -414,6 +807,7 @@
|
||||
"desc": "酷安酷友<a href=http://www.coolapk.com/u/1286879>@Aex技术总监</a>分享乐谱 幻昼",
|
||||
"bpm" : 281,
|
||||
"suggested_instrument": 1,
|
||||
"keyCount": 15,
|
||||
"pitchLevel": 10
|
||||
}, {
|
||||
"name": "烟花易冷",
|
||||
@@ -422,6 +816,7 @@
|
||||
"desc": "酷安酷友<a href=http://www.coolapk.com/u/1286879>@Aex技术总监</a>分享乐谱 烟花易冷",
|
||||
"bpm" : 132,
|
||||
"suggested_instrument": 1,
|
||||
"keyCount": 15,
|
||||
"pitchLevel": 4
|
||||
}, {
|
||||
"name": "菊次郎的夏天",
|
||||
@@ -430,6 +825,7 @@
|
||||
"desc": "酷安酷友<a href=http://www.coolapk.com/u/1286879>@Aex技术总监</a>分享乐谱 菊次郎的夏天",
|
||||
"bpm" : 349,
|
||||
"suggested_instrument": 1,
|
||||
"keyCount": 15,
|
||||
"pitchLevel": 2
|
||||
}, {
|
||||
"name": "起风了",
|
||||
@@ -438,6 +834,7 @@
|
||||
"desc": "酷安酷友<a href=http://www.coolapk.com/u/1286879>@Aex技术总监</a>分享乐谱 起风了",
|
||||
"bpm" : 236,
|
||||
"suggested_instrument": 1,
|
||||
"keyCount": 15,
|
||||
"pitchLevel": 6
|
||||
}]
|
||||
}
|
||||
BIN
shared_sheets/Co_Chac_Yeu_La_Day-MTP.txt
Normal file
BIN
shared_sheets/Co_Chac_Yeu_La_Day-MTP.txt
Normal file
Binary file not shown.
BIN
shared_sheets/Dream_It_Possible.txt
Normal file
BIN
shared_sheets/Dream_It_Possible.txt
Normal file
Binary file not shown.
BIN
shared_sheets/Hanava.txt
Normal file
BIN
shared_sheets/Hanava.txt
Normal file
Binary file not shown.
BIN
shared_sheets/IPhone马林巴琴.txt
Normal file
BIN
shared_sheets/IPhone马林巴琴.txt
Normal file
Binary file not shown.
BIN
shared_sheets/Love_5.txt
Normal file
BIN
shared_sheets/Love_5.txt
Normal file
Binary file not shown.
BIN
shared_sheets/Mojito.txt
Normal file
BIN
shared_sheets/Mojito.txt
Normal file
Binary file not shown.
BIN
shared_sheets/See_You_Again_(Stb).txt
Normal file
BIN
shared_sheets/See_You_Again_(Stb).txt
Normal file
Binary file not shown.
BIN
shared_sheets/Summertime.txt
Normal file
BIN
shared_sheets/Summertime.txt
Normal file
Binary file not shown.
BIN
shared_sheets/もペもぺ(mopemope).txt
Normal file
BIN
shared_sheets/もペもぺ(mopemope).txt
Normal file
Binary file not shown.
BIN
shared_sheets/下雨天.txt
Normal file
BIN
shared_sheets/下雨天.txt
Normal file
Binary file not shown.
BIN
shared_sheets/不知所措.txt
Normal file
BIN
shared_sheets/不知所措.txt
Normal file
Binary file not shown.
BIN
shared_sheets/体面.txt
Normal file
BIN
shared_sheets/体面.txt
Normal file
Binary file not shown.
BIN
shared_sheets/偏爱_UTF16.txt
Normal file
BIN
shared_sheets/偏爱_UTF16.txt
Normal file
Binary file not shown.
BIN
shared_sheets/四月是你的谎言_UTF16.txt
Normal file
BIN
shared_sheets/四月是你的谎言_UTF16.txt
Normal file
Binary file not shown.
BIN
shared_sheets/夏天的风GF_UTF16.txt
Normal file
BIN
shared_sheets/夏天的风GF_UTF16.txt
Normal file
Binary file not shown.
BIN
shared_sheets/夏天的风_UTF16.txt
Normal file
BIN
shared_sheets/夏天的风_UTF16.txt
Normal file
Binary file not shown.
BIN
shared_sheets/大悲咒_UTF16.txt
Normal file
BIN
shared_sheets/大悲咒_UTF16.txt
Normal file
Binary file not shown.
BIN
shared_sheets/好运来HX_UTF16.txt
Normal file
BIN
shared_sheets/好运来HX_UTF16.txt
Normal file
Binary file not shown.
BIN
shared_sheets/小星星_UTF16.txt
Normal file
BIN
shared_sheets/小星星_UTF16.txt
Normal file
Binary file not shown.
BIN
shared_sheets/幻昼CH_UTF16.txt
Normal file
BIN
shared_sheets/幻昼CH_UTF16.txt
Normal file
Binary file not shown.
BIN
shared_sheets/微微.txt
Normal file
BIN
shared_sheets/微微.txt
Normal file
Binary file not shown.
BIN
shared_sheets/心作_UTF16.txt
Normal file
BIN
shared_sheets/心作_UTF16.txt
Normal file
Binary file not shown.
BIN
shared_sheets/恋爱循环.txt
Normal file
BIN
shared_sheets/恋爱循环.txt
Normal file
Binary file not shown.
BIN
shared_sheets/打上花火_UTF16.txt
Normal file
BIN
shared_sheets/打上花火_UTF16.txt
Normal file
Binary file not shown.
BIN
shared_sheets/极乐净土(和弦).txt
Normal file
BIN
shared_sheets/极乐净土(和弦).txt
Normal file
Binary file not shown.
BIN
shared_sheets/极乐净土(无和弦).txt
Normal file
BIN
shared_sheets/极乐净土(无和弦).txt
Normal file
Binary file not shown.
BIN
shared_sheets/演员.txt
Normal file
BIN
shared_sheets/演员.txt
Normal file
Binary file not shown.
BIN
shared_sheets/猪猪侠_UTF16.txt
Normal file
BIN
shared_sheets/猪猪侠_UTF16.txt
Normal file
Binary file not shown.
BIN
shared_sheets/穿越时空的思念.txt
Normal file
BIN
shared_sheets/穿越时空的思念.txt
Normal file
Binary file not shown.
BIN
shared_sheets/童话镇.txt
Normal file
BIN
shared_sheets/童话镇.txt
Normal file
Binary file not shown.
BIN
shared_sheets/虫儿飞儿歌_UTF16.txt
Normal file
BIN
shared_sheets/虫儿飞儿歌_UTF16.txt
Normal file
Binary file not shown.
BIN
shared_sheets/误红装A1_UTF16.txt
Normal file
BIN
shared_sheets/误红装A1_UTF16.txt
Normal file
Binary file not shown.
BIN
shared_sheets/走马.txt
Normal file
BIN
shared_sheets/走马.txt
Normal file
Binary file not shown.
BIN
shared_sheets/辞乆门回忆_UTF16.txt
Normal file
BIN
shared_sheets/辞乆门回忆_UTF16.txt
Normal file
Binary file not shown.
BIN
shared_sheets/追光者.txt
Normal file
BIN
shared_sheets/追光者.txt
Normal file
Binary file not shown.
BIN
shared_sheets/那女孩对我说.txt
Normal file
BIN
shared_sheets/那女孩对我说.txt
Normal file
Binary file not shown.
BIN
shared_sheets/阿珍爱上了阿强_UTF16.txt
Normal file
BIN
shared_sheets/阿珍爱上了阿强_UTF16.txt
Normal file
Binary file not shown.
BIN
shared_sheets/雨林_UTF16.txt
Normal file
BIN
shared_sheets/雨林_UTF16.txt
Normal file
Binary file not shown.
@@ -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
|
||||
@@ -80,7 +82,15 @@ sheetmgr = {
|
||||
return this.cachedOnlineSharedSheetInfoList;
|
||||
},
|
||||
|
||||
downloadAndLoad: function(file, author, listener) {
|
||||
filterOnlineSharedSheet: function(filterBlock) {
|
||||
var resultList = [];
|
||||
this.getOnlineSharedSheetInfoList().map(function(element, index) {
|
||||
if(filterBlock(element)) resultList.push(element);
|
||||
});
|
||||
return resultList;
|
||||
},
|
||||
|
||||
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) {
|
||||
@@ -95,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];
|
||||
@@ -211,6 +222,8 @@ sheetplayer = {
|
||||
playing: false,
|
||||
nextInterval: 0,
|
||||
|
||||
keyCount: 15,
|
||||
|
||||
speed: 1,
|
||||
current_speed_index: 9,
|
||||
speed_list: [
|
||||
@@ -244,28 +257,27 @@ sheetplayer = {
|
||||
play: function(listener) {
|
||||
if(this.playing == true) return;
|
||||
this.playing = true;
|
||||
this.thread = threads.start(function() {
|
||||
while(
|
||||
sheetplayer.playing && sheetplayer.currentNote < sheetplayer.noteCount
|
||||
) {
|
||||
|
||||
this.thread = threads.start(function() {
|
||||
var executor = java.util.concurrent.Executors.newCachedThreadPool();
|
||||
var tragetRunnable = new java.lang.Runnable({
|
||||
run: function() {
|
||||
var gestureMap = [];
|
||||
sheetplayer.notes[sheetplayer.currentNote].keys.map(function(e, i) {
|
||||
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) + ");");
|
||||
}
|
||||
});
|
||||
while(sheetplayer.playing && sheetplayer.currentNote < sheetplayer.noteCount) {
|
||||
if((sheetplayer.currentNote + 1) == sheetplayer.noteCount) {
|
||||
sheetplayer.nextInterval = sheetplayer.notes[sheetplayer.currentNote].time - sheetplayer.notes[sheetplayer.currentNote - 1].time;
|
||||
} else {
|
||||
sheetplayer.nextInterval = sheetplayer.notes[sheetplayer.currentNote + 1].time - sheetplayer.notes[sheetplayer.currentNote].time;
|
||||
}
|
||||
threads.start(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]]
|
||||
]);
|
||||
});
|
||||
gestureMap = sheetplayer.toSource(gestureMap);
|
||||
eval("gestures(" + gestureMap.slice(1, gestureMap.length - 1) + ");");
|
||||
});
|
||||
executor.execute(tragetRunnable);
|
||||
if(listener != null) listener();
|
||||
java.lang.Thread.sleep(sheetplayer.nextInterval = Math.round(sheetplayer.nextInterval * sheetplayer.speed));
|
||||
sheetplayer.currentNote ++;
|
||||
@@ -307,6 +319,7 @@ sheetplayer = {
|
||||
this.pitch = j.pitchLevel;
|
||||
this.bpm = j.bpm;
|
||||
this.noteCount = this.notes.length;
|
||||
this.keyCount = j.keyCount;
|
||||
},
|
||||
|
||||
toSource: function(obj) {
|
||||
@@ -332,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: 12,
|
||||
currentVersion: 15,
|
||||
gitVersion: "",
|
||||
},
|
||||
|
||||
@@ -350,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);
|
||||
|
||||
@@ -397,7 +414,7 @@ config = {
|
||||
|
||||
fetchResources: function(listener) {
|
||||
var remoteHost = "https://cdn.jsdelivr.net/gh/StageGuard/SkyAutoPlayerScript@" + this.values.gitVersion + "/resources/";
|
||||
var resourceList = ["local.png", "online.png", "play.png", "pause.png", "refresh.png", "settings.png", "info.png", "download.png", "bin.png", "speedup.png"];
|
||||
var resourceList = ["local.png", "online.png", "play.png", "pause.png", "refresh.png", "settings.png", "info.png", "download.png", "bin.png", "speedup.png", "search.png"/*, "filter.png"*/];
|
||||
var localRootDir = android.os.Environment.getExternalStorageDirectory() + "/Documents/SkyAutoPlayer/bitmaps/";
|
||||
var downloadQueue = [];
|
||||
var tryCount = 1;
|
||||
@@ -1029,12 +1046,14 @@ gui = {
|
||||
_global_title: null,
|
||||
_global_navigation_bar: null,
|
||||
_global_close: null,
|
||||
_glonal_func: null,
|
||||
_global_statusbar: null,
|
||||
_glonal_func: [],
|
||||
|
||||
isShowing: false,
|
||||
current_navigation_selection: NaN,
|
||||
func_showing: false,
|
||||
current: 0,
|
||||
currentPageChangeListener: null,
|
||||
|
||||
cx: dp * 10,
|
||||
cy: dp * 10,
|
||||
@@ -1100,8 +1119,10 @@ gui = {
|
||||
if(gui.main.views[i].index == index) {
|
||||
gui.main.views[i].func_clickable = clickable;
|
||||
if(gui.main.current == index && gui.main.isShowing) {
|
||||
gui.main._glonal_func.setEnabled(clickable);
|
||||
gui.main._glonal_func.setClickable(clickable);
|
||||
for(var i in gui.main._glonal_func) {
|
||||
gui.main._glonal_func[i].setEnabled(clickable);
|
||||
gui.main._glonal_func[i].setClickable(clickable);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1118,10 +1139,10 @@ gui = {
|
||||
gui.main._global_base.setLayoutParams(new android.widget.LinearLayout.LayoutParams(dp * gui.main.window_width, dp * gui.main.window_height));
|
||||
gui.main._global_base.setBackgroundColor(gui.config.colors.background);
|
||||
|
||||
s.statusBar = new android.widget.RelativeLayout(ctx);
|
||||
s.statusBar.setLayoutParams(new android.widget.RelativeLayout.LayoutParams(-1, dp * gui.main.status_bar_height));
|
||||
s.statusBar.setBackgroundColor(gui.config.colors.background);
|
||||
s.statusBar.setElevation(10 * dp);
|
||||
gui.main._global_statusbar = new android.widget.RelativeLayout(ctx);
|
||||
gui.main._global_statusbar.setLayoutParams(new android.widget.RelativeLayout.LayoutParams(-1, dp * gui.main.status_bar_height));
|
||||
gui.main._global_statusbar.setBackgroundColor(gui.config.colors.background);
|
||||
gui.main._global_statusbar.setElevation(10 * dp);
|
||||
|
||||
gui.main._global_title = new android.widget.TextView(ctx);
|
||||
gui.main._global_title.setGravity(android.view.Gravity.LEFT | android.view.Gravity.CENTER);
|
||||
@@ -1151,7 +1172,7 @@ gui = {
|
||||
return true;
|
||||
},
|
||||
}));
|
||||
s.statusBar.addView(gui.main._global_title);
|
||||
gui.main._global_statusbar.addView(gui.main._global_title);
|
||||
|
||||
gui.main._global_close = new android.widget.TextView(ctx);
|
||||
gui.main._global_close.setId(23);
|
||||
@@ -1169,17 +1190,10 @@ gui = {
|
||||
gui.suspension.show();
|
||||
}
|
||||
}));
|
||||
gui.main._glonal_func = new android.widget.ImageView(ctx);
|
||||
gui.main._glonal_func.setLayoutParams(new android.widget.RelativeLayout.LayoutParams(dp * gui.main.status_bar_height, dp * gui.main.status_bar_height));
|
||||
gui.main._glonal_func.setPadding(dp * 1, dp * 1, dp * 1, dp * 1);
|
||||
gui.main._glonal_func.getLayoutParams().addRule(android.widget.RelativeLayout.LEFT_OF, 23);
|
||||
gui.main._glonal_func.measure(0, 0);
|
||||
gui.main._glonal_func.setBackgroundDrawable(gui.utils.ripple_drawable(gui.main._glonal_func.getMeasuredWidth(), gui.main._glonal_func.getMeasuredHeight(), "rect"));
|
||||
gui.main._glonal_func.setPadding(dp * 5, dp * 5, dp * 5, dp * 5);
|
||||
s.statusBar.addView(gui.main._glonal_func);
|
||||
s.statusBar.addView(gui.main._global_close);
|
||||
|
||||
gui.main._global_base.addView(s.statusBar);
|
||||
gui.main._global_statusbar.addView(gui.main._global_close);
|
||||
|
||||
gui.main._global_base.addView(gui.main._global_statusbar);
|
||||
|
||||
gui.main._global_content_container = new android.widget.RelativeLayout(ctx);
|
||||
gui.main._global_content_container.setLayoutParams(new android.widget.LinearLayout.LayoutParams(-1, dp * (gui.main.window_height - gui.main.status_bar_height - gui.main.navigation_bar_height)));
|
||||
@@ -1209,25 +1223,14 @@ gui = {
|
||||
gui.main._global_navigation_bar.setLayoutParams(new android.widget.LinearLayout.LayoutParams(-1, dp * (gui.main.navigation_bar_height + gui.main.navigation_bar_updown_margin * 2)));
|
||||
gui.main._global_navigation_bar.setBackgroundColor(gui.config.colors.background);
|
||||
|
||||
gui.main.__internal_genNavigationList(s);
|
||||
gui.main.__internal_genNavigationList(s, content);
|
||||
|
||||
gui.main._global_base.addView(gui.main._global_navigation_bar);
|
||||
|
||||
//ui.setContentView(gui.main._global_base);
|
||||
/*gui.main._global_main_popup = new android.widget.PopupWindow(ctx);
|
||||
gui.main._global_main_popup.setWindowLayoutType(android.os.Build.VERSION.SDK_INT >= 26 ? android.view.WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY : android.view.WindowManager.LayoutParams.TYPE_PHONE);
|
||||
gui.main._global_main_popup.setFocusable(false);
|
||||
gui.main._global_main_popup.setOutsideTouchable(false);
|
||||
gui.main._global_main_popup.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(0));
|
||||
gui.main._global_main_popup.setContentView(gui.main._global_base);
|
||||
gui.main._global_main_popup.setWidth(gui.main.window_width * dp);
|
||||
gui.main._global_main_popup.setHeight((gui.main.window_height + gui.main.navigation_bar_updown_margin * 2) * dp);
|
||||
gui.main._global_main_popup.showAtLocation(ctx.getWindow().getDecorView(), 0, s.x = gui.main.cx, s.y = gui.main.cy);*/
|
||||
|
||||
s._winParams = new android.view.WindowManager.LayoutParams();
|
||||
s._winParams.type = android.view.WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY;
|
||||
s._winParams.flags = android.view.WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE;
|
||||
s._winParams.format = android.graphics.PixelFormat.TRANSLUCENT;
|
||||
s._winParams.softInputMode = android.view.WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE;
|
||||
s._winParams.width = gui.main.window_width * dp;
|
||||
s._winParams.height = (gui.main.window_height + gui.main.navigation_bar_updown_margin * 2) * dp;
|
||||
s._winParams.x = s.x = gui.main.cx;
|
||||
@@ -1272,16 +1275,18 @@ gui = {
|
||||
gui.main._global_content_container.findViewById(cid).findViewById(15).setAlpha(1.0 - anim.getAnimatedValue());
|
||||
gui.main._global_content_container.findViewById(tid).findViewById(15).setAlpha(anim.getAnimatedValue());
|
||||
if(anim.getAnimatedValue() == 1.0) {
|
||||
gui.main._global_content_container.findViewById(cid).findViewById(15).setEnabled(false);
|
||||
gui.main._global_content_container.findViewById(cid).findViewById(15).setClickable(false);
|
||||
gui.main._global_content_container.findViewById(cid).setEnabled(false);
|
||||
gui.main._global_content_container.findViewById(cid).setClickable(false); //飞了
|
||||
gui.main._global_content_container.findViewById(cid).setZ(0);
|
||||
gui.main._global_content_container.findViewById(tid).findViewById(15).setEnabled(true);
|
||||
gui.main._global_content_container.findViewById(tid).findViewById(15).setClickable(true);
|
||||
gui.main._global_content_container.findViewById(tid).setEnabled(true);
|
||||
gui.main._global_content_container.findViewById(tid).setClickable(true);
|
||||
gui.main._global_content_container.findViewById(tid).setZ(1); //回来
|
||||
var previousContainer = gui.main._global_content_container.findViewById(cid);
|
||||
previousContainer.findViewById(15).setEnabled(false);
|
||||
previousContainer.findViewById(15).setClickable(false);
|
||||
previousContainer.setEnabled(false);
|
||||
previousContainer.setClickable(false);
|
||||
previousContainer.setZ(0);
|
||||
var targetContainer = gui.main._global_content_container.findViewById(tid);
|
||||
targetContainer.findViewById(15).setEnabled(true);
|
||||
targetContainer.findViewById(15).setClickable(true);
|
||||
targetContainer.setEnabled(true);
|
||||
targetContainer.setClickable(true);
|
||||
targetContainer.setZ(1);
|
||||
if(gui.main.views[tid].update != null && anim.getAnimatedValue() == 1.0) gui.main.views[tid].update(s);
|
||||
}
|
||||
});
|
||||
@@ -1289,53 +1294,53 @@ gui = {
|
||||
gui.main._global_title.setAlpha(anim.getAnimatedValue());
|
||||
});
|
||||
|
||||
gui.main.currentPageChangeListener = content.onPageChanged;
|
||||
gui.main.__internal_changeNavigationStatus(s, content);
|
||||
}
|
||||
|
||||
gui.main.__internal_changeNavigationStatus(s.index);
|
||||
}
|
||||
if(gui.main.views[s.index].func == null) {
|
||||
if(gui.main.views[s.index].func == null || !gui.main.views[s.index].func.length) {
|
||||
if(gui.main.func_showing) {
|
||||
//no extra func and previous page has func
|
||||
gui.main.func_showing = false;
|
||||
gui.utils.value_animation("Float", 0, 1, 300 , new android.view.animation.DecelerateInterpolator(), function(anim) {
|
||||
gui.main._glonal_func.setTranslationX(anim.getAnimatedValue() * gui.main._glonal_func.getMeasuredWidth());
|
||||
gui.main._glonal_func.setAlpha(1 - anim.getAnimatedValue());
|
||||
if(anim.getAnimatedValue() == 1.0) {
|
||||
gui.main._glonal_func.setClickable(false);
|
||||
gui.main._glonal_func.setEnabled(false);
|
||||
gui.main._glonal_func.setOnClickListener(new android.view.View.OnClickListener({
|
||||
onClick: function() {}
|
||||
}));
|
||||
gui.main._glonal_func.setImageBitmap(android.graphics.Bitmap.createBitmap(1, 1, android.graphics.Bitmap.Config.ARGB_8888));
|
||||
}
|
||||
});
|
||||
}
|
||||
} else {
|
||||
if(gui.main.func_showing) {
|
||||
gui.main._glonal_func.setOnClickListener(new android.view.View.OnClickListener({
|
||||
onClick: function() {gui.main.views[s.index].func(s)}
|
||||
}));
|
||||
gui.main._glonal_func.setImageBitmap(gui.main.views[s.index].func_icon);
|
||||
gui.utils.value_animation("Float", 0, 1, 200 , new android.view.animation.DecelerateInterpolator(), function(anim) {
|
||||
gui.main._glonal_func.setAlpha(anim.getAnimatedValue());
|
||||
});
|
||||
} else {
|
||||
gui.main.func_showing = true;
|
||||
gui.main._glonal_func.setClickable(true);
|
||||
gui.main._glonal_func.setEnabled(true);
|
||||
gui.main._glonal_func.setOnClickListener(new android.view.View.OnClickListener({
|
||||
onClick: function() {gui.main.views[s.index].func(s)}
|
||||
}));
|
||||
gui.main._glonal_func.setImageBitmap(gui.main.views[s.index].func_icon);
|
||||
gui.utils.value_animation("Float", 1, 0, 300 , new android.view.animation.DecelerateInterpolator(), function(anim) {
|
||||
gui.main._glonal_func.setTranslationX(anim.getAnimatedValue() * gui.main._glonal_func.getMeasuredWidth());
|
||||
gui.main._glonal_func.setAlpha(1 - anim.getAnimatedValue());
|
||||
for(var i in gui.main._glonal_func) {
|
||||
gui.main._glonal_func[i].setAlpha(1 - anim.getAnimatedValue());
|
||||
if(anim.getAnimatedValue() == 1.0) {
|
||||
gui.main._global_statusbar.removeView(gui.main._glonal_func[i]);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
} else {
|
||||
for(var i in gui.main._glonal_func) gui.main._global_statusbar.removeView(gui.main._glonal_func[i]);
|
||||
gui.main.func_showing = true;
|
||||
s.baseFuncIndex = gui.main._global_close.getId();
|
||||
for(var i in content.func) {
|
||||
var view = new android.widget.ImageView(ctx);
|
||||
view.setId(++s.baseFuncIndex);
|
||||
view.setLayoutParams(new android.widget.RelativeLayout.LayoutParams(dp * gui.main.status_bar_height, dp * gui.main.status_bar_height));
|
||||
view.setPadding(dp * 1, dp * 1, dp * 1, dp * 1);
|
||||
view.getLayoutParams().addRule(android.widget.RelativeLayout.LEFT_OF, s.baseFuncIndex - 1);
|
||||
view.measure(0, 0);
|
||||
view.setBackgroundDrawable(gui.utils.ripple_drawable(view.getMeasuredWidth(), view.getMeasuredHeight(), "rect"));
|
||||
view.setPadding(dp * 5, dp * 5, dp * 5, dp * 5);
|
||||
view.setAlpha(0);
|
||||
view.setImageBitmap(content.func[i].icon);
|
||||
view.setOnClickListener(new android.view.View.OnClickListener({
|
||||
onClick: function(view) {content.func[view.getId() - (gui.main._global_close.getId() + 1)].onClick(s, content)}
|
||||
}));
|
||||
gui.main._global_statusbar.addView(view);
|
||||
gui.main._glonal_func.push(view);
|
||||
}
|
||||
gui.utils.value_animation("Float", 0, 1, 200 , new android.view.animation.DecelerateInterpolator(), function(anim) {
|
||||
for(var i in gui.main._glonal_func) {
|
||||
gui.main._glonal_func[i].setAlpha(anim.getAnimatedValue());
|
||||
}
|
||||
});
|
||||
}
|
||||
gui.main.current_navigation_selection = s.index;
|
||||
gui.main._glonal_func.setClickable(content.func_clickable);
|
||||
gui.main._glonal_func.setEnabled(content.func_clickable);
|
||||
})},
|
||||
__internal_genNavigationList: function(s) { gui.run(function(){
|
||||
__internal_genNavigationList: function(s, content) { gui.run(function(){
|
||||
if(gui.main._global_navigation_bar == null) return;
|
||||
s.__2x_navigation_padding = (gui.main.window_width - gui.main.views.length * gui.main.navigation_bar_height) / (gui.main.views.length);
|
||||
for(var i in gui.main.views) {
|
||||
@@ -1351,10 +1356,11 @@ gui = {
|
||||
default: s["navigationBtn" + i].getLayoutParams().setMargins(s.__2x_navigation_padding / 2, dp * gui.main.navigation_bar_updown_margin, s.__2x_navigation_padding / 2, dp * gui.main.navigation_bar_updown_margin); break;
|
||||
}
|
||||
s["navigationBtn" + i].setOnClickListener(new android.view.View.OnClickListener({
|
||||
onClick: function(view) {
|
||||
onClick: function(view) { if(gui.main.current_navigation_selection != Number(view.getId())) {
|
||||
if(typeof(gui.main.currentPageChangeListener) == "function") gui.main.currentPageChangeListener(s, content);
|
||||
gui.main.__internal_show(gui.main.views[Number(view.getId())]);
|
||||
gui.main.current_navigation_selection = Number(view.getId());
|
||||
}
|
||||
}}
|
||||
}));
|
||||
|
||||
s["navigationBtnText" + i] = new android.widget.TextView(ctx);
|
||||
@@ -1381,11 +1387,11 @@ gui = {
|
||||
gui.main._global_navigation_bar.addView(s["navigationBtn" + i]);
|
||||
}
|
||||
})},
|
||||
__internal_changeNavigationStatus: function(index) { gui.run(function(){
|
||||
__internal_changeNavigationStatus: function(s, content) { gui.run(function(){
|
||||
if(gui.main._global_navigation_bar == null) return;
|
||||
if(!/^android/.test(String(gui.main._global_navigation_bar.findViewById(index)))) return;
|
||||
if(gui.main.current_navigation_selection == index) return;
|
||||
var colorAnim = android.animation.ObjectAnimator.ofInt(gui.main._global_navigation_bar.findViewById(index).findViewById(12), "textColor", gui.config.colors.sec_text, gui.config.colors.text);
|
||||
if(!/^android/.test(String(gui.main._global_navigation_bar.findViewById(s.index)))) return;
|
||||
if(gui.main.current_navigation_selection == s.index) return;
|
||||
var colorAnim = android.animation.ObjectAnimator.ofInt(gui.main._global_navigation_bar.findViewById(s.index).findViewById(12), "textColor", gui.config.colors.sec_text, gui.config.colors.text);
|
||||
colorAnim.setDuration(300);
|
||||
colorAnim.setEvaluator(new android.animation.ArgbEvaluator());
|
||||
colorAnim.start();
|
||||
@@ -1393,7 +1399,18 @@ gui = {
|
||||
colorAnim.setDuration(300);
|
||||
colorAnim.setEvaluator(new android.animation.ArgbEvaluator());
|
||||
colorAnim.start();
|
||||
gui.main.current_navigation_selection = index;
|
||||
|
||||
for(var i in gui.main.views) {
|
||||
s["navigationBtn" + i].setOnClickListener(new android.view.View.OnClickListener({
|
||||
onClick: function(view) { if(gui.main.current_navigation_selection != Number(view.getId())) {
|
||||
if(typeof(gui.main.currentPageChangeListener) == "function") gui.main.currentPageChangeListener(s, content);
|
||||
gui.main.__internal_show(gui.main.views[Number(view.getId())]);
|
||||
gui.main.current_navigation_selection = Number(view.getId());
|
||||
}}
|
||||
}));
|
||||
}
|
||||
|
||||
gui.main.current_navigation_selection = s.index;
|
||||
|
||||
})},
|
||||
__internal_rmNavigationList: function() { gui.run(function(){
|
||||
@@ -1505,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));
|
||||
@@ -1527,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());
|
||||
@@ -1536,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);
|
||||
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 {
|
||||
config.save("key_coordinates");
|
||||
toast("坐标设置已保存至存储!\n");
|
||||
finishCbk();
|
||||
gui.key_coordinate_navigation.__internal_dismissText();
|
||||
gui.main.show(2);
|
||||
}
|
||||
});
|
||||
});
|
||||
}, 1000);
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
@@ -1618,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);
|
||||
},
|
||||
|
||||
},
|
||||
@@ -1918,7 +1932,7 @@ gui = {
|
||||
}
|
||||
});},
|
||||
refreshStatus: function() { gui.run(function(){
|
||||
gui.player_panel._global_status.setText(String(sheetplayer.playing ? (sheetplayer.speed_list[sheetplayer.current_speed_index] + "x: " + Number(sheetplayer.currentNote + 1) + "/" + sheetplayer.noteCount + " -> " + sheetplayer.nextInterval + "ms") : (sheetplayer.thread == null ? "Idle" : "Paused")));
|
||||
gui.player_panel._global_status.setText(String(sheetplayer.speed_list[sheetplayer.current_speed_index] + "x: " + (sheetplayer.playing ? (Number(sheetplayer.currentNote + 1) + "/" + sheetplayer.noteCount + " -> " + sheetplayer.nextInterval + "ms") : (sheetplayer.thread == null ? "Idle" : "Paused"))));
|
||||
gui.player_panel._global_cnote.setText(String(sheetplayer.playing ? (sheetplayer.notes[sheetplayer.currentNote < sheetplayer.noteCount ? sheetplayer.currentNote : sheetplayer.noteCount - 1].keys) : "-"));
|
||||
gui.player_panel._global_seek.setProgress(sheetplayer.currentNote);
|
||||
gui.utils.value_animation("Float", 0, 1, 80 , new android.view.animation.LinearInterpolator(), function(anim) {
|
||||
@@ -2001,10 +2015,12 @@ gui.dialogs.showProgressDialog(function(o) {
|
||||
title: "本地乐谱",
|
||||
navigation_title: "本地乐谱",
|
||||
navigation_icon: config.bitmaps.local,
|
||||
func: function(s) {
|
||||
this.getSheetList(s, true);
|
||||
func: [{
|
||||
icon: android.graphics.Bitmap.createBitmap(config.bitmaps.refresh),
|
||||
onClick: function(s, selfContent) {
|
||||
selfContent.getSheetList(s, true);
|
||||
},
|
||||
func_icon: android.graphics.Bitmap.createBitmap(config.bitmaps.refresh),
|
||||
}],
|
||||
view: function(s) {
|
||||
s.ns0_rl = new android.widget.RelativeLayout(ctx);
|
||||
s.ns0_rl.setLayoutParams(new android.widget.LinearLayout.LayoutParams(-1, s._content_height));
|
||||
@@ -2076,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) {
|
||||
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);
|
||||
} else {
|
||||
toast("未设置键位坐标或坐标数据错误,请前往设置页设置键位坐标");
|
||||
}
|
||||
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}));
|
||||
|
||||
|
||||
|
||||
element.v_relative.addView(element.v_play);
|
||||
}
|
||||
element.v_delete = new android.widget.ImageView(ctx);
|
||||
@@ -2130,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({
|
||||
@@ -2157,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;
|
||||
}
|
||||
@@ -2239,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);
|
||||
@@ -2275,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) {
|
||||
@@ -2283,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)));
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -2312,10 +2406,27 @@ gui.dialogs.showProgressDialog(function(o) {
|
||||
title: "共享乐谱",
|
||||
navigation_title: "共享乐谱",
|
||||
navigation_icon: config.bitmaps.online,
|
||||
func: function(s) {
|
||||
this.getOnlineSheetList(s, true);
|
||||
func: [{
|
||||
icon: android.graphics.Bitmap.createBitmap(config.bitmaps.refresh),
|
||||
onClick: function(s, selfContent) {
|
||||
if(s.ns1_isShowingSearchEditTextView) selfContent.removeSearchEditTextView(s, selfContent);
|
||||
selfContent.getOnlineSheetList(s, true);
|
||||
},
|
||||
func_icon: android.graphics.Bitmap.createBitmap(config.bitmaps.refresh),
|
||||
},/* {
|
||||
icon: android.graphics.Bitmap.createBitmap(config.bitmaps.filter),
|
||||
onClick: function(s, selfContent) {
|
||||
toast("Click filter")
|
||||
},
|
||||
},*/ {
|
||||
icon: android.graphics.Bitmap.createBitmap(config.bitmaps.search),
|
||||
onClick: function(s, selfContent) {
|
||||
if(s.ns1_isShowingSearchEditTextView) {
|
||||
selfContent.removeSearchEditTextView(s, selfContent);
|
||||
} else {
|
||||
selfContent.showSearchEditTextView(s, selfContent);
|
||||
}
|
||||
},
|
||||
}],
|
||||
view: function(s) {
|
||||
|
||||
s.ns1_rl = new android.widget.RelativeLayout(ctx);
|
||||
@@ -2330,7 +2441,9 @@ gui.dialogs.showProgressDialog(function(o) {
|
||||
|
||||
element.isShowingStatusBar = false;
|
||||
|
||||
if(element.type == -1) {
|
||||
switch(element.type) {
|
||||
//top notification
|
||||
case -1: {
|
||||
element.v_info = new android.widget.ImageView(ctx);
|
||||
element.v_info.setId(10);
|
||||
element.v_info.setScaleType(android.widget.ImageView.ScaleType.CENTER_CROP);
|
||||
@@ -2351,9 +2464,12 @@ gui.dialogs.showProgressDialog(function(o) {
|
||||
element.v_upload.setTextColor(gui.config.colors.sec_text);
|
||||
element.v_upload.setText(element.title);
|
||||
element.v_relative.addView(element.v_upload);
|
||||
return element.v_relative;
|
||||
}
|
||||
|
||||
};break;
|
||||
case -2: {
|
||||
//empty result view
|
||||
};break;
|
||||
default: {
|
||||
//sheet item
|
||||
element.v_title = new android.widget.TextView(ctx);
|
||||
element.v_title.setId(10);
|
||||
element.v_title.setGravity(android.view.Gravity.LEFT | android.view.Gravity.CENTER);
|
||||
@@ -2399,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() {
|
||||
@@ -2479,7 +2595,8 @@ gui.dialogs.showProgressDialog(function(o) {
|
||||
element.v_progress.setProgressDrawable(new android.graphics.drawable.ColorDrawable(gui.config.colors.background));
|
||||
element.v_progress.setIndeterminate(false);
|
||||
element.v_progress.setAlpha(0);
|
||||
|
||||
};break;
|
||||
}
|
||||
return element.v_relative;
|
||||
}));
|
||||
s.ns1_listAdapterController = RhinoListAdapter.getController(s.ns1_listAdapter);
|
||||
@@ -2488,7 +2605,8 @@ gui.dialogs.showProgressDialog(function(o) {
|
||||
s.ns1_listView.setOnItemClickListener(new android.widget.AdapterView.OnItemClickListener({
|
||||
onItemClick: function(parent, view, pos, id) {
|
||||
var item = s.ns1_listAdapterController.get(pos);
|
||||
if(item.type == -1) {
|
||||
switch(item.type) {
|
||||
case -1: {
|
||||
switch(item.index) {
|
||||
case 0: {
|
||||
gui.dialogs.showConfirmDialog({
|
||||
@@ -2536,8 +2654,11 @@ gui.dialogs.showProgressDialog(function(o) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
};break;
|
||||
case -2: {
|
||||
|
||||
};break;
|
||||
default: {
|
||||
gui.dialogs.showDialog((function () {
|
||||
var scr = new android.widget.ScrollView(ctx);
|
||||
scr.setBackgroundColor(gui.config.colors.background);
|
||||
@@ -2596,6 +2717,9 @@ gui.dialogs.showProgressDialog(function(o) {
|
||||
scr.addView(layout)
|
||||
return scr;
|
||||
}()), -2, -2, null, true);
|
||||
}break;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}));
|
||||
s.ns1_rl.addView(s.ns1_listView);
|
||||
@@ -2613,16 +2737,84 @@ gui.dialogs.showProgressDialog(function(o) {
|
||||
s.ns1_rl.addView(s.ns1_progress);
|
||||
return s.ns1_rl;
|
||||
},
|
||||
|
||||
onPageChanged: function(s, selfContent) {
|
||||
if(s.ns1_isShowingSearchEditTextView) selfContent.removeSearchEditTextView(s);
|
||||
},
|
||||
|
||||
showSearchEditTextView: function(s, selfContent) {
|
||||
gui.main.setFuncClickable(s.index, false);
|
||||
s.ns1_isShowingSearchEditTextView = true;
|
||||
s.ns1_searchEditText = new android.widget.EditText(ctx);
|
||||
s.ns1_searchEditText.setGravity(android.view.Gravity.LEFT | android.view.Gravity.CENTER);
|
||||
s.ns1_searchEditText.setLayoutParams(new android.widget.RelativeLayout.LayoutParams(-2, -1));
|
||||
s.ns1_searchEditText.setPadding(dp * 5, dp * 5, dp * 5, dp * 5);
|
||||
s.ns1_searchEditText.getLayoutParams().addRule(android.widget.RelativeLayout.ALIGN_PARENT_LEFT);
|
||||
s.ns1_searchEditText.setTextSize(15);
|
||||
s.ns1_searchEditText.setTextColor(gui.config.colors.text);
|
||||
s.ns1_searchEditText.setHintTextColor(gui.config.colors.sec_text);
|
||||
s.ns1_searchEditText.setHint("按回车开始搜索");
|
||||
s.ns1_searchEditText.setAlpha(0);
|
||||
s.ns1_searchEditText.setOnClickListener(new android.view.View.OnClickListener({
|
||||
onClick: function(view) {
|
||||
view.setFocusable(true);
|
||||
view.setFocusableInTouchMode(true);
|
||||
view.requestFocus();
|
||||
ctx.getSystemService(android.content.Context.INPUT_METHOD_SERVICE).showSoftInput(view, 0);
|
||||
}
|
||||
}));
|
||||
s.ns1_searchEditText.setOnKeyListener(new android.view.View.OnKeyListener({
|
||||
onKey: function(view, keycode, event) {
|
||||
if (keycode == android.view.KeyEvent.KEYCODE_ENTER && event.getAction() == android.view.KeyEvent.ACTION_DOWN) {
|
||||
selfContent.getOnlineSheetList(s, false, function(item) {
|
||||
return (new RegExp(view.getText(), "gi")).test(item.name);
|
||||
});
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
},
|
||||
}));
|
||||
gui.main._global_statusbar.addView(s.ns1_searchEditText);
|
||||
s.ns1_searchEditText.setFocusable(true);
|
||||
s.ns1_searchEditText.setFocusableInTouchMode(true);
|
||||
s.ns1_searchEditText.requestFocus();
|
||||
ctx.getSystemService(android.content.Context.INPUT_METHOD_SERVICE).showSoftInput(s.ns1_searchEditText, 0);
|
||||
gui.main._global_title.setEnabled(false);
|
||||
gui.main._global_title.setClickable(false);
|
||||
gui.utils.value_animation("Float", 0, 1.0, 300 , new android.view.animation.DecelerateInterpolator(), function(anim) {
|
||||
s.ns1_searchEditText.setAlpha(anim.getAnimatedValue());
|
||||
gui.main._global_title.setAlpha(1.0 - anim.getAnimatedValue());
|
||||
if(anim.getAnimatedValue() == 1.0) gui.main.setFuncClickable(s.index, true);
|
||||
});
|
||||
},
|
||||
|
||||
removeSearchEditTextView: function(s, selfContent) { try {
|
||||
s.ns1_isShowingSearchEditTextView = false;
|
||||
gui.main.setFuncClickable(s.index, false);
|
||||
s.ns1_searchEditText.setEnabled(false);
|
||||
s.ns1_searchEditText.setClickable(false);
|
||||
gui.main._global_title.setEnabled(true);
|
||||
gui.main._global_title.setClickable(true);
|
||||
gui.utils.value_animation("Float", 0, 1.0, 300 , new android.view.animation.DecelerateInterpolator(), function(anim) {
|
||||
s.ns1_searchEditText.setAlpha(1.0 - anim.getAnimatedValue());
|
||||
gui.main._global_title.setAlpha(anim.getAnimatedValue());
|
||||
if(anim.getAnimatedValue() == 1.0) {
|
||||
gui.main._global_statusbar.removeView(s.ns1_searchEditText);
|
||||
gui.main.setFuncClickable(s.index, true);
|
||||
}
|
||||
});
|
||||
} catch (e) {}},
|
||||
|
||||
update: function(s) {
|
||||
if(s.initial) this.getOnlineSheetList(s, false);
|
||||
},
|
||||
getOnlineSheetList: function(s, isForce) {
|
||||
getOnlineSheetList: function(s, isForce, filterBlock) {
|
||||
gui.run(function() {
|
||||
gui.main.setFuncClickable(s.index, false);
|
||||
s.ns1_progress.setIndeterminate(true);
|
||||
s.ns1_listAdapterController.removeAll();
|
||||
s.ns1_listAdapterController.notifyChange();
|
||||
gui.utils.value_animation("Float", 0, 1.0, 200, new android.view.animation.DecelerateInterpolator(), function(anim) {
|
||||
if(typeof(filterBlock) != "function") gui.utils.value_animation("Float", 0, 1.0, 200, new android.view.animation.DecelerateInterpolator(), function(anim) {
|
||||
gui.main._global_title.setAlpha(anim.getAnimatedValue());
|
||||
});
|
||||
gui.utils.value_animation("Float", 1.0, 0, 100, new android.view.animation.DecelerateInterpolator(), function(anim) {
|
||||
@@ -2643,7 +2835,13 @@ gui.dialogs.showProgressDialog(function(o) {
|
||||
s.ns1_listView.setAlpha(1);
|
||||
gui.main._global_title.setText("获取列表中...");
|
||||
threads.start(function() {
|
||||
sheetmgr.getOnlineSharedSheetInfoList(isForce).map(function(e, i) {
|
||||
var list = [];
|
||||
if(typeof(filterBlock) == "function") {
|
||||
list = sheetmgr.filterOnlineSharedSheet(filterBlock);
|
||||
} else {
|
||||
list = sheetmgr.getOnlineSharedSheetInfoList(isForce);
|
||||
}
|
||||
list.map(function(e, i) {
|
||||
gui.run(function() { s.ns1_listAdapterController.add(e); });
|
||||
});
|
||||
gui.run(function() {
|
||||
@@ -2651,11 +2849,13 @@ gui.dialogs.showProgressDialog(function(o) {
|
||||
s.ns1_listAdapterController.notifyChange();
|
||||
gui.main._global_title.setText(gui.main.getPageInfo(s.index).title);
|
||||
gui.utils.value_animation("Float", 0, 1.0, 200, new android.view.animation.DecelerateInterpolator(), function(anim) {
|
||||
gui.main._global_title.setAlpha(anim.getAnimatedValue());
|
||||
s.ns1_listView.setAlpha(anim.getAnimatedValue());
|
||||
s.ns1_progress.setAlpha(1 - anim.getAnimatedValue());
|
||||
if(anim.getAnimatedValue() == 1.0) s.ns1_progress.setIndeterminate(false);
|
||||
});
|
||||
if(typeof(filterBlock) != "function") gui.utils.value_animation("Float", 0, 1.0, 200, new android.view.animation.DecelerateInterpolator(), function(anim) {
|
||||
gui.main._global_title.setAlpha(anim.getAnimatedValue());
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
@@ -2677,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",
|
||||
@@ -2696,8 +2915,10 @@ gui.dialogs.showProgressDialog(function(o) {
|
||||
onClick: function(checked) {
|
||||
config.values.tipOnAndroidR = config.save("tip_storage_on_android_r", checked);
|
||||
}
|
||||
},
|
||||
{
|
||||
}, {
|
||||
type: "tag",
|
||||
name: "关于",
|
||||
}, {
|
||||
type: "default",
|
||||
name: "查看使用须知",
|
||||
onClick: function(v) {
|
||||
@@ -2737,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) {
|
||||
@@ -2819,7 +3040,7 @@ gui.dialogs.showProgressDialog(function(o) {
|
||||
});
|
||||
gui.suspension.show();
|
||||
o.close();
|
||||
ctx.moveTaskToBack(true);
|
||||
//ctx.moveTaskToBack(true);
|
||||
if(!config.values.skipRunScriptTip) {
|
||||
gui.dialogs.showConfirmDialog({
|
||||
title: "使用须知",
|
||||
|
||||
@@ -1,3 +1,20 @@
|
||||
版本: 15
|
||||
更新时间: 2020.10.01 00:00
|
||||
更新内容:
|
||||
* 新增:8键位乐谱支持
|
||||
|
||||
版本: 14
|
||||
更新时间: 2020.09.13 20:51
|
||||
更新内容:
|
||||
* 新增:共享乐谱支持搜索功能
|
||||
* 改善:窗口拓展功能
|
||||
|
||||
版本: 13
|
||||
更新时间: 2020.09.05 10:46
|
||||
更新内容:
|
||||
* 改善:使用ThreadPool实现线程循环而不是持续创建新的线程
|
||||
* 改善:在Idle和Paused状态时也能显示当前倍速
|
||||
|
||||
版本: 12
|
||||
更新时间: 2020.09.01 23:12
|
||||
更新内容:
|
||||
|
||||
Reference in New Issue
Block a user