Giter Club home page Giter Club logo

rhythm-generator's Introduction

Data Science Community

Sound Spirit

Effortlessly generate original melodies and harmonies, tailored to your preferences. Say goodbye to creative blocks, and say hello to a new era of music creation with SoundSpirit.

Dataset

ComMU has 11,144 MIDI samples that consist of short note sequences created by professional composers with their corresponding 12 metadata. They consist of short note sequences(4,8,16 bar), and are organized into 12 different metadata. they are as follows: BPM, Genre, Key, Track-instrument, Track-role, Time signature, Pitch range, Number of Measures, Chord progression, Min Velocity, Max Velocity, Rhythm.

Data Processing

  1. The dataset is read and the midi files are converted into a sequence of integers representing musical notes and durations.
  2. The sequences are then divided into input output pairs where the input is a sequence of notes and the output is the next note in the sequence.
  3. The input-output pairs are split into smaller segments (windows) of fixed size. These windows are then used to create training examples by using the elements of each window as input and the following element as output. This allows the model to learn the relationship between the input and output elements and predict the output, given a new input.
  4. The training examples are then split into batches and shuffled before feeding them into the model for training.
  5. During inference, the model generates new sequences of notes by iteratively predicting the next note based on the current sequence of notes.

Functionalities

  • The ability to create original musical compositions, including melodies, harmonies and rhythms
  • The application will be able to generate musical variations or improvisations based on the user's given theme or motiff
  • User will be able to interact with the application in real-time such as providing input or making adjustments during the music generation process
  • User will be able to save the generated music

Setup

  • Clone this repository
  • Install required packages

pip install -r requirements.txt

Instructions to Run

  • Download the file mentioned below and place it in the 'REMI-tempo-chord-checkpoint' folder inside the 'files' folder -

    Model.data

  • After downloading the required files and installing the necessary packages, run the Flask server

python files/app.py

rhythm-generator's People

Contributors

zayed-haque avatar saisatya16 avatar trisha-thakur avatar sahitihas 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.