根据midi文件演奏“风物之诗琴”的脚本 "Windsong Lyre" auto play

Overview

Genshin-lyre-auto-play

简体中文 | English

简介

根据midi文件演奏“风物之诗琴”的脚本。由Python驱动,在此承诺, ⚠️ 项目内绝不含任何能够引起安全问题的代码。

官方声明

前排提示:所有键盘在动但是原神没反应的都是因为没有管理员权限,双击run.bat或者以管理员模式运行命令行可以解决问题!(适用于方法二运行)

使用方法

方法一

对于没有接触过相关内容的用户,可以使用打包的exe文件:下载链接

双击运行然后按照提示输入midi文件名(不包含后缀,即.mid

ico图标来源于网络,侵删

方法二

查看

运行环境

Windows
python 3.x
pywin32 (用于模拟键盘输入)
numpy

1. 安装Python

去Python官网下载然后安装

2.安装模块

安装并配置好python环境后使用pip install -r requirements.txt命令安装模块。

国内可以使用:

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt

3.运行

使用管理员权限运行python piano.py,或者双击run.bat

注意

任何双击bat文件一闪而过都是因为程序出错,请按以下步奏依次检查:

  1. 检查是否安装了python 3.x并且设置了Path;
  2. 检查是否安装好了依赖包;
  3. 检查输入参数是否有误;
  4. 发一个issue,附上详细情况。

在输入midi名称后程序会自己切换回游戏内并演奏,如需退出可以最小化游戏窗口或者关闭程序窗口

新版本可自行选择↑

如何使用自己的曲谱?

确保乐谱midi文件中的音符在中央C和上下两个八度的白键位 并将midi文件放入名为songs的文件夹里。

声明

转载请务必加上来源,谢谢。请不要使用项目本体或者项目内曲谱进行任何盈利行为。

还存在bug,欢迎各位大佬提交pr

多人联携模式正在开发中。

可以给一个star嘛,秋梨膏~

Comments
  • What is playback speed?

    What is playback speed?

    If I put in the bpm it was too fast (155), I have no clue if it's even supposed to be bpm

    ^^^ The version earlier today ^^^


    vvv current version vvv

    It finds the song speed but its REALLY slow, what do I need to change in the song file to make the default speed faster

    Incomplete night of nights I threw together (1 minute)

    opened by ZhaanCS 7
  • (已解决)是不是少了个包啊

    (已解决)是不是少了个包啊

    File "C:\Users\15619\Desktop\genshin-lyre-auto-play-main\genshin-lyre-auto-play-main\midi\messages\checks.py", line 4, in from ..py2 import convert_py2_bytes ModuleNotFoundError: No module named 'midi.py2'

    opened by XiaoMiku01 5
  • "Try to culculate play speed...... Failed. Make sure the fileis not broken or input custom speed:(7)"

    For all midis not included, it shows the same error (even re-exporting the included files will also cause the same error)

    It shows "Try to culculate play speed...... Failed. Make sure the fileis not broken or input custom speed:(7)"

    Putting a custom not 60 or 120 will immediately crash the program Putting 60 will go to next step; https://i.imgur.com/rcZAtk9.png

    But program still crahes after

    opened by m4xolotl 4
  • Grammatical changes (English ReadME)

    Grammatical changes (English ReadME)

    The English originally was pretty understandable, there were some parts that was a bit confusing.

    It's not perfect (Because I don't know kanji that well) but I'm pretty confident that I made the word choices better without changing the meaning of the sentence.

    In the "Extra" I'm not sure what "reprint" was supposed to be, so I just guessed the meaning, please correct me if I'm wrong

    opened by ZhaanCS 3
  • Program crashes after the timer runs out

    Program crashes after the timer runs out

    https://imgur.com/a/pxuq0TJ

    piano.py from https://github.com/Misaka17032/genshin-lyre-auto-play/issues/10#issuecomment-808898876 works fine

    latest(?) version that still works https://github.com/Misaka17032/genshin-lyre-auto-play/blob/377c808a3c563ed2bd55d5b947050eec4b9973d3/piano.py

    opened by Quenom 2
  • 自动弹出原神窗口

    自动弹出原神窗口

    可以用这个方法自动打开原神窗口:

    def pop_window(name):
        handle = win32gui.FindWindow(0, name)
        if handle == 0:
            return False
        else:
            win32gui.SendMessage(handle, win32con.WM_SYSCOMMAND,
                                 win32con.SC_RESTORE, 0)
            win32gui.SetForegroundWindow(handle)
            while (win32gui.IsIconic(handle)):
                continue
            return True
    

    我的pr目前有冲突

    opened by yllhwa 2
Releases(V1.2.1)
Owner
御坂17032号
御坂17032号
An Official Repo of CVPR '20 "MSeg: A Composite Dataset for Multi-Domain Segmentation"

This is the code for the paper: MSeg: A Composite Dataset for Multi-domain Semantic Segmentation (CVPR 2020, Official Repo) [CVPR PDF] [Journal PDF] J

226 Nov 05, 2022
LLVM-based compiler for LightGBM gradient-boosted trees. Speeds up prediction by ≥10x.

LLVM-based compiler for LightGBM gradient-boosted trees. Speeds up prediction by ≥10x.

Simon Boehm 183 Jan 02, 2023
Metrics to evaluate quality and efficacy of synthetic datasets.

An Open Source Project from the Data to AI Lab, at MIT Metrics for Synthetic Data Generation Projects Website: https://sdv.dev Documentation: https://

The Synthetic Data Vault Project 129 Jan 03, 2023
One implementation of the paper "DMRST: A Joint Framework for Document-Level Multilingual RST Discourse Segmentation and Parsing".

Introduction One implementation of the paper "DMRST: A Joint Framework for Document-Level Multilingual RST Discourse Segmentation and Parsing". Users

seq-to-mind 18 Dec 11, 2022
YOLO5Face: Why Reinventing a Face Detector (https://arxiv.org/abs/2105.12931)

Introduction Yolov5-face is a real-time,high accuracy face detection. Performance Single Scale Inference on VGA resolution(max side is equal to 640 an

DeepCam Shenzhen 1.4k Jan 07, 2023
BabelCalib: A Universal Approach to Calibrating Central Cameras. In ICCV (2021)

BabelCalib: A Universal Approach to Calibrating Central Cameras This repository contains the MATLAB implementation of the BabelCalib calibration frame

Yaroslava Lochman 55 Dec 30, 2022
OpenMMLab Pose Estimation Toolbox and Benchmark.

Introduction English | 简体中文 MMPose is an open-source toolbox for pose estimation based on PyTorch. It is a part of the OpenMMLab project. The master b

OpenMMLab 2.8k Dec 31, 2022
Pytorch implementation of Straight Sampling Network For Point Cloud Learning (ICIP2021).

Pytorch code for SS-Net This is a pytorch implementation of Straight Sampling Network For Point Cloud Learning (ICIP2021). Environment Code is tested

Sun Ran 1 May 18, 2022
This repository contains the code for TABS, a 3D CNN-Transformer hybrid automated brain tissue segmentation algorithm using T1w structural MRI scans

This repository contains the code for TABS, a 3D CNN-Transformer hybrid automated brain tissue segmentation algorithm using T1w structural MRI scans. TABS relies on a Res-Unet backbone, with a Vision

6 Nov 07, 2022
Code for our CVPR 2021 paper "MetaCam+DSCE"

Joint Noise-Tolerant Learning and Meta Camera Shift Adaptation for Unsupervised Person Re-Identification (CVPR'21) Introduction Code for our CVPR 2021

FlyingRoastDuck 59 Oct 31, 2022
The Balloon Learning Environment - flying stratospheric balloons with deep reinforcement learning.

Balloon Learning Environment Docs The Balloon Learning Environment (BLE) is a simulator for stratospheric balloons. It is designed as a benchmark envi

Google 87 Dec 25, 2022
A simple configurable bot for sending arXiv article alert by mail

arXiv-newsletter A simple configurable bot for sending arXiv article alert by mail. Prerequisites PyYAML=5.3.1 arxiv=1.4.0 Configuration All config

SXKDZ 21 Nov 09, 2022
Real-time VIBE: Frame by Frame Inference of VIBE (Video Inference for Human Body Pose and Shape Estimation)

Real-time VIBE Inference VIBE frame-by-frame. Overview This is a frame-by-frame inference fork of VIBE at [https://github.com/mkocabas/VIBE]. Usage: i

23 Jul 02, 2022
IsoGCN code for ICLR2021

IsoGCN The official implementation of IsoGCN, presented in the ICLR2021 paper Isometric Transformation Invariant and Equivariant Graph Convolutional N

horiem 39 Nov 25, 2022
An Implementation of Fully Convolutional Networks in Tensorflow.

Update An example on how to integrate this code into your own semantic segmentation pipeline can be found in my KittiSeg project repository. tensorflo

Marvin Teichmann 1.1k Dec 12, 2022
Implementation of "Semi-supervised Domain Adaptive Structure Learning"

Semi-supervised Domain Adaptive Structure Learning - ASDA This repo contains the source code and dataset for our ASDA paper. Illustration of the propo

3 Dec 13, 2021
Implementation of CVPR'2022:Surface Reconstruction from Point Clouds by Learning Predictive Context Priors

Surface Reconstruction from Point Clouds by Learning Predictive Context Priors (CVPR 2022) Personal Web Pages | Paper | Project Page This repository c

136 Dec 12, 2022
Vision Transformer and MLP-Mixer Architectures

Vision Transformer and MLP-Mixer Architectures Update (2.7.2021): Added the "When Vision Transformers Outperform ResNets..." paper, and SAM (Sharpness

Google Research 6.4k Jan 04, 2023
RoboDesk A Multi-Task Reinforcement Learning Benchmark

RoboDesk A Multi-Task Reinforcement Learning Benchmark If you find this open source release useful, please reference in your paper: @misc{kannan2021ro

Google Research 66 Oct 07, 2022
Chinese named entity recognization with BiLSTM using Keras

Chinese named entity recognization (Bilstm with Keras) Project Structure ./ ├── README.md ├── data │   ├── README.md │   ├── data 数据集 │   │   ├─

1 Dec 17, 2021