Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

pycdg(6) [debian man page]

PYCDG(6)																  PYCDG(6)

NAME
pykaraoke - free CDG/MIDI/MPEG karaoke player SYNOPSIS
pycdg [ options ] songfilename.cdg OVERVIEW
pykaraoke is a free karaoke player for Linux, FreeBSD and Windows. pycdg is a CDG karaoke player which supports MP3+G and OGG+G tracks. The player uses the pygame library (www.pygame.org), and can therefore run on any operating system that runs pygame (currently Linux, Free- BSD, Windows and OSX). You can use this file as a standalone player, or together with PyKaraoke. PyKaraoke provides a graphical user interface, playlists, search- able song database etc. For those writing a media player or similar project who would like CDG support, this module has been designed to be easily incorporated into such projects and is released under the LGPL. Numeric module (numpy.sourceforge.net) is required only if you do not use the compiled C low-level CDG implementation in _pycdgAux.c USAGE
To start the player, pass the CDG filename/path on the command line: python pycdg.py /path/song.cdg You can also incorporate a CDG player in your own projects by importing this module. The class cdgPlayer is exported by the module. You can import and start it as follows: import pycdg player = pycdg.cdgPlayer("/path/song.cdg") player.Play() If you do this, you must also arrange to call pycdg.manager.Poll() from time to time, at least every 100 milliseconds or so, to allow the player to do its work. The class also exports Close(), Pause(), Rewind(), GetPos(). There are two optional parameters to the initialiser, errorNotifyCallback and doneCallback: errorNotifyCallback, if provided, will be used to print out any error messages (e.g. song file not found). This allows the module to fit together well with GUI playlist managers by utilising the same GUI's error popup window mechanism (or similar). If no callback is provided, errors are printed to stdout. errorNotifyCallback should take one parameter, the error string, e.g.: def errorPopup (ErrorString): msgBox (ErrorString) doneCallback can be used to register a callback so that the player calls you back when the song is finished playing. The callback should take no parameters, e.g.: def songFinishedCallback(): msgBox ("Song is finished") To register callbacks, pass the functions in to the initialiser: cdgPlayer ("/path/song.cdg", errorPopup, songFinishedCallback) These parameters are optional and default to None. If the initialiser fails (e.g. the song file is not present), __init__ raises an exception. OPTIONS
pycdg also takes various command-line options for setting the window size, position, and update rate. Type the following for a full list of options: $ pycdg --help SEE ALSO
You can find PyKaraoke's home page at: http://www.kibosh.org/pykaraoke/ AUTHOR
PyKaraoke was written by Kelvin Lawson <kelvinl@users.sourceforge.net> and William Ferrell <willfe@gmail.com>. This manual page was written by Miriam Ruiz <little_miry@yahoo.es>, for the Debian project (but may be used by others). july 16, 2006 PYCDG(6)

Check Out this Related Man Page

GJAY(1) 						      General Commands Manual							   GJAY(1)

NAME
gjay - organizes music collections SYNOPSIS
gjay [-a file] [-c color] [-d] [-f] file] [-l length] [-p] [-s] [-u] [-v verbosity] [-P] gjay [-hV] DESCRIPTION
gjay (Gtk+ DJ) analyzes and categorizes collections of MP3, OGG, FLAC and WAV music files so that interesting playlists can be generated. Each song is assigned characteristics (BPM and spectrum) and user-assigned attributes (rating and color). "Color" is just a handy way for a user to describe a song. gjay has both a user-visible interface and a background processing component. The user-visible component is used to select the base music directory, set song attributes, and generate playlists. The background component (the daemon) analyzes songs. Song analysis can take a while. After the base music directory has been set and the daemon has started its analysis, it is possible to quit the user interface portion of the program and allow the daemon to continue in the background. GJay can be started in daemon mode by passing -d, in which case it runs until song analysis is complete. It's OK to kill or ctrl+c to quit a running daemon; it saves data as it goes along. You can create playlists from within the GJay or from the command line. If you generate a playlist from the command line, the previous session's playlist preferences for the importance of various attributes will be used. OPTIONS
-a file, --analyze-standalone=file Run the analysis daemon on file and then exit. Print the results of analyzing a file to stdout. Does not consult existing file data. -a color, --color=color Start the playlist with the initial color of color. color can either be one of the named colors or a hex tuple in the format of 0xRRGGBB. -d, --daemon Run gjay as a daemon only with no GUI frontend. -f file, --file=file Start the playlist with file. -l minutes, --length=minutes Override the playlist length, the default is set in the preferences. -s, --skip-verification Skip file verification. -u, --m3u-playlist When generating a playlist, make it in the m3u format. -v verbosity, --verbose=verbosity Set the level of how verbose gjay is. -P, --player-start Start the music player after making a playlist. -V, --version Show the version and copyright information for the program. SEE ALSO
audacious(1),mpd(1) 2011-03-22 GJAY(1)
Man Page