Skip to content

Shruti142151/CodeAlpha-AI-Music-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI Music Generator

Overview

This project is an AI-based Music Generator developed using Python, TensorFlow, Keras, and Music21. It learns musical patterns from MIDI files and generates new melodies using a trained neural network.

Features

  • Reads MIDI files for training
  • Uses an LSTM neural network for sequence learning
  • Generates new musical note sequences
  • Saves the generated music as a MIDI file
  • Beginner-friendly implementation

Technologies Used

  • Python
  • TensorFlow
  • Keras
  • Music21
  • NumPy

Project Structure

  • "music_generator.py" – Main application
  • "dataset/" – Training MIDI files
  • "generated_music.mid" – Generated music output
  • "music_model.h5" – Trained model

How to Run

  1. Install the required libraries.
  2. Place MIDI files inside the "dataset" folder.
  3. Run: python music_generator.py
  4. The generated music will be saved as "generated_music.mid".

Future Improvements

  • Train on larger datasets
  • Generate longer compositions
  • Add multiple music styles
  • Build a graphical user interface

About

An AI-based Music Generator built using Python, TensorFlow, Keras, and Music21 that learns musical patterns from MIDI files and generates new melodies.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages