Coder Social home page Coder Social logo

pianoml's Introduction

Piano ML

Hackathon project by PeaceOfPi, Sinha-Soumik, The-Senate-I-Am, and phuang1024

Running Locally

pip install -r requirements.txt

ML Server

The ML autocomplete program is run as a server separate from the GUI. (They could be run from the same computer.)

You also need to obtain a model. I have trained a model, which you can download at this link

https://drive.google.com/file/d/1zXGMuueuYocWr0hC9wyOJsqzEnHa8h3k/view?usp=share_link

cd ml

# Save model to this file:
mkdir results
mv /path/to/model.pt results/model.pt

python server.py

GUI

cd gui
python main.py --ip ip_of_server

GUI Usage

The GUI is a basic MIDI recording system with a fixed length of 30 seconds. Playing the piano is done via keyboard; use the keys awsedftgyhujkolp;', which resemble the keys on a piano. Use the keys z and x to move down and up octaves.

Press the Record button and play a melody. Press the Stop button to end recording.

Press the Autocomplete button to query the ML program. The neural network will return a completion after the last note you have recorded.

pianoml's People

Contributors

peaceofpi avatar phuang1024 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

dlee888

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.