Skip to main content

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.

Release files for musicgeneration 0.12

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for musicgeneration 0.12
File Size Uploaded
musicgeneration-0.12.tar.gz 82.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for musicgeneration 0.12
File Interpreter ABI Platform
musicgeneration-0.12-py3-none-any.whl Python 3 none any Details

Total release size: 168.0 kB

Release files / musicgeneration-0.12.tar.gz

Download URL musicgeneration-0.12.tar.gz
Size 82.5 kB
Tags Source
SHA-256 checksum
How to use checksums
29e01d3c008da3fa00b622a47022f199f84ef0a3701fade43b16c5bba63779f4
BLAKE2b-256 checksum
How to use checksums
87d35ba4211ff0458dedc6395ce99f90cacbc4a3769a321c120ae4853a93c4b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.5

Release files / musicgeneration-0.12-py3-none-any.whl

Download URL musicgeneration-0.12-py3-none-any.whl
Size 85.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
43a04276b94de2c7508145b0ec7ec6cb050263d2e3927f682e7a185e59a2f9f0
BLAKE2b-256 checksum
How to use checksums
2f3f6179e947c68f721ddbf04abcb1e6f08aea2829c2a99f131c45ae280013e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.5

Release history Release notifications | RSS feed

This release

0.12 This release

2 release files

0.10.3

1 release file

0.10.2

1 release file

0.10.1

1 release file

0.10.0

1 release file

0.0.9

1 release file

0.0.8

1 release file

0.0.7

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page