Giter Site home page Giter Site logo

junos16 / autoimprov Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 4.64 MB

Jazz solo improv AI

Jupyter Notebook 100.00%
deep-learning generative-ai keras lstm machine-learning musecore music-generation music-notation music21 neural-network one-hot-encoding rnn tensorflow

autoimprov's Introduction

AutoImprov

An LSTM-RNN model trained on sheet music transcriptions that generates jazz solos over chord changes.

This is my first attempt at training an LSTM model that would improvise a jazz solo over a given chord progression. My model converts the notes and chords in the training data into discrete categories and predicts the notes that would be suitable to be played over the chords provided as input (this would include rests and the quarter-note durations of the rests and notes). An empty lead sheet (containing the chords) is passed as an input alongside a seed containing the first few notes of the solo.

I used transcriptions of Charlie Parker's Omnibook to train my model. The .xml transcriptions were available on: [http://repmus.ircam.fr/dyci2/ressources]

Output: Image Temperature = 0.3 Chord = Yardbird Suite

The main limitation of this naive approach is that only the chords present in the dataset can be used as input. Also the model does not comprehend the relation between the chords and the notes being played over it.

Libraries Used:

  • Music21: I used music21 to parse .musicxml files and work with chords, notes and rests and their respective durations
  • Numpy: While sampling with temperature I used numpy to use mathematical functions like logarithm, exponentiation and random choice
  • Tensorflow/Keras: I used keras to preprocess data using one-hot encoding, train the LSTM model and generate solos using that model

autoimprov's People

Contributors

junos16 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.