GithubHelp home page GithubHelp logo

lyre's Introduction

lyre

Description

Lyre is a python package that can read .lyre files and pass the notes to the currently running Genshin Impact instance. The program will pull up the lyre, play the song (possibly indefinitely), and close the lyre.

Usage

Running Lyre

Lyre requires Python 3.6^. The easiest way to run this is through Poetry. Using this, the package can be run with the following command:

poetry run python -m lyre {.lyre file}

This package is not currently on PyPI.

At any point during execution, you can press ctrl+c on the terminal to prematurely end the performance.

.lyre Files

.lyre files have a specific format, and are split into 2 parts:

  • Header

    • One line at the top of the file
    • {BPM} [loop]
    • Example: 120 loop
    • The BPM sets how much delay there is between full beats (set to 60_000 / BPM ms)
    • loop is optional. Setting it will cause Lyre to repeat the song endlessly
  • Body

    • Each line is a single chord played on the harp
    • {Beats since last chord} {Notes in chord}
    • Example: 1 C3 E3 G3
    • Notes are written in standard notation
    • Valid notes are C3 - B6
    • No accidentals
    • The number of beats since the last chord is a float; 0.333 is a valid value

See the examples folder for and idea of what this looks like.

Contributing

No plans for now. Message me if you want to add something.

lyre's People

Contributors

miarodri avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.