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.4.tar.gz
.
File metadata
- Download URL: pytunesmith-0.1.4.tar.gz
- Upload date:
- Size: 4.5 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 | 2c2512b1cda549c1cfc34d9a614f927d8d7b50f0ec83e424a9f9978b5bdf889f |
|
MD5 | 079fc1c692270644ece741dc49f8c446 |
|
BLAKE2b-256 | 93976c40aa8f5bc57bfd3d2ce9070a846659408a575fbd293c94ce5b5190478d |
File details
Details for the file pytunesmith-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: pytunesmith-0.1.4-py3-none-any.whl
- Upload date:
- Size: 5.9 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 | 12adab80b36f308b6467dcc6720813fb331f84c989affa5aafb382002d4b7994 |
|
MD5 | 94ea4fea07de76e4830f7eb61398629f |
|
BLAKE2b-256 | 87f1bba5774d9cc43b61cc720fe42026e4af2f612465b3e2caf582d9f9ddd5ec |