karaokemanager


Namekaraokemanager JSON
Version 1.0.8 PyPI version JSON
download
home_pagehttps://github.com/peeveen/karaokemanager
SummaryKaraoke session management utility
upload_time2024-07-07 18:21:06
maintainerNone
docs_urlNone
authorSteven Frew
requires_pythonNone
licenseMIT
keywords karaokemanager karaoke
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Karaoke Manager

Command-line karaoke session management utility.

![KaraokeManager1](/media/karaokeManagerScreenshot1.png?raw=true)

![KaraokeManager2](/media/karaokeManagerScreenshot2.png?raw=true)

- Maintains a list of singers and their selected songs, key changes, etc.
- Easily add/delete/move singers and songs with short, simple commands. No mouse required.
- Fast undo & redo functionality for fat finger syndrome.
- Singers can maintain their position in the queue, even if they currently have no songs cued up.
- Heavy OCD rating.
  - Enforces correctly formatted karaoke and music filenames.
  - Can analyze your library for duplicates, bad capitalization, similar-looking titles, missing "The" prefixes, etc (lists of analysis exemptions can be created).
- Writes the current list of singers to a file that you can display on-screen using software of your choice (for example, [Rainmeter](https://github.com/rainmeter/rainmeter)).
- Also has functionality and commands relating to cueing-up background music.
- Has been used in real life!

# Installation

Just run `pip install karaokemanager`.

# To run it

- First, install a driver! (see below)
- Copy the [YAML template](.template.yaml) to `.yaml`, and modify it with your own settings.
- Then just run `karaokemanager` or `py -m karaokemanager`
- Type `help` or `h` at the command line to get a list of available commands.

If you hate the config filename, rename it, and provide it as an argument to the program, e.g. `py -m karaokemanager renamed_file.yml`

# Drivers

This utility was created so that it could work with any karaoke player. For it to "drive" the player, you need to provide it with a driver.

Currently, one driver exists, for Winamp, the 90s music player for Windows. There are currently no drivers for any Linux apps, and if you know
of a useable Linux karaoke app, I'm all ears.

Anyway, if you want to use the Winamp driver, you should install it first with `pip install karaokemanagerwinampdriver`.

- [PyPI link](https://pypi.org/project/karaokemanagerwinampdriver/)
- [GitHub link](https://github.com/peeveen/karaokemanagerwinampdriver)

If you want to create a driver for your favourite karaoke player, create a Python class that exposes two methods:

```
def __init__(self, config)
def play_karaoke_file(self, karaoke_file, key_change, errors)
```

- `config` is the [pyyaml](https://github.com/yaml/pyyaml) object that represents the driver-specific section from the YAML config file.
- `karaoke_file` is the path to the file that should be played
- `key_change `is a numeric value (from -5 to +5) that tells you how many semitones the pitch of the track should be shifted.
- `errors` is a list to which you should append any error messages that KaraokeManager will display to the user.
- The constructor should raise an exception if there is a problem.

Create a package containing this code, install it, and then set the driver->class value in the YAML config file to point to your class.

# Output files

On startup, and during runtime, Karaoke Manager will create a number of text files in your configured `tempDataPath`, many of which are intended to be of some use if you are skilled with scripting or configuring third-party software to do your bidding. If that's you, then some of the files which might be of interest are:

- `KaraokeManager.singers.txt` contains the names from the current queue of singers (one per line). If a singer has no songs cued up, their name is prefixed with a tab.
- `KaraokeManager.backgroundMusic.txt` is a file containing full paths of background music files (one per line). This is generated on startup by cross-referencing the contents of the `backgroundMusicPlaylistFilename` (as specified in your configuration) with the music files that are found in the `paths` that you have specified in the `music` section of the config. You may find this file useful as a playlist for a media player that you can fade in between singers.
- `KaraokeManager.musicRequests.txt` contains paths (one per line) of songs that you have selected with the `cue` command. You could write a script to monitor this file and deal with the request queue as you see fit.
- `KaraokeManager.songSuggestion.txt` is written to every ten seconds with the artist & title of a random track from your karaoke library. I use this to show a 'Why not try ...?' rolling display along the bottom edge of the karaoke screen.

# Scanning

On startup, Karaoke Manager will scan your karaoke and music paths for files. If it finds files that it doesn't like the look of, it'll let you know, and it will also write various reports to files in `dataPath` for you to examine at your leisure.

You can also ask Karaoke Manager to perform a deeper analysis of your files with the `scan` command. This command will analyse your files, looking for duplicates, bad casing, inconsistencies, etc. The `scan,quick` command will perform this basic checking, but `scan,all` will go a bit further and report similar-looking titles as potential duplicates.

The various parts of the scan can be enabled/disabled in the `scan` section in the YAML configuration file.

To prevent false positives being reported, you can create lists of exemptions (one per line) in text files in `dataPath`:

- The scan will look for duet "reversals", meaning that if you have files by "Chas & Dave", but also some by "Dave & Chas", it'll flag them up. `ReversalExemptions.txt` can contain a list of those that are valid, with the two halves of the pair separated by a tab. Note that, currently, only an ampersand separator is considered.
- If the scan finds a file by an artist called, for example "Greatest Band Ever", and also a file by an artist called "_The_ Greatest Band Ever", it will flag that up. `TheExemptions.txt` can prevent this by listing either of those values.
- The scan will nag you about artists or titles containing words that are not capitalized. `CapitalizedExemptions.txt` can list those are valid (e.g. 'kd lang')
- The `all` scan will nag you about artists or titles that look very similar (though only by comparing artist with artists, and titles with titles). `SimilarityExemptions.txt` can list those that should not be considered. Put both values on the same line, separated by a tab.
- The scan will nag you about artists that are identical apart from case (e.g. "Paul McCartney" and "Paul Mccartney"), but exemptions are not currently supported for this part of the scan.

# Like It?

If you like this, and/or use it commercially, please consider throwing some coins my way via PayPal, at steven.fullhouse@gmail.com, or [buy me a coffee](https://www.buymeacoffee.com/peeveen).

# TODO

- More customization.
- More code comments.


# v1.0

First release

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/peeveen/karaokemanager",
    "name": "karaokemanager",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "karaokemanager, karaoke",
    "author": "Steven Frew",
    "author_email": "steven.fullhouse@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/d0/42/3275729462b53c583a54660ddaf46e9e135924f3f3d2458fd16b983d0c45/karaokemanager-1.0.8.tar.gz",
    "platform": null,
    "description": "# Karaoke Manager\r\n\r\nCommand-line karaoke session management utility.\r\n\r\n![KaraokeManager1](/media/karaokeManagerScreenshot1.png?raw=true)\r\n\r\n![KaraokeManager2](/media/karaokeManagerScreenshot2.png?raw=true)\r\n\r\n- Maintains a list of singers and their selected songs, key changes, etc.\r\n- Easily add/delete/move singers and songs with short, simple commands. No mouse required.\r\n- Fast undo & redo functionality for fat finger syndrome.\r\n- Singers can maintain their position in the queue, even if they currently have no songs cued up.\r\n- Heavy OCD rating.\r\n  - Enforces correctly formatted karaoke and music filenames.\r\n  - Can analyze your library for duplicates, bad capitalization, similar-looking titles, missing \"The\" prefixes, etc (lists of analysis exemptions can be created).\r\n- Writes the current list of singers to a file that you can display on-screen using software of your choice (for example, [Rainmeter](https://github.com/rainmeter/rainmeter)).\r\n- Also has functionality and commands relating to cueing-up background music.\r\n- Has been used in real life!\r\n\r\n# Installation\r\n\r\nJust run `pip install karaokemanager`.\r\n\r\n# To run it\r\n\r\n- First, install a driver! (see below)\r\n- Copy the [YAML template](.template.yaml) to `.yaml`, and modify it with your own settings.\r\n- Then just run `karaokemanager` or `py -m karaokemanager`\r\n- Type `help` or `h` at the command line to get a list of available commands.\r\n\r\nIf you hate the config filename, rename it, and provide it as an argument to the program, e.g. `py -m karaokemanager renamed_file.yml`\r\n\r\n# Drivers\r\n\r\nThis utility was created so that it could work with any karaoke player. For it to \"drive\" the player, you need to provide it with a driver.\r\n\r\nCurrently, one driver exists, for Winamp, the 90s music player for Windows. There are currently no drivers for any Linux apps, and if you know\r\nof a useable Linux karaoke app, I'm all ears.\r\n\r\nAnyway, if you want to use the Winamp driver, you should install it first with `pip install karaokemanagerwinampdriver`.\r\n\r\n- [PyPI link](https://pypi.org/project/karaokemanagerwinampdriver/)\r\n- [GitHub link](https://github.com/peeveen/karaokemanagerwinampdriver)\r\n\r\nIf you want to create a driver for your favourite karaoke player, create a Python class that exposes two methods:\r\n\r\n```\r\ndef __init__(self, config)\r\ndef play_karaoke_file(self, karaoke_file, key_change, errors)\r\n```\r\n\r\n- `config` is the [pyyaml](https://github.com/yaml/pyyaml) object that represents the driver-specific section from the YAML config file.\r\n- `karaoke_file` is the path to the file that should be played\r\n- `key_change `is a numeric value (from -5 to +5) that tells you how many semitones the pitch of the track should be shifted.\r\n- `errors` is a list to which you should append any error messages that KaraokeManager will display to the user.\r\n- The constructor should raise an exception if there is a problem.\r\n\r\nCreate a package containing this code, install it, and then set the driver->class value in the YAML config file to point to your class.\r\n\r\n# Output files\r\n\r\nOn startup, and during runtime, Karaoke Manager will create a number of text files in your configured `tempDataPath`, many of which are intended to be of some use if you are skilled with scripting or configuring third-party software to do your bidding. If that's you, then some of the files which might be of interest are:\r\n\r\n- `KaraokeManager.singers.txt` contains the names from the current queue of singers (one per line). If a singer has no songs cued up, their name is prefixed with a tab.\r\n- `KaraokeManager.backgroundMusic.txt` is a file containing full paths of background music files (one per line). This is generated on startup by cross-referencing the contents of the `backgroundMusicPlaylistFilename` (as specified in your configuration) with the music files that are found in the `paths` that you have specified in the `music` section of the config. You may find this file useful as a playlist for a media player that you can fade in between singers.\r\n- `KaraokeManager.musicRequests.txt` contains paths (one per line) of songs that you have selected with the `cue` command. You could write a script to monitor this file and deal with the request queue as you see fit.\r\n- `KaraokeManager.songSuggestion.txt` is written to every ten seconds with the artist & title of a random track from your karaoke library. I use this to show a 'Why not try ...?' rolling display along the bottom edge of the karaoke screen.\r\n\r\n# Scanning\r\n\r\nOn startup, Karaoke Manager will scan your karaoke and music paths for files. If it finds files that it doesn't like the look of, it'll let you know, and it will also write various reports to files in `dataPath` for you to examine at your leisure.\r\n\r\nYou can also ask Karaoke Manager to perform a deeper analysis of your files with the `scan` command. This command will analyse your files, looking for duplicates, bad casing, inconsistencies, etc. The `scan,quick` command will perform this basic checking, but `scan,all` will go a bit further and report similar-looking titles as potential duplicates.\r\n\r\nThe various parts of the scan can be enabled/disabled in the `scan` section in the YAML configuration file.\r\n\r\nTo prevent false positives being reported, you can create lists of exemptions (one per line) in text files in `dataPath`:\r\n\r\n- The scan will look for duet \"reversals\", meaning that if you have files by \"Chas & Dave\", but also some by \"Dave & Chas\", it'll flag them up. `ReversalExemptions.txt` can contain a list of those that are valid, with the two halves of the pair separated by a tab. Note that, currently, only an ampersand separator is considered.\r\n- If the scan finds a file by an artist called, for example \"Greatest Band Ever\", and also a file by an artist called \"_The_ Greatest Band Ever\", it will flag that up. `TheExemptions.txt` can prevent this by listing either of those values.\r\n- The scan will nag you about artists or titles containing words that are not capitalized. `CapitalizedExemptions.txt` can list those are valid (e.g. 'kd lang')\r\n- The `all` scan will nag you about artists or titles that look very similar (though only by comparing artist with artists, and titles with titles). `SimilarityExemptions.txt` can list those that should not be considered. Put both values on the same line, separated by a tab.\r\n- The scan will nag you about artists that are identical apart from case (e.g. \"Paul McCartney\" and \"Paul Mccartney\"), but exemptions are not currently supported for this part of the scan.\r\n\r\n# Like It?\r\n\r\nIf you like this, and/or use it commercially, please consider throwing some coins my way via PayPal, at steven.fullhouse@gmail.com, or [buy me a coffee](https://www.buymeacoffee.com/peeveen).\r\n\r\n# TODO\r\n\r\n- More customization.\r\n- More code comments.\r\n\r\n\r\n# v1.0\r\n\r\nFirst release\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Karaoke session management utility",
    "version": "1.0.8",
    "project_urls": {
        "Download": "https://pypi.org/project/karaokemanager/",
        "Homepage": "https://github.com/peeveen/karaokemanager"
    },
    "split_keywords": [
        "karaokemanager",
        " karaoke"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "eebeb1292da50c168169ffab0321e5017575a0e80cd670dfabd77862c3746a35",
                "md5": "78ca9b1afe5087168695eac26fdb06b6",
                "sha256": "2c6b080e72275c9e78e9b437a2e083f8d02a97eba74cf0b32a855753e71472e2"
            },
            "downloads": -1,
            "filename": "karaokemanager-1.0.8-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "78ca9b1afe5087168695eac26fdb06b6",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 28829,
            "upload_time": "2024-07-07T18:24:53",
            "upload_time_iso_8601": "2024-07-07T18:24:53.563552Z",
            "url": "https://files.pythonhosted.org/packages/ee/be/b1292da50c168169ffab0321e5017575a0e80cd670dfabd77862c3746a35/karaokemanager-1.0.8-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d0423275729462b53c583a54660ddaf46e9e135924f3f3d2458fd16b983d0c45",
                "md5": "89fc8d4e28977360f76a8f4b75eb35fc",
                "sha256": "856be8c2ac440c50541d170184eaa82b5debd44b9503dfcff11347fc6c6ee77f"
            },
            "downloads": -1,
            "filename": "karaokemanager-1.0.8.tar.gz",
            "has_sig": false,
            "md5_digest": "89fc8d4e28977360f76a8f4b75eb35fc",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 25761,
            "upload_time": "2024-07-07T18:21:06",
            "upload_time_iso_8601": "2024-07-07T18:21:06.778802Z",
            "url": "https://files.pythonhosted.org/packages/d0/42/3275729462b53c583a54660ddaf46e9e135924f3f3d2458fd16b983d0c45/karaokemanager-1.0.8.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-07 18:21:06",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "peeveen",
    "github_project": "karaokemanager",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "karaokemanager"
}
        
Elapsed time: 0.26133s