Editing Installing PyKaraoke

Warning: You are not logged in. Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
-
[http://www.kibosh.org/pykaraoke/ Pykaraoke] is a Python application to play karaoke files (.kar) which encompass midi background music,
+
== Pykaraoke Install ==
 +
 
 +
Pykaraoke is a python software to play karaoke files (.kar) which encompass midi background music,
lyrics and the actual lyrics progress while the song is playing on the screen.
lyrics and the actual lyrics progress while the song is playing on the screen.
-
I have tested it personally on the [[Nokia N810|N810]] though I assume it would run just as well on the [[Nokia 770|770]]/[[Nokia N800|N800]], please update this article if you have verified it works with either/both of them, thanks in advance.
+
Pykaraoke official website: http://www.kibosh.org/pykaraoke/
-
== Dependencies ==
+
 
 +
 
 +
I have tested it personally on the N810 though I assume it would run just as well on the 770/N800,
 +
please update this article if you have verified it works with either/both of them, thanks in advance.
 +
 
 +
 
 +
=== Dependencies ===
* python2.5 python2.5-pygame
* python2.5 python2.5-pygame
Line 11: Line 19:
* pykaraoke (obviously)
* pykaraoke (obviously)
-
== Installation ==
 
-
=== Python ===
+
=== Install ===
 +
 
 +
==== Python ====
Either from the GUI's Application Manager or from a root shell you should install the two packages:
Either from the GUI's Application Manager or from a root shell you should install the two packages:
python2.5 and python2.5-pygame (from the root shell: apt-get install python2.5 python2.5-pygame)
python2.5 and python2.5-pygame (from the root shell: apt-get install python2.5 python2.5-pygame)
-
=== Timidity ===
 
-
You should grab the <code>timidity</code> and <code>timidity-data</code> debs from the [https://garage.maemo.org/frs/?group_id=631&release_id=1602 Garage page] and install them on your tablet.
+
==== Timidity ====
-
=== Configuration ===
+
From maemo's garage page you should grab the debs and install them on the tablet.
 +
The address is: https://garage.maemo.org/frs/?group_id=631&release_id=1602
 +
You need to get 2 debian packages: timidity and timidity-data
 +
Once you've downloaded them and transferred to your tablet, install them.
-
Create the directory /etc/timidity, create a new file called timidity.conf and add:
 
-
source /etc/timidity/freepats.cfg
 
-
Create a new file called freepats.conf (also in /etc/timidity) and add:
+
==== Configuration ====
 +
 
 +
Create the directory /etc/timidity, and create a new file called timidity.conf and add to it:
<code>
<code>
-
dir /usr/share/midi/freepats
+
source /etc/timidity/freepats.cfg
 +
</code>
-
# Automatically generated on Sun Feb 19 19:22:39 EST 2006
+
Create a new file called freepats.conf (also in /etc/timidity) and add to it:
-
# by http://freepats.opensrc.org/mkcfg.sh.txt
+
<code>
-
+
dir /usr/share/midi/freepats
-
drumset 0
+
 
 +
# Automatically generated on Sun Feb 19 19:22:39 EST 2006
 +
# by http://freepats.opensrc.org/mkcfg.sh.txt
 +
 
 +
drumset 0
  25    Drum_000/025_Snare_Roll.pat
  25    Drum_000/025_Snare_Roll.pat
Line 94: Line 110:
  84    Drum_000/084_Belltree.pat
  84    Drum_000/084_Belltree.pat
-
bank 0
+
bank 0
  0      Tone_000/000_Acoustic_Grand_Piano.pat amp=120 pan=center
  0      Tone_000/000_Acoustic_Grand_Piano.pat amp=120 pan=center
Line 168: Line 184:
  122    Tone_000/122_Seashore.pat
  122    Tone_000/122_Seashore.pat
  125    Tone_000/125_Helicopter.pat
  125    Tone_000/125_Helicopter.pat
 +
</code>
</code>
-
What's that freepats thing you ask? Well it's a bunch of MIDI patch sets. It is available as a debian package to get on an i386 under the name 'freepats' although it hasn't been packaged to the tablets so 2 things you can do (one or the other):
 
-
# Get the .pat files from the original website: http://freepats.opensrc.org/freepats/ if you do that, you need to create a directory called /usr/share/midi/freepats on the tablet and download from that website address the 2 directories Drum_000 and Tone_000 into /usr/share/midi
 
-
# Get the freepats debian package and unpack it to get the directories Drum_000 and Tone_000 and make sure both of them are in /usr/share/midi/freepats
 
-
=== PyKaraoke ===
+
What's that freepats thing you ask? well it's a bunch of midi patch set.
 +
It is available as a debian package to get on an i386 under the name 'freepats' although
 +
it hasn't been packaged to the tablets so 2 things you can do (one or the other):
 +
1. get the .pat files from the original website: http://freepats.opensrc.org/freepats/
 +
if you do that, you need to create a directory called /usr/share/midi/freepats on the tablet and
 +
download from that website address the 2 directories Drum_000 and Tone_000 into /usr/share/midi
-
Get the [http://www.kibosh.org/pykaraoke/downloads.php PyVaraoke zip archive] (current version is pykaraoke-0.6.zip) and unzip it to whatever directory you'd like in your tablet, then inside the pykaraoke directory create the link:
+
2. get the freepats debian package and unpack it to get the directories Drum_000 and Tone_000 and
 +
make sure both of them are in /usr/share/midi/freepats
-
ln -s /etc/timidity/timidity.cfg timidity.cfg
 
-
== Usage ==
 
-
We will be using the pykaraoke_mini.py program. It is a .kar player which stores your kar files entries in a database of it's own so the first
+
==== Pykaraoke ====
 +
 
 +
Get the pykaraoke zip archive from the official website: http://www.kibosh.org/pykaraoke/downloads.php
 +
(current version is pykaraoke-0.6.zip) and unzip it to whatever directory you'd like in your tablet,
 +
inside the pykaraoke directory create the link:
 +
<code>
 +
ln -s /etc/timidity/timidity.cfg timidity.cfg
 +
</code>
 +
 
 +
 
 +
=== Usage ===
 +
 
 +
We will be using the pykaraoke_mini.py program.
 +
It is a .kar player which stores your kar files entries in a database of it's own so the first
time we start it we need to tell it to scan the directory where you keep your .kar files so:
time we start it we need to tell it to scan the directory where you keep your .kar files so:
 +
<code>
 +
./pykaraoke_mini.py --scan --add-scan-dir=/whereever/you/keep/your/kar/files
 +
</code>
 +
 +
It will then start and scan that directory for available .kar files and display them in a list.
 +
In the next time you can start the pykaraoke_mini.py program by itself without appending
 +
any arguments.
 +
 +
 +
Notice, I have tested this with the N810 and using the N810 you need to use the keyboard to
 +
navigate through the karaoke files. Navigation is done using the hardware keyboard left menu
 +
button (up/down) and choosing to play a karaoke file is done using the middle button of the
 +
left menu.
 +
 +
-
./pykaraoke_mini.py --scan --add-scan-dir=/whereever/you/keep/your/kar/files
 
-
It will then start and scan that directory for available .kar files and display them in a list. In the next time you can start the pykaraoke_mini.py program by itself without appending any arguments.
 
-
[[Category:Media]]
+
Regards,
-
[[Category:Power users]]
+
Liran Tal <liran dot tal at gmail dot com>

Learn more about Contributing to the wiki.


Please note that all contributions to maemo.org wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see maemo.org wiki:Copyrights for details). Do not submit copyrighted work without permission!


Cancel | Editing help (opens in new window)