Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Simple Lyrics Plugin (Read 21518 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Simple Lyrics Plugin

Just finished hacking together this simple plugin for displaying lyrics stored in tags.
Its nothing fancy - my first c++ prog infact, but i thought i may as well share it.
ANSI and Unicode versions are included in the zip.

download foo_lyrics
source code

Edit:
screenshot

Simple Lyrics Plugin

Reply #1
Great plugin. I've been wanting something like this for a while but have been too lazy to program it. 
Could you make the font and font size adjustable? It's ok for English lyrics but for Japanese or Chinese its far too small to read.

Simple Lyrics Plugin

Reply #2
yeah i'm just working on the font selection now 

Simple Lyrics Plugin

Reply #3
ok plugin has been updated - it now supports font selection for the lyrics text.
Download link is the same as above.

Simple Lyrics Plugin

Reply #4
great stuff, how about supporting timestamps in lyrics?

To start with, not displaying anything of the form [nn:nn] where n is a digit.

Then later you might look into highlighting the line at the right time.

Simple Lyrics Plugin

Reply #5
Great plugin. Can you add timestamps support?
Second thing is changing source of lyrics (from other file, directory).
Can you write something like:
plugin read information about %artist% and %title% and then
searching in selected directory strings: "%artist% - %title%.txt"

Somethig like winamp plugin Lyrics Plugin for Winamp:
Code: [Select]
http://gibo.wz.cz/programs/?name=lyrics

Simple Lyrics Plugin

Reply #6
ansi version 2 not work ( dll is charged but no display and empty page in config)

ansi version and unicode in zip file have same numbers of bits, are the same?

it is possible to download first version?

thank you
Music is my first love.

Simple Lyrics Plugin

Reply #7
Quote
Great plugin. Can you add timestamps support?
Second thing is changing source of lyrics (from other file, directory).
If you have only mp3 and v2tags it is ok, but what about ape(mpc), lame and other formats?

Can you write something like:
plugin read information about %artist% and %title% and then
searching in selected directory strings: "%artist% - %title%.txt"

For me it works from non-mp3 files - I put a tag called 'lyrics' into a flac file and it works.

I don't think it depends on the tag format!

Simple Lyrics Plugin

Reply #8
Quote
I don't think it depends on the tag format!

Yes, i know that now.

Simple Lyrics Plugin

Reply #9
ok the ansi version should be working now.
i gotta go to work now but i'll have a look at implementing these suggestions tonight.

Simple Lyrics Plugin

Reply #10
no, not work with win 98se
Music is my first love.

Simple Lyrics Plugin

Reply #11
ability to add lyrics using this plugin and a plugin for displaying currently playing song on your website and i would move from WA2 to foobar
also something along the lines of this for foobar would kick royal ass

Simple Lyrics Plugin

Reply #12
Quote
also something along the lines of this for foobar would kick royal ass

That's one of the stupidest things I've ever seen.  Googling for the lyrics and stripping the HTML tags?  Ick.

It should at least use a specific lyrics site, so it can consistently strip the result down to just the lyrics, without other junk getting mixed in.

P.S.  Wouldn't make more sense just to add the data to the file, if you really need lyrics?

Simple Lyrics Plugin

Reply #13
ok a little update - same link as before.

now you can specify an external file to read lyrics from (the file must be in same directory as the song). use tags formatting to specify the file - default is %_filename%.txt

a little change to the config means that u need to specify for the plugin to look in %lyrics% - not just lyrics like i had before because i was slack  this is just to make it more standard.

i have tested the ansi version in win98 in vmware and it seems to be working fine. if u are having trouble with it just make sure that it is actually the ansi (and only the ansi) version of it in your foobar folder.

Simple Lyrics Plugin

Reply #14
Quote
Second thing is changing source of lyrics (from other file, directory).

hmm i overlooked that part about a list of search directories - i can see how that could be useful. i'll have a look at that next. (timestamps is currently on the too hard list lol - but not ruled out. have to look and see how difficult/possible it is)

Simple Lyrics Plugin

Reply #15
small problem with text lirics:

"Björk
Telegram (1996)
You\'ve Been Flirting Again

All that she said was true....
...................."

is displayed as

"Bj"
Music is my first love.

Simple Lyrics Plugin

Reply #16
Quote
small problem with text lirics:

"Björk
Telegram (1996)
You\'ve Been Flirting Again

All that she said was true....
...................."

is displayed as

"Bj"


bugger.

working on it now. i've managed to get

Bjrk
Telegram (1996)
You\'ve Been Flirting Again

All that she said was true......

.. just missing the ö.

all i can say at the moment is wtf? anyone got any insight into the problem?

Simple Lyrics Plugin

Reply #17
Dont read lyrics in tag...
Quote
TAMA: have you edited the config to change the metadata value from lyrics to %lyrics% ? it was a small change i made to make it more foobar standard (using the %'s).

Sorry, i am the idiot of the day...
problem caused by directly update dll and because i have not read entirely your post(a little change to the config means that u need to specify for the plugin to look in %lyrics% - not just lyrics)
Music is my first love.

Simple Lyrics Plugin

Reply #18
ok these different text formats are giving me the shits.
an updated version has been uploaded.
ansi encoded text files should work correctly now in both versions of the plugin. utf8 reading is currently out of order... hopefully working soon

Simple Lyrics Plugin

Reply #19
ok the text reading bugs should be fixed now    but you never know...

Edit:

added a textbox in the config to enter search directories. directories are seperated by a ;
eg c:\lyrics\;d:\

so now it first checks for a tag (default %lyrics%), if thats missing it looks for a matching file in the song's directory (default %_filename%.txt), if thats missing it searches the search directories in order until it finds a match - if theres no match you get <no lyrics>   

hopefully theres no bugs

crap there is bugs - doesn't find/read a file called Björk.
i'm ready to give up now lol - someone who knows what they're doing can make it

Simple Lyrics Plugin

Reply #20
great plugin
but i am chinese, so there have some shame,although it unicode ,chinese so bad
Chinese Kongfu

Simple Lyrics Plugin

Reply #21
ok, i have modified the file opening code.

tested under English win98se with filenames with all sorts of ö type characters worked, those filenames also worked under english winxp. filenames with japanese kanji also worked under winxp.

download latest version

Simple Lyrics Plugin

Reply #22
latest dll crash foobar 0.62a / win98se
only when "read lyrics from texte file" is activated.


FOOBAR2000 a causé une défaillance de page dans
le module KERNEL32.DLL à 0187:bff7b992.
Registres :
EAX=00000020 CS=0187 EIP=bff7b992 EFLGS=00010202
EBX=00826e04 SS=018f ESP=0067f6cc EBP=0067f708
ECX=7803bb48 DS=018f ESI=00000020 FS=539f
EDX=00000000 ES=018f EDI=0067f918 GS=0000
Octets à CS : EIP :
80 3e 04 74 0f 33 c0 50 50 50 68 05 00 00 c0 e8
État de la pile :
00000000 78011ecd 00000020 780246c6 00000000 0067f918 00f9a5e8 00826e04 0067f74c 00f973a4 0067f4fc 0067f74c 7800ffb8 780353e0 ffffffff 0067f758
Music is my first love.

Simple Lyrics Plugin

Reply #23
damn sorry about that - didn't test my code for when no lyrics are found.
fixed now.

download

Simple Lyrics Plugin

Reply #24
ok, now work when txt file is in same directory.
and when is in d:\ (search directory = d:\ )
BUT not when is in subfolder , i.e. d:\muzik (search directory = d:\muzik)

Music is my first love.