ai-make-music
ai-make-music is a Python library designed to provide a streamlined interface for interacting with the ai-make-music platform and exploring its automated music generation capabilities. This package offers a simplified way to generate music snippets and experiment with different musical styles directly from your Python environment.
Installation
To install the ai-make-music package, use pip:
bash
pip install ai-make-music
Basic Usage
Here are a few examples demonstrating how to use the ai-make-music library:
1. Generating a short melody: python from ai_make_music import generate_melody
melody = generate_melody(style="classical", length=30) # Length in seconds print(melody) # Returns a path to the generated audio file.
This example generates a 30-second classical melody and returns the file path of the generated audio.
2. Creating a drum beat: python from ai_make_music import generate_drum_beat
drum_beat = generate_drum_beat(tempo=120, style="rock") print(drum_beat) # Returns a path to the generated audio file.
This snippet generates a rock-style drum beat at 120 beats per minute and provides the path to the resulting audio file.
3. Harmonizing a given melody (requires a MIDI file): python from ai_make_music import harmonize_melody
input_midi_file = "my_melody.mid" # Replace with your MIDI file path harmonized_melody = harmonize_melody(input_midi_file, harmony_type="major") print(harmonized_melody) # Returns a path to the harmonized audio file.
This example takes a MIDI file as input and generates a harmonized version in a major key, returning the path to the new audio file. Ensure 'my_melody.mid' exists in the same directory or provide the full path.
4. Generating background music for a specific mood: python from ai_make_music import generate_background_music
background_music = generate_background_music(mood="upbeat", duration=60) # Duration in seconds print(background_music) # Returns a path to the generated audio file.
This generates a 60-second upbeat background music track and returns the file path.
5. Generating a loopable music piece: python from ai_make_music import generate_loop
loop = generate_loop(style="electronic", bpm=128, length=16) # Length in measures print(loop)
This creates an electronic music loop at 128 bpm, lasting 16 measures.
Features
- Melody Generation: Generate melodies in various styles (classical, pop, jazz, etc.).
- Drum Beat Creation: Create drum beats with customizable tempo and style (rock, hip-hop, electronic, etc.).
- Melody Harmonization: Harmonize existing melodies provided as MIDI files.
- Background Music Generation: Generate background music tailored to specific moods (happy, sad, energetic, etc.).
- Loop Generation: Create loopable music pieces suitable for various applications.
- Simple API: Easy-to-use functions for quick experimentation.
- Style Customization: Fine-tune the generated music with style parameters.
License
This project is licensed under the MIT License - see the LICENSE file for details.
This project is a gateway to the ai-make-music ecosystem. For advanced features and full capabilities, please visit: https://supermaker.ai/music/ai-make-music/
Metadata
Release files for ai-make-music 1767667.326.381
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ai_make_music-1767667.326.381.tar.gz | 4.1 kB | Without provenance | Details for ai_make_music-1767667.326.381.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ai_make_music-1767667.326.381-py3-none-any.whl | Python 3 | none | any | Details for ai_make_music-1767667.326.381-py3-none-any.whl |
Total release size: 8.6 kB
Release files / ai_make_music-1767667.326.381.tar.gz
| Download URL | ai_make_music-1767667.326.381.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b7da759e31ef196f451e813dccc70a018f9d3349bb67f13efc3560165b5ed94b
|
|
BLAKE2b-256 checksum How to use checksums |
2b8425f1cd2fb80ccb782cbbee2249894adc2a3eb8ede5bbbd9408eaa1a27192
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Release files / ai_make_music-1767667.326.381-py3-none-any.whl
| Download URL | ai_make_music-1767667.326.381-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
df9f9e863bec1bdecf3a31d2954f6b03feca834bde9df0ea374918b2f9fbcd3e
|
|
BLAKE2b-256 checksum How to use checksums |
35730a04efcf1e231ae73cea7836b28edb94fd9a92eb2f609249e6f6d5a471f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Security for ai-make-music 1767667.326.381
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.