Skip to main content

Process song lyrics to prepare them for karaoke video production, e.g. by splitting long lines

Project description

Karaoke Lyrics Processor 🎶 ✍️

Karaoke Lyrics Processor is a tool to prepare song lyrics for karaoke video production.

It processes lyrics by splitting long lines, handling parentheses, and ensuring that each line fits within a specified maximum length. This tool is especially useful for creating karaoke tracks where timing and line length are crucial for readability.

Features

  • Line Splitting: Automatically splits long lines of lyrics to ensure they fit within a specified maximum length, making them more readable and suitable for karaoke display.
  • Intelligent Splitting: Finds the best split points in lines, considering punctuation and logical breaks in the lyrics.
  • Parentheses Handling: Processes lines containing parentheses appropriately, ensuring that the lyrical flow is maintained.
  • Clipboard Support: Copies the processed lyrics to the clipboard for easy pasting into video production software or other applications.
  • Debug Mode: Offers a debug mode for detailed logging, helping with troubleshooting and fine-tuning the processing.

Installation

To install the Karaoke Lyrics Processor, ensure you have Python 3.9 or newer in your environment.

This package is available on PyPI and can be installed using pip. Run the following command in your terminal:

pip install karaoke-lyrics-processor

Usage (CLI)

To process a file containing song lyrics, use the following command:

karaoke-lyrics-processor <path_to_lyrics_file>

By default, this will create a new file in your current directory with (Lyrics Processed) in the filename containing the processed lyrics.

Command line options

usage: karaoke-lyrics-processor [-h] [-v] [-d] [-o OUTPUT] [-l LINE_LENGTH] filename

Process song lyrics to prepare them for karaoke video production, e.g. by splitting long lines

positional arguments:
  filename                                   The path to the file containing the song lyrics to process.

options:
  -h, --help                                 show this help message and exit
  -v, --version                              show program's version number and exit
  -d, --debug                                Enable debug mode, setting log level to DEBUG.
  -o OUTPUT, --output OUTPUT                 Optional: Specify the output filename for the processed lyrics.
  -l LINE_LENGTH, --line_length LINE_LENGTH  Optional: Specify the maximum line length for the processed lyrics. Default is 36.

Contributing 🤝

Contributions are very much welcome! Please fork the repository and submit a pull request with your changes, and I'll try to review, merge and publish promptly!

  • This project is 100% open-source and free for anyone to use and modify as they wish.
  • If the maintenance workload for this repo somehow becomes too much for me I'll ask for volunteers to share maintainership of the repo, though I don't think that is very likely

License 📄

This project is licensed under the MIT License.

Contact 💌

For questions or feedback, please raise an issue or reach out to @beveradb (Andrew Beveridge) directly.

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

karaoke_lyrics_processor-0.1.1.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

karaoke_lyrics_processor-0.1.1-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file karaoke_lyrics_processor-0.1.1.tar.gz.

File metadata

  • Download URL: karaoke_lyrics_processor-0.1.1.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.13

File hashes

Hashes for karaoke_lyrics_processor-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d81963c6e22c06b45fb83b002cdb4c1af7f1eb0ddfc07f119a3ff5af65024851
MD5 0694a6cb4f7937bf1c70490a4e3b9e9e
BLAKE2b-256 4c77f798856b50ac76c8fbbdae765df97a2bee06732f86b27bab436bf5292c90

See more details on using hashes here.

File details

Details for the file karaoke_lyrics_processor-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for karaoke_lyrics_processor-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cdade94c3f0ff65727ed2c5624b87b66ce3c9ae35d64a865753e22e37844eced
MD5 8f2380be8aedd3aef14b5f54ce45a3eb
BLAKE2b-256 946e3dd3bb33d8a730b5e7bc68dee9293dd6f084d6984168a988483aa061c596

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page