根据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号
Self-Attention Between Datapoints: Going Beyond Individual Input-Output Pairs in Deep Learning

We challenge a common assumption underlying most supervised deep learning: that a model makes a prediction depending only on its parameters and the features of a single input. To this end, we introdu

OATML 360 Dec 28, 2022
Exploration of some patients clinical variables.

Answer_ALS_clinical_data Exploration of some patients clinical variables. All the clinical / metadata data is available here: https://data.answerals.o

1 Jan 20, 2022
Controlling the MicriSpotAI robot from scratch

Project-MicroSpot-AI Controlling the MicriSpotAI robot from scratch Colaborators Alexander Dennis Components from MicroSpot The MicriSpotAI has the fo

Dennis Núñez-Fernández 5 Oct 20, 2022
MegEngine implementation of YOLOX

Introduction YOLOX is an anchor-free version of YOLO, with a simpler design but better performance! It aims to bridge the gap between research and ind

旷视天元 MegEngine 77 Nov 22, 2022
A graph neural network (GNN) model to predict protein-protein interactions (PPI) with no sample features

A graph neural network (GNN) model to predict protein-protein interactions (PPI) with no sample features

2 Jul 25, 2022
Julia package for multiway (inverse) covariance estimation.

TensorGraphicalModels TensorGraphicalModels.jl is a suite of Julia tools for estimating high-dimensional multiway (tensor-variate) covariance and inve

Wayne Wang 3 Sep 23, 2022
Implementation of [Time in a Box: Advancing Knowledge Graph Completion with Temporal Scopes].

Time2box Implementation of [Time in a Box: Advancing Knowledge Graph Completion with Temporal Scopes].

LingCai 4 Aug 23, 2022
A clean and robust Pytorch implementation of PPO on continuous action space.

PPO-Continuous-Pytorch I found the current implementation of PPO on continuous action space is whether somewhat complicated or not stable. And this is

XinJingHao 56 Dec 16, 2022
SigOpt wrappers for scikit-learn methods

SigOpt + scikit-learn Interfacing This package implements useful interfaces and wrappers for using SigOpt and scikit-learn together Getting Started In

SigOpt 73 Sep 30, 2022
Introduction to Statistics and Basics of Mathematics for Data Science - The Hacker's Way

HackerMath for Machine Learning “Study hard what interests you the most in the most undisciplined, irreverent and original manner possible.” ― Richard

Amit Kapoor 1.4k Dec 22, 2022
General Assembly Capstone: NBA Game Predictor

Project 6: Predicting NBA Games Problem Statement Can I predict the results of NBA games from the back-half of a season from the opening half of the s

Adam Muhammad Klesc 1 Jan 14, 2022
Reinforcement Learning for Portfolio Management

qtrader Reinforcement Learning for Portfolio Management Why Reinforcement Learning? Learns the optimal action, rather than models the market. Adaptive

Angelos Filos 406 Jan 01, 2023
Segmentation models with pretrained backbones. PyTorch.

Python library with Neural Networks for Image Segmentation based on PyTorch. The main features of this library are: High level API (just two lines to

Pavel Yakubovskiy 6.6k Jan 06, 2023
SSD-based Object Detection in PyTorch

SSD-based Object Detection in PyTorch 서강대학교 현대모비스 SW 프로그램에서 진행한 인공지능 프로젝트입니다. Jetson nano를 이용해 pre-trained network를 fine tuning시켜 차량 및 신호등 인식을 구현하였습니다

Haneul Kim 1 Nov 16, 2021
🥈78th place in Riiid Answer Correctness Prediction competition

Riiid Answer Correctness Prediction Introduction This repository is the code that placed 78th in Riiid Answer Correctness Prediction competition. Requ

Jungwoo Park 10 Jul 14, 2022
[AAAI-2022] Official implementations of MCL: Mutual Contrastive Learning for Visual Representation Learning

Mutual Contrastive Learning for Visual Representation Learning This project provides source code for our Mutual Contrastive Learning for Visual Repres

winycg 48 Jan 02, 2023
PyTorch implementation of CVPR 2020 paper (Reference-Based Sketch Image Colorization using Augmented-Self Reference and Dense Semantic Correspondence) and pre-trained model on ImageNet dataset

Reference-Based-Sketch-Image-Colorization-ImageNet This is a PyTorch implementation of CVPR 2020 paper (Reference-Based Sketch Image Colorization usin

Yuzhi ZHAO 11 Jul 28, 2022
The dataset of tweets pulling from Twitters with keyword: Hydroxychloroquine, location: US, Time: 2020

HCQ_Tweet_Dataset: FREE to Download. Keywords: HCQ, hydroxychloroquine, tweet, twitter, COVID-19 This dataset is associated with the paper "Understand

2 Mar 16, 2022
The official codes for the ICCV2021 presentation "Uniformity in Heterogeneity: Diving Deep into Count Interval Partition for Crowd Counting"

UEPNet (ICCV2021 Poster Presentation) This repository contains codes for the official implementation in PyTorch of UEPNet as described in Uniformity i

Tencent YouTu Research 15 Dec 14, 2022