PyTuneSmith: A Python library for creating and manipulating music.
Project description
PyTuneSmith
PyTuneSmith is a Python library designed for creating and manipulating music. It provides tools for generating musical compositions, applying audio effects, and synthesizing audio from musical scores.
Features
- Musical Composition: Create musical compositions with ease, defining melodies, harmonies, and rhythms programmatically.
- Audio Effects: Apply various audio effects to your compositions, such as convolution and gain adjustments, to enhance the sound.
- Lyrics Synthesis: Integrate lyrics into your compositions with adjustable playback speeds and apply effects to the vocal tracks.
- MIDI Synthesis: Convert your compositions into MIDI format for further processing or playback using external synthesizers.
Installation
PyTuneSmith can be installed using Poetry:
poetry add pytunesmith
Usage Here's a simple example of how to create a song with PyTuneSmith:
import pytunesmith
# Define the song structure
song = pytunesmith.Song(tempo=120)
# Add a piano track
piano_track = pytunesmith.InstrumentTrack(
name="Acoustic Grand Piano",
melody=[('C4', 0, 1), ('E4', 1, 2), ('G4', 2, 3)]
)
song.add_instrument_track(piano_track)
# Add lyrics
lyrics_track = pytunesmith.LyricsTrack(
lyrics=[("Hello", 1), ("world", 2)]
)
song.set_lyrics_track(lyrics_track)
# Export the song to a WAV file
song.export("hello_world_song.wav")
Collaboration with an LLM
PyTuneSmith is not just a library; it's a testament to the power of collaboration between humans and AI. A significant portion of this project was authored and constructed with the help of a Large Language Model (LLM), with guidance and direction provided by a human developer. This unique collaboration has allowed for the rapid development and refinement of the library, showcasing the potential of AI-assisted programming.
Contributing
Contributions to PyTuneSmith are welcome! If you have ideas for new features, improvements, or bug fixes, feel free to open an issue or submit a pull request.
License
PyTuneSmith is released under the MIT License. See the LICENSE file for more details.
Project details
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 pytunesmith-0.1.3.tar.gz
.
File metadata
- Download URL: pytunesmith-0.1.3.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.12.2 Darwin/23.2.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a39ecc76703a639b9f18e7134e3007bbd1f0de89d116a105ea563cc2a497ffb9 |
|
MD5 | 0e2014424b903378619afae662140808 |
|
BLAKE2b-256 | 7a4b99a92ee6e4da5832bac91af68531dd05cdb2cc7862977474cdb68690530c |
File details
Details for the file pytunesmith-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: pytunesmith-0.1.3-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.12.2 Darwin/23.2.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1b518563094b0888c379c4b73383f6b3a373b39bb643b5014eb681f5cd4dd67 |
|
MD5 | f66130c147c5bc17c7458ccbfa432fb7 |
|
BLAKE2b-256 | 3f9a4267a7ba2ed68372415b03fa3641eb36ec25d31da84872c750b6a987e069 |