JS脚本:AutoYuanQin【更新】 (#2469)

* Delete repo/js/AutoFishingTeyvat directory

* 多项更新

* 修复

* 更新两首单曲

* 更新READEME

* 更新manifest

* 更新

* 补充settings
This commit is contained in:
提瓦特钓鱼玳师
2025-12-09 20:12:41 +08:00
committed by GitHub
parent 0b4a605f4f
commit 7deedfff4c
19 changed files with 52 additions and 2 deletions

View File

@@ -244,6 +244,10 @@ notes 字段中包含的是乐谱内容音符**必须**使用**大写字母**,
## 更新日志
由于更新日志于3.0开始记录, 往期更新内容应该都在git的记录中, 不过我懒得翻了
- ver 3.2.3
1. 更新了五线谱制谱器,现在可以选择乐器了
1. 更新了一首单曲《DAMIDAMI》-老旧的诗琴
- ver 3.2.2
1. 更新了两首单曲《大石碎胸口 ver. “一阵强劲的音乐”》-风物之诗琴、 《ClockParadox_Drop2》-风物之诗琴

View File

@@ -1,6 +1,8 @@
{
"name": "小星星",
"author": "提瓦特钓鱼玳师",
"instrument": "风物之诗琴",
"description": "无",
"bpm": "80",
"time_signature": "4/4",
"composer": "none",

View File

@@ -1,6 +1,7 @@
{
"name": "小星星变奏曲",
"author": "提瓦特钓鱼玳师",
"instrument": "风物之诗琴",
"description": "五线谱网址https://www.tanqinpu.com/pu/5643.html",
"bpm": "120",
"time_signature": "4/4",

View File

@@ -1,6 +1,7 @@
{
"name": "Unknown Mother Goose [アンノウン・マザーグース]",
"author": "提瓦特钓鱼玳师",
"instrument": "风物之诗琴",
"description": "五线谱网址https://musescore.com/shafana/unknown-mother-goose",
"bpm": "110",
"time_signature": "4/4",

View File

@@ -1,6 +1,7 @@
{
"name": "铃芽之旅[Suzume]",
"author": "提瓦特钓鱼玳师",
"instrument": "风物之诗琴",
"description": "五线谱网址https://musescore.com/user/35362468/scores/7642952",
"bpm": "78",
"time_signature": "4/4",

View File

@@ -1,6 +1,7 @@
{
"name": "Flower Dance",
"author": "提瓦特钓鱼玳师",
"instrument": "风物之诗琴",
"description": "五线谱网址https://www.everyonepiano.cn/Stave-15175.html",
"bpm": "80",
"time_signature": "4/4",

View File

@@ -1,6 +1,7 @@
{
"name": "起风了",
"author": "提瓦特钓鱼玳师",
"instrument": "风物之诗琴",
"description": "五线谱网址https://musescore.com/user/28484959/scores/5403434",
"bpm": "80",
"time_signature": "4/4",

View File

@@ -1,6 +1,7 @@
{
"name": "千本櫻",
"author": "提瓦特钓鱼玳师",
"instrument": "风物之诗琴",
"description": "五线谱网址https://musescore.com/erics_piano_sheet/scores/5359278",
"bpm": "152",
"time_signature": "4/4",

View File

@@ -1,6 +1,7 @@
{
"name": "春よ、来い(春天,来吧)",
"author": "提瓦特钓鱼玳师",
"instrument": "风物之诗琴",
"description": "五线谱网址https://www.tan8.com/yuepu-80858.html",
"bpm": "88",
"time_signature": "4/4",

View File

@@ -1,6 +1,7 @@
{
"name": "One Last Kiss",
"author": "提瓦特钓鱼玳师",
"instrument": "风物之诗琴",
"description": "五线谱网址https://piastudy.com/Intermediate/1wEHZLFlBRq",
"bpm": "120",
"time_signature": "4/4",

View File

@@ -1,6 +1,7 @@
{
"name": "示例曲谱",
"author": "MidiTrans",
"instrument": "风物之诗琴",
"bpm": "120",
"type": "midi",
"description": "曲谱信息",

View File

@@ -1,6 +1,7 @@
{
"name": "蒲公英的约定",
"author": "提瓦特钓鱼玳师",
"instrument": "风物之诗琴",
"description": "五线谱网址https://www.tanqinpu.com/pu/12551.html",
"bpm": "66",
"time_signature": "4/4",

View File

@@ -1,6 +1,7 @@
{
"name": "枫",
"author": "提瓦特钓鱼玳师",
"instrument": "风物之诗琴",
"description": "五线谱网址https://www.tanqinpu.com/pu/14133.html",
"bpm": "69",
"time_signature": "4/4",

View File

@@ -1,6 +1,7 @@
{
"name": "示例曲谱",
"author": "Gabriel C.",
"instrument": "风物之诗琴",
"bpm": "220",
"description": "曲谱信息",
"time_signature": "4/4",

View File

@@ -1,6 +1,7 @@
{
"name": "示例曲谱",
"author": "Gabriel C.",
"instrument": "风物之诗琴",
"bpm": "180",
"description": "曲谱信息",
"time_signature": "4/4",

View File

@@ -0,0 +1,11 @@
{
"name": "DAMIDAMI",
"author": "提瓦特钓鱼玳师",
"instrument": "老旧的诗琴",
"description": "五线谱网址https://piastudy.com/Intermediate/1IIRWw4hx适配老旧的诗琴故有所改动",
"bpm": "130",
"time_signature": "4/4",
"composer": "Sihan/三Z-STUDIO/HOYO-MiX",
"arranger": "Sihan/三Z-STUDIO/HOYO-MiX",
"notes": "(ZCB)[1]|\nC[16]V[16]M[8]M[2]B[8]M[8]|\nM[4]N[8]V[8]B[4]V[8]X[8]|\nC[4]C[8]X[8]Z[2]|\n\nZ[8]C[8]C[8]C[8]V[2]|\nV[8]X[8]X[8]X[8]V[8]B[8]B[8]M[8]|\nM[4]N[8]V[8]B[4]V[8]X[8]|\nC[8-*]C[16]C[8]B[8]Z[2]|\n\nZ[8]C[8]C[8]C[8]V[2]|\nV[8]X[8]X[8]X[8]V[4]C[8]X[8]|\nZ[8](BG)[8](BG)[8](BG)[8](BG)[8](CD)[8](CD)[4]|\n(CD)[8](VF)[8](VF)[8](VF)[8](VF)[8](BG)[8](XS)[8]M[8]|\n\n(ZA)[8]V[8]B[8]V[8]B[4]V[4]|\nV[8]V[8]B[8]V[8]B[4]B[8]M[8]|\nM[4]N[8]V[8]B[4]V[8]X[8]|\nC[8-*]C[16]C[8]X[8]Z[2]|\n\nZ[8]C[8]C[8]C[8]V[2]V[8]X[8]X[8]X[8]V[16]V[8]B[16]B[8]M[8]|\nM[4]N[8]V[8]B[4]V[8]X[8]|\nC[4]C[8]X[8]Z[2]|\n\nZ[8]C[8]C[8]C[8]V[2]|\nV[8]X[8]X[8]X[8]V[4]C[8]X[8]|\nZ[8](BG)[8](BG)[8](BG)[8](BG)[8](CD)[8](CD)[4]|\n(CD)[8](VF)[8](VF)[8](VF)[8](VF)[8](BG)[8](XS)[8]M[8]|\n\n(ZA)[8]V[8]B[8]V[8]B[4]V[4]|\nV[8]V[8]B[8]V[8]B[4]M[4]|\nM[8](BG)[8](BG)[8](BG)[8](B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[4](SE)[8](AQ)[8]|\n\n(AQ)[8]C[8]C[8]C[8]C[8-*]V[16]V[4]|\nV[8]C[8]C[8]V[8]V[8-*]B[16]B[4]|\n(BG)[8](AQ)[8](AQ)[8](AQ)[8](AQ)[8](MJ)[8](BG)[4]|\n\n@[8](AQ)[16](AQ)[16](AQ)[8](SE)[8](AQ)[8](MJ)[8](BG)[4]|\n(BG)[8]C[8]C[8]C[8]C[8-*]V[16]V[4]|\nV[8]C[8]C[8]V[8]V[8-*]B[16]B[4]|\nB[8](MJ)[8](BG)[8](MJ)[8](BG)[4](SE)[8](AQ)[8]|\n\n(AQ)[8]@[8]@[4]@[2]|\n@[8]J[8]G[8]J[8]G[4]W[8]Q[8]|\n(DGQ)[1]|\n(AFH)[1]|\n(ADGJ)[1]"
}

View File

@@ -269,6 +269,19 @@
<input type="text" id="score_composer" name="score_composer" class="input-text" placeholder="曲师...">
<label for="score_arranger" class="textarea">谱师:</label>
<input type="text" id="score_arranger" name="score_arranger" class="input-text" placeholder="谱师...">
<label for="score_instrument" class="textarea">乐器: </label>
<select id="score_instrument" class="dropdown">
<option value="风物之诗琴">风物之诗琴</option>
<option value="老旧的诗琴">老旧的诗琴</option>
<option value="镜花之琴">镜花之琴</option>
<option value="荒泷·盛世豪鼓">荒泷·盛世豪鼓</option>
<option value="绮筵之鼓">绮筵之鼓</option>
<option value="晚风圆号">晚风圆号</option>
<option value="聚聚鼓">聚聚鼓</option>
<option value="悠可琴">悠可琴</option>
<option value="「余音」">「余音」</option>
<option value="跃律琴">跃律琴</option>
</select>
</div>
<!-- 第二行 -->
<div class="row">
@@ -513,6 +526,7 @@
const json_content = `{
"name": "${score_name}",
"author": "${score_author}",
"instrument": "${score_instrument}",
"description": "${score_description}",
"bpm": "${score_bpm}",
"time_signature": "${time_signature}",
@@ -544,6 +558,7 @@
const codeArea = document.getElementById('code-area');
const scoreName = document.getElementById('score_name');
const scoreAuthor = document.getElementById('score_author');
const scoreInstrument = document.getElementById('score_instrument');
const scoreBpm = document.getElementById('score_bpm');
const timeSignature = document.getElementById('time_signature');
const scoreComposer = document.getElementById('score_composer');
@@ -567,6 +582,7 @@
// 将本地乐谱文件载入HTML
scoreName.value = content_msg["name"];
scoreAuthor.value = content_msg["author"];
scoreInstrument.value = content_msg["instrument"];
scoreBpm.value = content_msg["bpm"];
timeSignature.value = content_msg["time_signature"];
scoreComposer.value = content_msg["composer"];
@@ -593,6 +609,7 @@
// 正则表达式,用于匹配如下内容
let regex_name = /(?<="name": ")[\s\S]*?(?=")/
let regex_author = /(?<="author": ")[\s\S]*?(?=")/
let regex_instrument = /(?<="instrument": ")[\s\S]*?(?=")/
let regex_description = /(?<="description": ")[\s\S]*?(?=")/
let regex_bpm = /(?<="bpm": ")[\s\S]*?(?=")/
let regex_time_signature = /(?<="time_signature": ")[\s\S]*?(?=")/
@@ -607,6 +624,8 @@
music_msg_dic["name"] = file_text.match(regex_name)[0];
// 录谱人
music_msg_dic["author"] = file_text.match(regex_author)[0];
// 乐器
music_msg_dic["instrument"] = file_text.match(regex_instrument)[0];
// 描述
music_msg_dic["description"] = file_text.match(regex_description)[0];
// 歌曲BPM

View File

@@ -1,7 +1,7 @@
{
"manifest_version": 1,
"name": "原琴·乐曲转换、自动演奏",
"version": "3.2.2",
"version": "3.2.3",
"bgi_version": "0.43.1",
"description": "功能描述:功能及其强大的原琴脚本\n核心功能------------------------------>\n1.轻松实现根据五线谱翻版琴谱,支持单音、和弦\n2.曲谱支持录入BPM、拍号\n3.特殊音符支持休止符、浮点音符、(三/六)连音、(三/六)连音标记线、装饰音·倚音\n4.含有制谱器,方便制作曲谱\n注意事项------------------------------>\n1.使用前请装备原琴\n2.音域只有3个八度受原琴音域限制本脚本的上限取决于翻谱的大佬卑微\n3.实际上装饰音·倚音的时长视为基础时值单位(比如拍号2/4的基础时值单位就是4分音符)的1/16\n4.制铺说明曲谱JSON文件的notes必须保证为一行且不能包括空白符换行符除外小节之间用|隔开,|不是必要的,作用是方便曲谱维护\n---------------------------------------->\n作者提瓦特钓鱼玳师\n脚本反馈邮箱hijiwos@hotmail.com",
"authors": [

View File

@@ -40,7 +40,8 @@
"0018.蒲公英的约定",
"0019.枫",
"0020.大石碎胸口 ver. “一阵强劲的音乐”",
"0021.ClockParadox_Drop2"
"0021.ClockParadox_Drop2",
"0022.DAMIDAMI"
]
},
{