Follow up on my lyric display system

I mentioned in my previous post about the lyric display system that I've working on for the last couple nights. Currently it involves a QuodLibet plugin and a script.

The script monitors the currently playing song using DBus events emitted from the QuodLibet plugin, using the file name with ".lrc" appended to the end as the lyric file. It should be fairly easy to modify it for use with other music players.

It also executes my now playing script to set pidgin's tune status.

by khc on Fri Dec 28 00:36:57 2007 Permlink
RE: Follow up on my lyric display system

I mentioned in my previous post about the lyric display system that I've working on for the last couple nights. Currently it involves a QuodLibet plugin and a script.

The script monitors the currently playing song using DBus events emitted from the QuodLibet plugin, using the file name with ".lrc" appended to the end as the lyric file. It should be fairly easy to modify it for use with other music players.

It also executes my now playing script to set pidgin's tune status.

Hi!

I'm very interesting with your job. I downloaded these 2 files, but I don't how to make them work.

I put dbussignalfull.py into ~/.quodlibet/plugins/events/ and enable it in QuodLibet, then run lyrics.txt with terminal, put a .lrc file in directory which .mp3 file in, but when I play the song, there is nothing happened.

Thank you!

by anonymous on Tue Jan 15 09:01:01 2008
RE: Follow up on my lyric display system

Wow, someone is actually trying to use this!

I wrote this mainly out of curiosity and am not actually using this myself yet. That said, I don't see why it's not working for you and am very interested to figure out why.

First thing to try would be run dbus-monitor to see if the events are correctly fired. The event is called /net/sacredchao/QuodLibet/DBusSignalFull and you should see it whenever a song is played, seeked, paused, unpaused, and ended.

If you don't see the events, then your dbus installation is probably broken. This is unlikely if you are using a modern distribution that comes with dbus. However, if this is the case I probably can't help you much.

The next thing to try is edit the lyric script, go down to the last function called "debug", and comment out the first line that reads "return;". Then run the script again and send me the output. My guess is that it's not finding the .lrc file, you should see a "# Switching to ..." if it's able to find it.

Good luck! Keep me updated.

by khc on Tue Jan 15 21:37:57 2008
RE: Follow up on my lyric display system

Are you chinese? I am. My english is poor, maybe we can talk use chinese.

I do it what you told me, dbus-monitor run result is OK, When I run lyric script, I see output in terminal:

Paused

Can't exec "tune.py": No such file or directory at ./tune.py line 131.

1200484932 - # UnPaused

Use of uninitialized value in substitution (s///) at /usr/share/perl/5.8/File/Basename.pm line 338. fileparse(): need a valid pathname at ./tune.py line 174

I'm using Ubuntu 7.10.

Thank you very much.

by anonymous on Wed Jan 16 04:05:07 2008
RE: Follow up on my lyric display system

Sorry, I can't see this sentense: It also executes my now playing script to set pidgin's tune status.

I downloaded tune.py in same directory of lyric, It still output Can't exec "tune.py": No such file or directory at ./tune.py line 131. But I put tune.py in /usr/bin, It's run OK. When I change the song, It output:

0 - # SongStarted

0 - # Switching to /home/wayne/Music/Songs/Single/张韶涵-绝不.mp3

绝不 张韶涵

But How can I see lyrics? Which directory should I put the .lrc files?

Thanks.

by anonymous on Wed Jan 16 04:35:01 2008
RE: Follow up on my lyric display system

OK, I see your source code, now everything is OK. These are my outputs:

[00:20.88]明亮起来 [00:22.95]装扮 [00:24.27]我的Love Love [00:25.60]绚烂色彩 [00:26.37]水晶球里 [00:27.76]快快显示 [00:29.51]发出光芒 ^[[00:30.91]你的 Cinderella [00:32.68]魔幻水果 [00:34.34]酸酸甜甜 [00:35.93]美丽无限 [00:37.55]跟我一起出发

It's cool! Maybe you will consummate it, create a UI, add edit function...From now on, there is no lyric plugins for Quodlibet, I'm pay attention to this. Maybe someday I learn Python, I can write one myself.

In a word, Thank you!

by anonymous on Wed Jan 16 05:05:23 2008
RE: Follow up on my lyric display system

I am glad that it works out! What was the original problem?

Work is pretty busy lately, so I am not sure when I can continue working on this. I have some ideas about how to implement LRC file creation, but no time to implement yet.

Feel free to contact me in Chinese if you wish.

by khc on Wed Jan 16 20:21:59 2008
RE: Follow up on my lyric display system

great works!!! any updata on it?? quodlibet really need a good lyric displayer, this one seem good to me!

-kris

by anonymous on Sun Sep 28 21:44:41 2008
RE: Follow up on my lyric display system

Re: kris

Nope, sorry. I don't actually use this myself and I am not using QuodLibet anymore. I would be happy to address any specific bugs/tweaks that you may have though.

by khc on Mon Sep 29 12:55:05 2008