AutoYuanQin:新增在演奏过程中进行暂停与开始的快捷键 (#3472)

This commit is contained in:
Am1ya-114514 authored and GitHub committed 2026-08-09 22:07:03 +08:00
1 parent 4fc4f78b11
commit d1c5c32fcf
5 files changed
+1545 -1096

No files matched your search

+7
View File
@@ -48,6 +48,7 @@
2. 右键点击原琴脚本,选择 **修改脚本自定义配置**,根据说明填写各项参数。
3. 若在 JS 脚本配置中启用了 **游戏内控制面板**(请确保游戏使用 **无边框窗口模式** 而非全屏模式),点击运行后会弹出 HTML 遮罩界面。在界面中选择乐曲后,点击 **开始播放** 即可;若未启用控制面板,则选曲后直接开始演奏。
4. 使用游戏内控制面板演奏完成后,脚本 **不会自动结束**,您可以继续选择下一首乐曲并演奏。演奏过程中,面板会最小化至右下角,且 **不可被鼠标指针选中**,演奏完成后自动还原并可正常交互。
5. 演奏过程中按配置的快捷键(默认 `F8`)可暂停,再次按下可从当前位置继续;该操作只暂停脚本演奏,不会暂停游戏。若快捷键与游戏或其他软件冲突,可在游戏内配置面板点击快捷键输入框,然后直接按下新的单键或组合键(例如 `Ctrl+Shift+P`)。
> **提示:**
> - `AutoYuanQin/assets/tutorial_file` 目录下的制谱软件(`五线谱制谱器.html`、`简谱制谱器.html`)适合有一定五线谱或简谱基础的用户。这两个制谱器生成的乐谱最为精确,但需要投入较多时间和精力进行录入。
@@ -304,6 +305,12 @@
<details>
<summary>点击展开</summary>
- ver 3.7.4
1. 新增演奏暂停功能:演奏过程中按 `F8` 可暂停或继续,不会暂停游戏。
2. 暂停时会临时释放当前按下的琴键,继续时恢复长音,并冻结曲谱计时以保持后续节奏。
3. 暂停/继续快捷键改为点击录入,支持 `Ctrl`、`Alt`、`Shift` 与普通按键组成多键组合。
4. 单独的 `A`~`Z` 字母键会被拒绝,组合键中的字母不受限制,避免曲谱演奏误触发暂停。
- ver 3.7.3
1. 添加单曲六首单曲:《几初的智愿》(风物之诗琴)、《如果突然想起我》(风物之诗琴)、《那天下雨了》(谐律键琴)、《手写的从前》(风物之诗琴)、《晴天》(风物之诗琴)、《The Truth That You Leave 》(谐律键琴)
File diff suppressed because it is too large. Load diff
+341 -96
View File
@@ -8,10 +8,209 @@
QueueMusicRepeat: 3, // 队列循环执行
};
const lowest_latency = 30;
let DEBUG;
let settings_msg = get_settings();
let music_infos = [];
let DEBUG;
let settings_msg = get_settings();
let playbackTask = null;
let playbackPaused = false;
let activePlaybackWindowId = null;
let lastPauseHotkeyAt = 0;
const activeMusicKeys = new Set();
const ignoredInjectedKeyDownUntil = new Map();
const ignoredInjectedKeyUpUntil = new Map();
let suspendedMusicKeys = [];
let music_infos = [];
const pressedHotkeyKeys = new Set();
let pauseHotkeyLatched = false;
function keyCodeToHotkeyName(value) {
if (typeof value === "string" && !/^\d+$/.test(value)) {
if (/^[A-Z0-9]$/.test(value) || /^F(?:[1-9]|1[0-2])$/.test(value)) return value;
if (["Ctrl", "Alt", "Shift", "Backspace", "Tab", "Enter", "Space", "PageUp", "PageDown",
"End", "Home", "ArrowLeft", "ArrowUp", "ArrowRight", "ArrowDown", "Insert", "Delete",
"Semicolon", "Equal", "Comma", "Minus", "Period", "Slash", "Backquote", "BracketLeft",
"Backslash", "BracketRight", "Quote"].includes(value)) return value;
}
const code = Number(value);
if (code >= 65 && code <= 90) return String.fromCharCode(code);
if (code >= 48 && code <= 57) return String.fromCharCode(code);
if (code >= 112 && code <= 123) return `F${code - 111}`;
if ([16, 160, 161].includes(code)) return "Shift";
if ([17, 162, 163].includes(code)) return "Ctrl";
if ([18, 164, 165].includes(code)) return "Alt";
const names = {
8: "Backspace", 9: "Tab", 13: "Enter", 32: "Space",
33: "PageUp", 34: "PageDown", 35: "End", 36: "Home",
37: "ArrowLeft", 38: "ArrowUp", 39: "ArrowRight", 40: "ArrowDown",
45: "Insert", 46: "Delete",
186: "Semicolon", 187: "Equal", 188: "Comma", 189: "Minus",
190: "Period", 191: "Slash", 192: "Backquote",
219: "BracketLeft", 220: "Backslash", 221: "BracketRight", 222: "Quote"
};
return names[code];
}
function normalizePauseHotkey(value) {
if (typeof value !== "string") return "F8";
const order = { Ctrl: 0, Alt: 1, Shift: 2 };
const unique = Array.from(new Set(value.split("+").map(part => part.trim()).filter(Boolean)));
const modifiers = unique.filter(part => Object.prototype.hasOwnProperty.call(order, part)).sort((a, b) => order[a] - order[b]);
const mainKeys = unique.filter(part => !Object.prototype.hasOwnProperty.call(order, part));
if (mainKeys.length !== 1) return "F8";
const mainKey = mainKeys[0];
const supported = /^[A-Z0-9]$/.test(mainKey)
|| /^F(?:[1-9]|1[0-2])$/.test(mainKey)
|| ["Backspace", "Tab", "Enter", "Space", "PageUp", "PageDown", "End", "Home",
"ArrowLeft", "ArrowUp", "ArrowRight", "ArrowDown", "Insert", "Delete", "Semicolon",
"Equal", "Comma", "Minus", "Period", "Slash", "Backquote", "BracketLeft", "Backslash",
"BracketRight", "Quote"].includes(mainKey);
if (!supported || (modifiers.length === 0 && /^[A-Z]$/.test(mainKey))) return "F8";
return [...modifiers, mainKey].join("+");
}
function getPauseHotkey() {
const configured = settings_msg && settings_msg.pauseHotkey;
return normalizePauseHotkey(configured);
}
/**
* 等待暂停结束。使用短轮询让 HTML 控制面板可以及时恢复演奏。
*/
async function waitWhilePaused() {
while (playbackPaused) {
await sleep(50);
}
}
/**
* 只计算实际演奏时间的 sleep;暂停所经过的时间不会消耗音符时值。
* @param {number} duration 等待时长(毫秒)
*/
async function playbackSleep(duration) {
let remaining = Math.max(0, Math.round(Number(duration) || 0));
while (remaining > 0) {
await waitWhilePaused();
const slice = Math.min(remaining, 50);
const startedAt = Date.now();
await sleep(slice);
if (!playbackPaused) {
remaining -= Math.max(1, Date.now() - startedAt);
}
}
await waitWhilePaused();
}
function musicKeyDown(key) {
ignoredInjectedKeyDownUntil.set(key, Date.now() + 250);
keyDown(key);
activeMusicKeys.add(key);
}
function musicKeyUp(key) {
ignoredInjectedKeyUpUntil.set(key, Date.now() + 250);
keyUp(key);
activeMusicKeys.delete(key);
}
function scriptKeyPress(key) {
const ignoredUntil = Date.now() + 250;
ignoredInjectedKeyDownUntil.set(key, ignoredUntil);
ignoredInjectedKeyUpUntil.set(key, ignoredUntil);
keyPress(key);
}
function releaseAllMusicKeys() {
for (const key of activeMusicKeys) {
ignoredInjectedKeyUpUntil.set(key, Date.now() + 250);
keyUp(key);
}
activeMusicKeys.clear();
}
/**
* 切换演奏暂停状态。暂停时释放琴键,恢复时重新按下被暂停的长音。
*/
function setPlaybackPaused(paused) {
const nextPaused = Boolean(paused);
if (nextPaused === playbackPaused) return;
if (nextPaused) {
suspendedMusicKeys = Array.from(activeMusicKeys);
releaseAllMusicKeys();
playbackPaused = true;
log.info("演奏已暂停");
} else {
playbackPaused = false;
for (const key of suspendedMusicKeys) {
musicKeyDown(key);
}
suspendedMusicKeys = [];
log.info("演奏已继续");
}
}
function resetPlaybackState() {
releaseAllMusicKeys();
suspendedMusicKeys = [];
playbackPaused = false;
}
function sendPlaybackState(message) {
if (activePlaybackWindowId !== null && htmlMask.exists(activePlaybackWindowId)) {
htmlMask.send(activePlaybackWindowId, "/playback/state", JSON.stringify({
playing: playbackTask !== null,
paused: playbackPaused,
hotkey: getPauseHotkey(),
message: message
}));
}
}
/**
* 注册全局暂停热键。即使 HTML 遮罩处于鼠标穿透状态也可使用,
* 因而不会影响玩家继续操作游戏。
*/
function registerPauseHotkey() {
const hook = new KeyMouseHook();
hook.onKeyDown((keyCode) => {
const normalized = typeof keyCode === "object"
? (keyCode.keyCode ?? keyCode.KeyCode ?? keyCode.code ?? keyCode.Code)
: keyCode;
const keyName = keyCodeToHotkeyName(normalized);
if (!keyName) return;
const ignoredUntil = ignoredInjectedKeyDownUntil.get(keyName) || 0;
if (ignoredUntil >= Date.now()) {
ignoredInjectedKeyDownUntil.delete(keyName);
return;
}
pressedHotkeyKeys.add(keyName);
const hotkeyParts = getPauseHotkey().split("+");
const mainHotkey = hotkeyParts[hotkeyParts.length - 1];
const isPauseHotkey = keyName === mainHotkey && hotkeyParts.every(part => pressedHotkeyKeys.has(part));
const now = Date.now();
if (!isPauseHotkey || pauseHotkeyLatched || playbackTask === null || now - lastPauseHotkeyAt < 300) return;
pauseHotkeyLatched = true;
lastPauseHotkeyAt = now;
setPlaybackPaused(!playbackPaused);
sendPlaybackState();
}, true);
hook.onKeyUp((keyCode) => {
const normalized = typeof keyCode === "object"
? (keyCode.keyCode ?? keyCode.KeyCode ?? keyCode.code ?? keyCode.Code)
: keyCode;
const keyName = keyCodeToHotkeyName(normalized);
const ignoredUntil = keyName ? (ignoredInjectedKeyUpUntil.get(keyName) || 0) : 0;
if (keyName && ignoredUntil >= Date.now()) {
ignoredInjectedKeyUpUntil.delete(keyName);
return;
}
if (keyName) pressedHotkeyKeys.delete(keyName);
const hotkeyParts = getPauseHotkey().split("+");
if (!hotkeyParts.every(part => pressedHotkeyKeys.has(part))) pauseHotkeyLatched = false;
}, true);
return hook;
}
/**
* -------- 工具函数 --------
*/
@@ -701,9 +900,10 @@
musicQueue: [],
autoSwitch: false,
queueInterval: 0,
repeatTimes: 1,
repeatInterval: 0,
debug: false
repeatTimes: 1,
repeatInterval: 0,
debug: false,
pauseHotkey: "F8"
}
@@ -783,9 +983,10 @@
Settings.musicQueue = matched;
}
Settings.debug = (typeof (settings.debug_mode) === 'undefined') ? false : settings.debug_mode === "启用";
DEBUG = Settings.debug;
Settings.debug = (typeof (settings.debug_mode) === 'undefined') ? false : settings.debug_mode === "启用";
Settings.pauseHotkey = normalizePauseHotkey(settings.pause_hotkey);
DEBUG = Settings.debug;
return Settings;
} catch (error) {
@@ -886,23 +1087,23 @@
* @param extra_wait 额外等待(防止单个按键间隔过短)
*
*/
async function play_note(key, status = "press", extra_wait = false) {
if (status === "press") {
keyDown(key);
keyUp(key);
if (extra_wait) await sleep(lowest_latency);
} else if (status === "down") {
keyDown(key);
} else if (status === "up") {
keyUp(key);
if (extra_wait) {
await sleep(lowest_latency);
if (DEBUG) {
log.info(`补足延迟:预期用时 ${lowest_latency} ms`);
}
await sleep(lowest_latency);
}
}
async function play_note(key, status = "press", extra_wait = false) {
if (status === "press") {
musicKeyDown(key);
musicKeyUp(key);
if (extra_wait) await playbackSleep(lowest_latency);
} else if (status === "down") {
musicKeyDown(key);
} else if (status === "up") {
musicKeyUp(key);
if (extra_wait) {
await playbackSleep(lowest_latency);
if (DEBUG) {
log.info(`补足延迟:预期用时 ${lowest_latency} ms`);
}
await playbackSleep(lowest_latency);
}
}
}
@@ -923,22 +1124,22 @@
if (DEBUG) {
log.info(`补足延迟:预期用时 ${lowest_latency} ms`);
}
await sleep(lowest_latency);
await playbackSleep(lowest_latency);
}
}
} else if (status === "down") {
for (const key of keys) {
keyDown(key);
}
} else if (status === "up") {
for (const key of keys) {
keyUp(key);
}
} else if (status === "down") {
for (const key of keys) {
musicKeyDown(key);
}
} else if (status === "up") {
for (const key of keys) {
musicKeyUp(key);
}
if (extra_wait) {
if (DEBUG) {
log.info(`补足延迟:预期用时 ${lowest_latency} ms`);
}
await sleep(lowest_latency);
await playbackSleep(lowest_latency);
}
}
@@ -963,18 +1164,19 @@
* @description key:键盘按键
* @description time:此音符需要持续的时长,单位为一拍时间
*/
async function notePlay(note, gap) {
async function notePlay(note, gap) {
const wait = note["offset"];
const key = note["key"];
const time = note["time"];
await sleep(RandomRhythmOffset(Math.floor(wait * gap))); // SleepTime
keyDown(key);
await sleep(RandomRhythmOffset(Math.floor(time * gap))); // SleepTime
keyUp(key);
await playbackSleep(RandomRhythmOffset(Math.floor(wait * gap))); // SleepTime
musicKeyDown(key);
await playbackSleep(RandomRhythmOffset(Math.floor(time * gap))); // SleepTime
musicKeyUp(key);
}
log.info(`总计 ${bar_list.length} 小节, 预计演奏时长 ${(bar_list.length * gap * bar_list[0][0] / 1000).toFixed(2)}秒`);
for (let i = 0; i < bar_list.length; i++) {
if (Math.random() < 0.5) keyPress("I"); // AC
for (let i = 0; i < bar_list.length; i++) {
await waitWhilePaused();
if (Math.random() < 0.5) scriptKeyPress("I"); // AC
let bar = bar_list[i];
let barTime = bar[0];
let notes = bar.slice(1);
@@ -985,9 +1187,9 @@
if (DEBUG) {
log.info(`${i} / ${bar_list.length} ${(i / bar_list.length * 100).toFixed(2)}%`)
}
await sleep(Math.floor(barTime * gap)); // 等待小节结束
}
await sleep(Math.floor(gap * 8)); // 额外等待
await playbackSleep(Math.floor(barTime * gap)); // 等待小节结束
}
await playbackSleep(Math.floor(gap * 8)); // 额外等待
}
/**
@@ -1335,9 +1537,10 @@
let play_sheet = sheet_list.split("|");
let base_time = 60000 / (bpm * ticks); // second per beat - 每tick多少毫秒
let midi_start_time = Date.now();
for (let i = 0; i < play_sheet.length; i++) {
if (Math.random() < 0.5) keyPress("I"); // AC
let midi_start_time = Date.now();
for (let i = 0; i < play_sheet.length; i++) {
await waitWhilePaused();
if (Math.random() < 0.5) scriptKeyPress("I"); // AC
// 预期用时
let expected_usage = 0;
// 变速标记
@@ -1374,22 +1577,22 @@
const next_match = play_sheet[i + 1].match(regex);
if (next_match && hasCommonChar(next_match[2], notes) && next_match[1] === 'D' && 'D' !== status) {
let r_wait_time = wait_time - lowest_latency; // 正常时长减去 下一个音的额外延迟+延迟补偿
await sleep(r_wait_time);
await playbackSleep(r_wait_time);
if (DEBUG) {
log.info(`提前抬起:${r_wait_time}`);
}
} else {
await sleep(wait_time);
await playbackSleep(wait_time);
}
}
} else {
await sleep(wait_time);
await playbackSleep(wait_time);
}
} else { //对相邻同音的按下/抬起对添加补偿延迟,避免无差别强制sleep导致流畅度下降
if (play_sheet[i - 1][0] !== "*" && play_sheet[i][0] !== "*") {
const prev_match = play_sheet[i - 1].match(regex);
if (prev_match && hasCommonChar(prev_match[2], notes) && prev_match[1] === 'U' && 'U' !== status) {
await sleep(lowest_latency); // 额外延迟 防止丢音
await playbackSleep(lowest_latency); // 额外延迟 防止丢音
if (DEBUG) {
log.info(`补足延迟:${lowest_latency}`);
}
@@ -1397,7 +1600,7 @@
}
}
} else {
await sleep(wait_time);
await playbackSleep(wait_time);
}
if (notes === "@") continue;
@@ -1431,9 +1634,10 @@
let ornament_time = Math.round(symbol_time / 16)
let yq_start_time = Date.now();
// test 需要额外计算装饰音时值的影响
for (let i = 0; i < sheet_list.length; i++) {
if (Math.random() < 0.5) keyPress("I"); // AC
// test 需要额外计算装饰音时值的影响
for (let i = 0; i < sheet_list.length; i++) {
await waitWhilePaused();
if (Math.random() < 0.5) scriptKeyPress("I"); // AC
// 显示正在演奏的音符
if (DEBUG) {
@@ -1455,11 +1659,11 @@
}
}
}
await sleep(sleep_time);
await playbackSleep(sleep_time);
await play_chord(sheet_list[i]["note"], "up", flag);
} else {
if (sheet_list[i]["note"] === '@') { // 休止符
await sleep(sleep_time);
await playbackSleep(sleep_time);
} else {
await play_note(sheet_list[i]["note"], "down"); // 单音
let flag = false;
@@ -1473,7 +1677,7 @@
}
}
}
await sleep(sleep_time);
await playbackSleep(sleep_time);
await play_chord(sheet_list[i]["note"], "up", flag);
}
}
@@ -1496,7 +1700,7 @@
}
}
}
await sleep(sleep_time);
await playbackSleep(sleep_time);
await play_chord(sheet_list[i]["note"], "up", flag);
} else {
await play_note(sheet_list[i]["note"], "down"); // 单音
@@ -1511,7 +1715,7 @@
}
}
}
await sleep(sleep_time);
await playbackSleep(sleep_time);
await play_note(sheet_list[i]["note"], "up", flag);
}
} else if (/\.([36$])/.test(sheet_list[i]["spl"])) { // 三连音/六连音(可能包含休止符)
@@ -1565,11 +1769,11 @@
}
}
}
await sleep(sleep_time);
await playbackSleep(sleep_time);
await play_chord(temp_legato[j]["note"], "up", flag);
} else {
if (temp_legato[j]["note"] === '@') { // 休止符
await sleep(sleep_time);
await playbackSleep(sleep_time);
} else {
await play_note(temp_legato[j]["note"], "down"); // 单音
let flag = false;
@@ -1583,7 +1787,7 @@
}
}
}
await sleep(sleep_time);
await playbackSleep(sleep_time);
await play_note(temp_legato[j]["note"], "up", flag);
}
}
@@ -1618,11 +1822,11 @@
}
}
}
await sleep(sleep_time);
await playbackSleep(sleep_time);
await play_chord(sheet_list[i]["note"], "up", flag);
} else {
if (sheet_list[i]["note"] === '@') { // 休止符
await sleep(sleep_time);
await playbackSleep(sleep_time);
} else {
await play_note(sheet_list[i]["note"], "down"); // 单音
let flag = false;
@@ -1636,7 +1840,7 @@
}
}
}
await sleep(sleep_time);
await playbackSleep(sleep_time);
await play_note(sheet_list[i]["note"], "up", flag);
}
}
@@ -1658,20 +1862,20 @@
if (sheet_list[i]["chord"]) {
if (sheet_list[i]["spl"] === '^') {
for (const key of sheet_list[i]["note"]) {
keyDown(key);
musicKeyDown(key);
}
} else {
for (const key of sheet_list[i]["note"]) {
keyUp(key);
musicKeyUp(key);
}
await sleep(RandomRhythmOffset(lowest_latency)); // SleepTime
await playbackSleep(RandomRhythmOffset(lowest_latency)); // SleepTime
}
} else {
if (sheet_list[i]["spl"] === '^') {
keyDown(sheet_list[i]["note"]);
musicKeyDown(sheet_list[i]["note"]);
} else {
keyUp(sheet_list[i]["note"]);
await sleep(RandomRhythmOffset(lowest_latency)); // SleepTime
musicKeyUp(sheet_list[i]["note"]);
await playbackSleep(RandomRhythmOffset(lowest_latency)); // SleepTime
}
}
} else {
@@ -1952,9 +2156,9 @@
default:
break;
}
if (settings_msg.queueInterval > 0) await sleep(settings_msg.queueInterval * 1000);
}
if (settings_msg.repeatInterval > 0) await sleep(settings_msg.repeatInterval * 1000);
if (settings_msg.queueInterval > 0) await playbackSleep(settings_msg.queueInterval * 1000);
}
if (settings_msg.repeatInterval > 0) await playbackSleep(settings_msg.repeatInterval * 1000);
} while (alwaysRepeat || --settings_msg.repeatTimes > 0);
}
@@ -2009,10 +2213,13 @@
/**
* ------- 主程序 --------
*/
async function main() {
if (settings.cover) {
const winId = htmlMask.show("assets/index.html");
htmlMask.setClickThrough(winId, false);
async function main() {
const pauseHotkey = registerPauseHotkey();
try {
if (settings.cover) {
const winId = htmlMask.show("assets/index.html");
activePlaybackWindowId = winId;
htmlMask.setClickThrough(winId, false);
// 持续接收 HTML 消息
while (htmlMask.exists(winId)) {
@@ -2021,14 +2228,41 @@
const parsed = JSON.parse(msg);
switch (parsed.url) {
case "/event/click":
htmlMask.send(winId, "/frame/minimize", "minimize");
htmlMask.setClickThrough(winId, true);
settings_msg = parsed.data;
await play(winId);
htmlMask.send(winId, "/frame/restore", "restore");
htmlMask.setClickThrough(winId, false);
break;
case "/event/click":
if (playbackTask !== null) {
htmlMask.send(winId, "/playback/state", JSON.stringify({ playing: true, paused: playbackPaused, hotkey: getPauseHotkey(), message: "已有乐曲正在演奏" }));
break;
}
htmlMask.send(winId, "/frame/minimize", "minimize");
// 演奏时保持鼠标穿透,使用全局自定义热键暂停,不影响游戏操作。
htmlMask.setClickThrough(winId, true);
settings_msg = parsed.data;
resetPlaybackState();
htmlMask.send(winId, "/playback/state", JSON.stringify({ playing: true, paused: false, hotkey: getPauseHotkey() }));
playbackTask = (async () => {
try {
await play(winId);
} catch (error) {
log.error(`演奏过程中出错:${error}`);
} finally {
resetPlaybackState();
playbackTask = null;
if (htmlMask.exists(winId)) {
htmlMask.send(winId, "/playback/state", JSON.stringify({ playing: false, paused: false, hotkey: getPauseHotkey() }));
htmlMask.send(winId, "/frame/restore", "restore");
htmlMask.setClickThrough(winId, false);
}
}
})();
break;
case "/playback/pause":
if (playbackTask === null) {
htmlMask.send(winId, "/playback/state", JSON.stringify({ playing: false, paused: false, hotkey: getPauseHotkey(), message: "当前没有正在演奏的乐曲" }));
break;
}
setPlaybackPaused(parsed.data && typeof parsed.data.paused === "boolean" ? parsed.data.paused : !playbackPaused);
htmlMask.send(winId, "/playback/state", JSON.stringify({ playing: true, paused: playbackPaused, hotkey: getPauseHotkey() }));
break;
case "/config/update":
await checkSheetFile(winId);
break;
@@ -2046,12 +2280,23 @@
}
}
htmlMask.close(winId);
} else {
await play();
}
}
htmlMask.close(winId);
activePlaybackWindowId = null;
} else {
resetPlaybackState();
playbackTask = play();
try {
await playbackTask;
} finally {
resetPlaybackState();
playbackTask = null;
}
}
} finally {
pauseHotkey.removeAllListeners();
pauseHotkey.dispose();
}
}
await main();
})();
+1 -1
View File
@@ -1,7 +1,7 @@
{
"manifest_version": 1,
"name": "原琴·乐曲转换、自动演奏",
"version": "3.7.3",
"version": "3.7.4",
"bgi_version": "0.62.1",
"description": "功能描述:功能及其强大的原琴脚本\n核心功能------------------------------>\n1.轻松实现根据五线谱翻版琴谱,支持单音、和弦\n2.曲谱支持录入BPM、拍号\n3.特殊音符支持休止符、浮点音符、(三/六)连音、(三/六)连音标记线、装饰音·倚音\n4.含有制谱器,方便制作曲谱\n注意事项------------------------------>\n1.使用前请装备原琴\n2.音域只有3个八度,受原琴音域限制,本脚本的上限取决于翻谱的大佬(卑微\n3.实际上装饰音·倚音的时长视为基础时值单位(比如拍号2/4的基础时值单位就是4分音符)的1/16\n4.制铺说明:曲谱JSON文件的notes必须保证为一行且不能包括空白符(换行符除外);小节之间用|隔开,|不是必要的,作用是方便曲谱维护\n---------------------------------------->\n作者:提瓦特钓鱼玳师\n脚本反馈邮箱:[email protected]",
"authors": [
+6
View File
@@ -10,6 +10,12 @@
"type": "input-text",
"label": "定时启动时间(示例 19:19:10 默认:不启用)"
},
{
"name": "pause_hotkey",
"type": "input-text",
"label": "暂停/继续快捷键(在游戏内面板点击录入,例如 Ctrl+Shift+P)",
"default": "F8"
},
{
"name": "type_select",
"type": "select",