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: | ||
- | + | == 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. | ||
- | + | 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) | ||
- | |||
- | === 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 ==== | |
- | == | + | 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 a new file called | + | ==== Configuration ==== |
+ | |||
+ | Create the directory /etc/timidity, and create a new file called timidity.conf and add to it: | ||
<code> | <code> | ||
- | + | source /etc/timidity/freepats.cfg | |
+ | </code> | ||
- | + | Create a new file called freepats.conf (also in /etc/timidity) and add to it: | |
- | + | <code> | |
- | + | dir /usr/share/midi/freepats | |
- | + | ||
+ | # 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 | |
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 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 | ||
- | + | 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 | ||
- | |||
- | |||
- | 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. | ||
+ | |||
+ | |||
- | |||
- | |||
- | + | Regards, | |
- | + | Liran Tal <liran dot tal at gmail dot com> |
Learn more about Contributing to the wiki.