A Python package for generating music with deep learning CNN LTSM model.
Project description
musicgeneration is a Python package designed for generating music using deep learning models. It provides tools to create, manipulate, and export musical compositions with ease, catering to musicians, researchers, and developers alike.
Features
🎼 Music Generation: Generate music from scratch or based on given styles.
🎛️ Model Integration: Compatible with various pre-trained music models.
🎹 MIDI Support: Import and export music in MIDI format.
🧠 AI-Powered: Leverages cutting-edge models like Transformer and LSTM.
⚙️ User-Friendly API: Simple API for quick and flexible music generation.
Installation
Install the package via pip:
pip install musicgeneration
Quick Start
Here’s an example of how you can generate music with just a few lines of code:
from musicgeneration import MusicGenerator
# Initialize generator
generator = MusicGenerator(model='transformer')
# Generate a 30-second classical music piece
music = generator.generate(duration=30, style='classical')
# Save the composition as a MIDI file
music.save('generated_music.mid')
Applications
Music composition and prototyping
AI-generated background music
Educational tools for music theory
Research in computational creativity
License
Licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file musicgeneration-0.12.tar.gz
.
File metadata
- Download URL: musicgeneration-0.12.tar.gz
- Upload date:
- Size: 82.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
29e01d3c008da3fa00b622a47022f199f84ef0a3701fade43b16c5bba63779f4
|
|
MD5 |
8971d8ac8d778a690f5fc15c949f2f2f
|
|
BLAKE2b-256 |
87d35ba4211ff0458dedc6395ce99f90cacbc4a3769a321c120ae4853a93c4b4
|
File details
Details for the file musicgeneration-0.12-py3-none-any.whl
.
File metadata
- Download URL: musicgeneration-0.12-py3-none-any.whl
- Upload date:
- Size: 85.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
43a04276b94de2c7508145b0ec7ec6cb050263d2e3927f682e7a185e59a2f9f0
|
|
MD5 |
1835d7c68cd20e59c58fb3841b9eec82
|
|
BLAKE2b-256 |
2f3f6179e947c68f721ddbf04abcb1e6f08aea2829c2a99f131c45ae280013e7
|