{"repo":"jacbz/Lofi","free":true,"listed":false,"github":"https://github.com/jacbz/Lofi","clone":"git clone https://github.com/jacbz/Lofi.git","description":"ML-supported lo-fi music generator","language":"TypeScript","stars":458,"topics":["music","machine-learning","vae","tonejs","lofi-music","pytorch","flask","typescript","lofi"],"license":"Apache-2.0","category":"machine-learning","readme_excerpt":"[![Build][build-shield]][build-url] [![Stargazers][stars-shield]][stars-url] [![Forks][forks-shield]][forks-url] [![Issues][issues-shield]][issues-url] [![Contributors][contributors-shield]][contributors-url] [![Apache License][license-shield]][license-url] Lofi A ML-supported lo-fi music generator. Explore » About We trained a VAE model in PyTorch to represent a lo-fi track as a vector of 100 features. A lo-fi track consists of chords, melodies, and other musical parameters. The web client uses Tone.js to make a dusty lo-fi track out of these parameters. Architecture Client : The client is written in TypeScript and built with Webpack. It uses Tone.js to generate music. Model : The model is implemented in PyTorch. We synthesized various datasets, including Hooktheory and Spotify. Server : The server is a basic Flask instance that deploys the trained model checkpoint. The client communicates with the server using a REST API. Setup If you only want to tinker around with the client, you will only need the client folder. This will use the project's server as the backend. If you want to deploy your own model, you can either train your own model (see the instructions in the model ) or download the pre-trained checkpoint from here. Once you have deployed the server, change the server address inside client\\src\\api.ts . Set up the client 1. Install node.js LTS. 1. Navigate to the client folder and run npm install to install the dependencies. 2. Run npm run serve to develop or npm run ","default_branch":null,"files":null,"tree":[],"storefront":"/r/jacbz","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/jacbz/Lofi/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}