LRC Lyrics Timestamp Adjuster 🎶
Simple Python package to adjust the timestamps in a MidiCo-variant synchronised lyrics LRC file
Installation
You can install lrc-adjuster using pip or Poetry.
Using pip:
pip install lrc-adjuster
Using Poetry:
poetry add lrc-adjuster
Usage
The package provides a command-line interface (CLI) tool called lrc-adjuster that allows you to adjust the timestamps in an LRC file by a specified offset.
lrc-adjuster <input_file> <offset>
<input_file>: Path to the input LRC file.
<offset>: The time offset to apply to each timestamp in seconds. It can be a positive or negative floating-point number.
For example, to adjust the timestamps in the file input.lrc by an offset of -5.2 seconds:
lrc-adjuster input.lrc -5.2
The adjusted LRC file will be saved with the suffix -adjusted and the offset value before the file extension.
Example
Here's an example of an LRC file:
[re:MidiCo]
[00:10.862]1:/This
[00:11.080]1:is
[00:11.240]1:a
[00:11.400]1:man's
[00:12.080]1:world
...
Running the command:
lrc-adjuster input.lrc 3.5
will produce an adjusted LRC file:
[re:MidiCo]
[00:14.362]1:/This
[00:14.580]1:is
[00:14.740]1:a
[00:14.900]1:man's
[00:15.580]1:world
...
Contributing
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or a pull request on the GitHub repository.
License
This project is licensed under the MIT License. Do with it what you will!
Metadata
Release files for lrc-adjuster 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| lrc_adjuster-0.1.2.tar.gz | 2.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lrc_adjuster-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.5 kB
Release files / lrc_adjuster-0.1.2.tar.gz
| Download URL | lrc_adjuster-0.1.2.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6306c7f40c7852900e39583bfa5a84cb35e53aee37b42ee8fa60f7e031b933fe
|
|
BLAKE2b-256 checksum How to use checksums |
34d211e8c2ef97145af31b9fa85606fb4f2f0ff49603365f53e4ac6e5d03fe85
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Release files / lrc_adjuster-0.1.2-py3-none-any.whl
| Download URL | lrc_adjuster-0.1.2-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
21fc587aa089ccf863798d3a73cc691f8bb060f14bfda671ef12efa1167bde84
|
|
BLAKE2b-256 checksum How to use checksums |
a4653997e851ed33806cdaaf878dcba8e01ee76466eec4401a75241ee02da4ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|