Name | lrc-adjuster JSON |
Version |
0.1.2
JSON |
| download |
home_page | |
Summary | Simple CLI tool to adjust timestamps in LRC files. |
upload_time | 2023-07-08 22:01:19 |
maintainer | |
docs_url | None |
author | Andrew Beveridge |
requires_python | >=3.6,<4.0 |
license | MIT |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# LRC Lyrics Timestamp Adjuster 🎶
Simple Python package to adjust the timestamps in a MidiCo-variant synchronised lyrics LRC file
[![PyPI version](https://badge.fury.io/py/lrc-adjuster.svg)](https://badge.fury.io/py/lrc-adjuster)
## Installation
You can install `lrc-adjuster` using `pip` or [Poetry](https://python-poetry.org/).
Using pip:
```shell
pip install lrc-adjuster
```
Using Poetry:
```shell
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.
```shell
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:
```shell
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:
```less
[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:
```shell
lrc-adjuster input.lrc 3.5
```
will produce an adjusted LRC file:
```less
[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!
Raw data
{
"_id": null,
"home_page": "",
"name": "lrc-adjuster",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.6,<4.0",
"maintainer_email": "",
"keywords": "",
"author": "Andrew Beveridge",
"author_email": "andrew@beveridge.uk",
"download_url": "https://files.pythonhosted.org/packages/34/d2/11e8c2ef97145af31b9fa85606fb4f2f0ff49603365f53e4ac6e5d03fe85/lrc_adjuster-0.1.2.tar.gz",
"platform": null,
"description": "# LRC Lyrics Timestamp Adjuster \ud83c\udfb6\nSimple Python package to adjust the timestamps in a MidiCo-variant synchronised lyrics LRC file\n\n[![PyPI version](https://badge.fury.io/py/lrc-adjuster.svg)](https://badge.fury.io/py/lrc-adjuster)\n\n## Installation\n\nYou can install `lrc-adjuster` using `pip` or [Poetry](https://python-poetry.org/).\n\nUsing pip:\n\n```shell\npip install lrc-adjuster\n```\n\nUsing Poetry:\n\n```shell\npoetry add lrc-adjuster\n```\n\n## Usage\n\nThe 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.\n\n```shell\nlrc-adjuster <input_file> <offset>\n\n <input_file>: Path to the input LRC file.\n <offset>: The time offset to apply to each timestamp in seconds. It can be a positive or negative floating-point number.\n```\n\nFor example, to adjust the timestamps in the file input.lrc by an offset of -5.2 seconds:\n\n```shell\nlrc-adjuster input.lrc -5.2\n```\n\nThe adjusted LRC file will be saved with the suffix -adjusted and the offset value before the file extension.\n\n## Example\n\nHere's an example of an LRC file:\n\n```less\n[re:MidiCo]\n[00:10.862]1:/This\n[00:11.080]1:is\n[00:11.240]1:a\n[00:11.400]1:man's\n[00:12.080]1:world\n...\n```\n\nRunning the command:\n\n```shell\nlrc-adjuster input.lrc 3.5\n```\n\nwill produce an adjusted LRC file:\n\n```less\n[re:MidiCo]\n[00:14.362]1:/This\n[00:14.580]1:is\n[00:14.740]1:a\n[00:14.900]1:man's\n[00:15.580]1:world\n...\n```\n\n## Contributing\n\nContributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or a pull request on the GitHub repository.\n\n## License\n\nThis project is licensed under the MIT License. Do with it what you will!\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Simple CLI tool to adjust timestamps in LRC files.",
"version": "0.1.2",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "a4653997e851ed33806cdaaf878dcba8e01ee76466eec4401a75241ee02da4ef",
"md5": "cc63c778eb2727d124c43e46fcb78dc9",
"sha256": "21fc587aa089ccf863798d3a73cc691f8bb060f14bfda671ef12efa1167bde84"
},
"downloads": -1,
"filename": "lrc_adjuster-0.1.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "cc63c778eb2727d124c43e46fcb78dc9",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6,<4.0",
"size": 3715,
"upload_time": "2023-07-08T22:01:18",
"upload_time_iso_8601": "2023-07-08T22:01:18.311022Z",
"url": "https://files.pythonhosted.org/packages/a4/65/3997e851ed33806cdaaf878dcba8e01ee76466eec4401a75241ee02da4ef/lrc_adjuster-0.1.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "34d211e8c2ef97145af31b9fa85606fb4f2f0ff49603365f53e4ac6e5d03fe85",
"md5": "78b6b1eedd631ef59ead01be6e1a341b",
"sha256": "6306c7f40c7852900e39583bfa5a84cb35e53aee37b42ee8fa60f7e031b933fe"
},
"downloads": -1,
"filename": "lrc_adjuster-0.1.2.tar.gz",
"has_sig": false,
"md5_digest": "78b6b1eedd631ef59ead01be6e1a341b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6,<4.0",
"size": 2757,
"upload_time": "2023-07-08T22:01:19",
"upload_time_iso_8601": "2023-07-08T22:01:19.979019Z",
"url": "https://files.pythonhosted.org/packages/34/d2/11e8c2ef97145af31b9fa85606fb4f2f0ff49603365f53e4ac6e5d03fe85/lrc_adjuster-0.1.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-07-08 22:01:19",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "lrc-adjuster"
}