High-quality integration for https://supermaker.ai/music/ai-make-music/
Project description
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/
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ai_make_music-1767667.326.381.tar.gz.
File metadata
- Download URL: ai_make_music-1767667.326.381.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b7da759e31ef196f451e813dccc70a018f9d3349bb67f13efc3560165b5ed94b
|
|
| MD5 |
f4d74301085d3a33792ff25817cff7f6
|
|
| BLAKE2b-256 |
2b8425f1cd2fb80ccb782cbbee2249894adc2a3eb8ede5bbbd9408eaa1a27192
|
File details
Details for the file ai_make_music-1767667.326.381-py3-none-any.whl.
File metadata
- Download URL: ai_make_music-1767667.326.381-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df9f9e863bec1bdecf3a31d2954f6b03feca834bde9df0ea374918b2f9fbcd3e
|
|
| MD5 |
e06c338bdf4660f397ac0100f59eeea8
|
|
| BLAKE2b-256 |
35730a04efcf1e231ae73cea7836b28edb94fd9a92eb2f609249e6f6d5a471f4
|