{"id":25278425,"url":"https://github.com/saobby/gi-auto-play-midi","last_synced_at":"2026-02-15T19:34:24.276Z","repository":{"id":274402566,"uuid":"922789306","full_name":"Saobby/GI-auto-play-midi","owner":"Saobby","description":"将midi文件转换为按键精灵脚本,实现在动漫游戏中自动演奏","archived":false,"fork":false,"pushed_at":"2025-01-27T04:24:31.000Z","size":17,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-12T17:50:35.509Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Saobby.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-27T04:20:01.000Z","updated_at":"2025-01-27T07:14:47.000Z","dependencies_parsed_at":"2025-01-27T05:33:49.490Z","dependency_job_id":null,"html_url":"https://github.com/Saobby/GI-auto-play-midi","commit_stats":null,"previous_names":["saobby/gi-auto-play-midi"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saobby%2FGI-auto-play-midi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saobby%2FGI-auto-play-midi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saobby%2FGI-auto-play-midi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saobby%2FGI-auto-play-midi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Saobby","download_url":"https://codeload.github.com/Saobby/GI-auto-play-midi/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247478332,"owners_count":20945267,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-12T17:42:29.951Z","updated_at":"2026-02-15T19:34:19.237Z","avatar_url":"https://github.com/Saobby.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GI-auto-play-midi\n 将midi文件转换为按键精灵脚本,实现在动漫游戏中自动演奏\n- - - - -\n# 使用方法\n1. 在项目根目录执行指令:  \n```\npip install -r requirements.txt\n```\n2. 将要转换的 midi 文件放入`./midi`文件夹\n3. 运行`./main.py`\n4. 生成的按键精灵脚本会被放在`./script`目录，打开希望演奏的 midi 的脚本\n5. 打开按键精灵，点`新建脚本`，点击代码输入框顶部的`源文件`，将生成的脚本复制粘贴进去，点击最顶部的`保存退出`。点击左边栏的`我的脚本`找到刚刚创建的脚本，勾选它，取消勾选其它脚本。  \n![image](https://github.com/user-attachments/assets/69915f4f-abe0-429f-b45d-3d424a310541)  \n![image](https://github.com/user-attachments/assets/5d80dc2e-274b-4fbf-9a89-54dd330bf17e)  \n![image](https://github.com/user-attachments/assets/45525504-f0e4-4b7c-88a5-1dcbfc32c8ba)\n6. 打开游戏客户端，打开琴，按`F10`执行脚本\n# 常见问题\n1. 无法转换  \n可能是 midi 文件的问题，请尝试用一些 midi 编辑器(如 MuseScore)打开要转换的 midi 文件，如果可以正常打开，用 midi 编辑器重新导出 midi ，用导出的 midi 尝试转换。如果 midi 编辑器无法打开，请更换 midi 文件。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaobby%2Fgi-auto-play-midi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaobby%2Fgi-auto-play-midi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaobby%2Fgi-auto-play-midi/lists"}