Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Music generation #751

Merged
merged 7 commits into from
Jun 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Music Generation using LSTM/Music_Generation.ipynb

Large diffs are not rendered by default.

78 changes: 78 additions & 0 deletions Music Generation using LSTM/READme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# Music Generation
Welcome to the Music Generation! This project uses Long Short-Term Memory (LSTM) neural networks to generate music. LSTMs are a type of recurrent neural network (RNN) that are well-suited to sequence prediction problems, making them ideal for generating music.

- [Music Generation](#music-generation)
- [Introduction](#introduction)
- [Installation](#installation)
- [Usage](#usage)
- [Preprocessing Data](#preprocessing-data)
- [Training the Model](#training-the-model)
- [Generating Music](#generating-music)
- [Training the Model](#training-the-model-1)
- [Generating Music](#generating-music-1)
- [Some Examples](#some-examples)
- [Real Sample 1](#real-sample-1)
- [Generated Sample 1](#generated-sample-1)
- [Real Sample 2](#real-sample-2)
- [Generated Sample 2](#generated-sample-2)
- [Contributing](#contributing)
- [License](#license)


## Introduction
This project aims to create a music generation model. By training the model on a dataset of MIDI files, the LSTM can learn to generate new music sequences that mimic the style of the training data.

## Installation
To set up the project:

* Clone the repository: Download the project files from GitHub.
* Create a virtual environment: Isolate the project's dependencies.
* Install dependencies: Install the required Python libraries.
## Usage
### Preprocessing Data

### Training the Model

### Generating Music

## Training the Model
The script loads the preprocessed data, defines the LSTM model architecture, and trains the model. The trained model is saved.

## Generating Music
The generate_music.py script uses the trained LSTM model to generate new music sequences. The output can be saved as MIDI files for further use.

## Some Examples
### Real Sample 1



https://github.com/Soubeer/ML-CaPsule/assets/112920816/f68199cd-fa66-4e68-adf0-212005090a1e


### Generated Sample 1

https://github.com/Soubeer/ML-CaPsule/assets/112920816/61f6ecba-f55a-4fd6-9126-5f9994ec7307


### Real Sample 2

https://github.com/Soubeer/ML-CaPsule/assets/112920816/386da0ce-2568-49b7-8692-7ce5b53df7fe


### Generated Sample 2

https://github.com/Soubeer/ML-CaPsule/assets/112920816/e1c94cd4-31c5-462d-aa22-c3872e3112a3


## Contributing
Contributions are welcome! If you have suggestions for improvements or new features, feel free to open an issue or submit a pull request. Here's how you can contribute:

* Fork the repository.
* Create a new branch (git checkout -b feature-branch).
* Make your changes.
* Commit your changes (git commit -am 'Add new feature').
* Push to the branch (git push origin feature-branch).
* Open a pull request.
## License
This project is licensed under the MIT License.

Loading