根据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号
Perfect implement. Model shared. x0.5 (Top1:60.646) and 1.0x (Top1:69.402).

Shufflenet-v2-Pytorch Introduction This is a Pytorch implementation of faceplusplus's ShuffleNet-v2. For details, please read the following papers:

423 Dec 07, 2022
A python script to convert images to animated sus among us crewmate twerk jifs as seen on r/196

img_sussifier A python script to convert images to animated sus among us crewmate twerk jifs as seen on r/196 Examples How to use install python pip i

41 Sep 30, 2022
Official implementation of VaxNeRF (Voxel-Accelearated NeRF).

VaxNeRF Paper | Google Colab This is the official implementation of VaxNeRF (Voxel-Accelearated NeRF). VaxNeRF provides very fast training and slightl

naruya 132 Nov 21, 2022
GDR-Net: Geometry-Guided Direct Regression Network for Monocular 6D Object Pose Estimation. (CVPR 2021)

GDR-Net This repo provides the PyTorch implementation of the work: Gu Wang, Fabian Manhardt, Federico Tombari, Xiangyang Ji. GDR-Net: Geometry-Guided

169 Jan 07, 2023
Resources for the Ki testnet challenge

Ki Testnet Challenge This repository hosts ki-testnet-challenge. A set of scripts and resources to be used for the Ki Testnet Challenge What is the te

Ki Foundation 23 Aug 08, 2022
Save-restricted-v-3 - Save restricted content Bot For telegram

Save restricted content Bot Contact: Telegram A stable telegram bot to get restr

DEVANSH 11 Dec 21, 2022
Implementation of PersonaGPT Dialog Model

PersonaGPT An open-domain conversational agent with many personalities PersonaGPT is an open-domain conversational agent cpable of decoding personaliz

ILLIDAN Lab 42 Jan 01, 2023
Create and implement a deep learning library from scratch.

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

Rishabh Bali 22 Aug 23, 2022
PyTorch implementation of federated learning framework based on the acceleration of global momentum

Federated Learning with Acceleration of Global Momentum PyTorch implementation of federated learning framework based on the acceleration of global mom

0 Dec 23, 2021
Creating Multi Task Models With Keras

Creating Multi Task Models With Keras About The Project! I used the keras and Tensorflow Library, To build a Deep Learning Neural Network to Creating

Srajan Chourasia 4 Nov 28, 2022
⚖️🔁🔮🕵️‍♂️🦹🖼️ Code for *Measuring the Contribution of Multiple Model Representations in Detecting Adversarial Instances* paper.

Measuring the Contribution of Multiple Model Representations in Detecting Adversarial Instances This repository contains the code for Measuring the Co

Daniel Steinberg 0 Nov 06, 2022
Online Pseudo Label Generation by Hierarchical Cluster Dynamics for Adaptive Person Re-identification

Online Pseudo Label Generation by Hierarchical Cluster Dynamics for Adaptive Person Re-identification

TANG, shixiang 6 Nov 25, 2022
Open source implementation of AceNAS: Learning to Rank Ace Neural Architectures with Weak Supervision of Weight Sharing

AceNAS This repo is the experiment code of AceNAS, and is not considered as an official release. We are working on integrating AceNAS as a built-in st

Yuge Zhang 6 Sep 07, 2022
Code for the paper "TadGAN: Time Series Anomaly Detection Using Generative Adversarial Networks"

TadGAN: Time Series Anomaly Detection Using Generative Adversarial Networks This is a Python3 / Pytorch implementation of TadGAN paper. The associated

Arun 92 Dec 03, 2022
Spatial Attentive Single-Image Deraining with a High Quality Real Rain Dataset (CVPR'19)

Spatial Attentive Single-Image Deraining with a High Quality Real Rain Dataset (CVPR'19) Tianyu Wang*, Xin Yang*, Ke Xu, Shaozhe Chen, Qiang Zhang, Ry

Steve Wong 177 Dec 01, 2022
TensorRT examples (Jetson, Python/C++)(object detection)

TensorRT examples (Jetson, Python/C++)(object detection)

Nobuo Tsukamoto 53 Dec 22, 2022
Autonomous Movement from Simultaneous Localization and Mapping

Autonomous Movement from Simultaneous Localization and Mapping About us Built by a group of Clarkson University students with the help from Professor

14 Nov 07, 2022
SSD: A Unified Framework for Self-Supervised Outlier Detection [ICLR 2021]

SSD: A Unified Framework for Self-Supervised Outlier Detection [ICLR 2021] Pdf: https://openreview.net/forum?id=v5gjXpmR8J Code for our ICLR 2021 pape

Princeton INSPIRE Research Group 113 Nov 27, 2022
Unofficial Tensorflow Implementation of ConvNeXt from A ConvNet for the 2020s

Tensorflow Implementation of "A ConvNet for the 2020s" This is the unofficial Tensorflow Implementation of ConvNeXt from "A ConvNet for the 2020s" pap

DK 11 Oct 12, 2022
Pytorch implementation of paper "Efficient Nearest Neighbor Language Models" (EMNLP 2021)

Pytorch implementation of paper "Efficient Nearest Neighbor Language Models" (EMNLP 2021)

Junxian He 57 Jan 01, 2023