根据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号
JAX + dataclasses

jax_dataclasses jax_dataclasses provides a wrapper around dataclasses.dataclass for use in JAX, which enables automatic support for: Pytree registrati

Brent Yi 35 Dec 21, 2022
Protect against subdomain takeover

domain-protect scans Amazon Route53 across an AWS Organization for domain records vulnerable to takeover deploy to security audit account scan your en

OVO Technology 0 Nov 17, 2022
A python code to convert Keras pre-trained weights to Pytorch version

Weights_Keras_2_Pytorch 最近想在Pytorch项目里使用一下谷歌的NIMA,但是发现没有预训练好的pytorch权重,于是整理了一下将Keras预训练权重转为Pytorch的代码,目前是支持Keras的Conv2D, Dense, DepthwiseConv2D, Batch

Liu Hengyu 2 Dec 16, 2021
This code is an implementation for Singing TTS.

MLP Singer This code is an implementation for Singing TTS. The algorithm is based on the following papers: Tae, J., Kim, H., & Lee, Y. (2021). MLP Sin

Heejo You 22 Dec 23, 2022
PyTorch META-DATASET (Few-shot classification benchmark)

PyTorch META-DATASET (Few-shot classification benchmark) This repo contains a PyTorch implementation of meta-dataset and a unified implementation of s

Malik Boudiaf 39 Oct 31, 2022
CUda Matrix Multiply library.

cumm CUda Matrix Multiply library. cumm is developed during learning of CUTLASS, which use too much c++ template and make code unmaintainable. So I de

49 Dec 27, 2022
Activity tragle - Google is tracking everything, we just look at it

activity_tragle Google is tracking everything, we just look at it here. You need

BERNARD Guillaume 1 Feb 15, 2022
Crab is a flexible, fast recommender engine for Python that integrates classic information filtering recommendation algorithms in the world of scientific Python packages (numpy, scipy, matplotlib).

Crab - A Recommendation Engine library for Python Crab is a flexible, fast recommender engine for Python that integrates classic information filtering r

python-recsys 1.2k Dec 21, 2022
FairMOT for Multi-Class MOT using YOLOX as Detector

FairMOT-X Project Overview FairMOT-X is a multi-class multi object tracker, which has been tailored for training on the BDD100K MOT Dataset. It makes

Jonathan Tan 33 Dec 28, 2022
code for generating data set ES-ImageNet with corresponding training code

es-imagenet-master code for generating data set ES-ImageNet with corresponding training code dataset generator some codes of ODG algorithm The variabl

Ordinarabbit 18 Dec 25, 2022
[CVPR2021 Oral] End-to-End Video Instance Segmentation with Transformers

VisTR: End-to-End Video Instance Segmentation with Transformers This is the official implementation of the VisTR paper: Installation We provide instru

Yuqing Wang 687 Jan 07, 2023
Accelerated Multi-Modal MR Imaging with Transformers

Accelerated Multi-Modal MR Imaging with Transformers Dependencies numpy==1.18.5 scikit_image==0.16.2 torchvision==0.8.1 torch==1.7.0 runstats==1.8.0 p

54 Dec 16, 2022
Imaging, analysis, and simulation software for radio interferometry

ehtim (eht-imaging) Python modules for simulating and manipulating VLBI data and producing images with regularized maximum likelihood methods. This ve

Andrew Chael 5.2k Dec 28, 2022
StarGAN2 for practice

StarGAN2 for practice This version of StarGAN2 (coined as 'Post-modern Style Transfer') is intended mostly for fellow artists, who rarely look at scie

vadim epstein 87 Sep 24, 2022
This repository is a series of notebooks that show solutions for the projects at Dataquest.io.

Dataquest Project Solutions This repository is a series of notebooks that show solutions for the projects at Dataquest.io. Of course, there are always

Dataquest 1.1k Dec 30, 2022
In this project, we create and implement a deep learning library from scratch.

ARA In this project, we create and implement a deep learning library from scratch. Table of Contents Deep Leaning Library Table of Contents About The

22 Aug 23, 2022
An Efficient Training Approach for Very Large Scale Face Recognition or F²C for simplicity.

Fast Face Classification (F²C) This is the code of our paper An Efficient Training Approach for Very Large Scale Face Recognition or F²C for simplicit

33 Jun 27, 2021
Anomaly Transformer: Time Series Anomaly Detection with Association Discrepancy" (ICLR 2022 Spotlight)

About Code release for Anomaly Transformer: Time Series Anomaly Detection with Association Discrepancy (ICLR 2022 Spotlight)

THUML @ Tsinghua University 221 Dec 31, 2022
Multi-task Multi-agent Soft Actor Critic for SMAC

Multi-task Multi-agent Soft Actor Critic for SMAC Overview The CARE formulti-task: Multi-Task Reinforcement Learning with Context-based Representation

RuanJingqing 8 Sep 30, 2022
Caffe: a fast open framework for deep learning.

Caffe Caffe is a deep learning framework made with expression, speed, and modularity in mind. It is developed by Berkeley AI Research (BAIR)/The Berke

Berkeley Vision and Learning Center 33k Dec 28, 2022