Support and General Use > Plugins/Viewers

sncviewer plugin

<< < (14/38) > >>

roolku:

--- Quote from: carmenm on February 28, 2006, 06:28:12 PM ---tomorrow i am gonna try to update the plugin in order for it to be able to play also lrc8 files. I was wondering, should i make something like:
if ( exist lrc8 file) ....
else if (exist snc file) ...

--- End quote ---

That is how I do it. It tries several formats (including ID3 tags) until it finds the lyrics. It is however still work in progress. (so many formats, so little time). It


--- Quote ---or should i do like a "different" version of the plugin that reads only lrc8 files???

--- End quote ---

Do you have an official spec for the format? I have come accross various flavours of the lrc format which I try to support, but it would be good to see what it is supposed to be like.


--- Quote ---If i choose the first option i think about using a bool to know in witch cas i am so that store_section and is_time_tag know what to do
What do you t=hink about that???

--- End quote ---

It is probably sufficient if you want to support just another format (similarely how txt was added later).

carmenm:
ok seems to be done but cant compil it at work
So if you want roolku, here is the file .
Just changed load_sncfile, store_section and timetag
in store section the real difference is that each lyrics is on a line so dont need the while yet i kept it to prevent from reading the comments
Here is a file example
[ti:Soul Meets Body]
[ar:Death Cab For Cutie]
[al:Plans]
[by:zwj]
[00:00.00]Soul Meets Body  ---- Death Cab For Cutie      By  Ale


[00:12.85]I want to live where soul meets body
[00:22.84]And let the sun wrap its arms around me

[attachment deleted by admin, too old]

(:@):
the plugin is updated again

carmenm:
Just realized that lrc format is more complexed than i thought. i manage to read line like
[00:12.85]I want to live where soul meets body

but the problem is that in fact in lrc format you have lines like
[00:10.46][01:19.26][01:27.87][02:28.71][02:37.51][02:46.15][02:54.78][03:29.59]Nothing's Impossible

which means taht "Nothing's Impossible" is the lyrics for all those time tags. My problem is thaht i dont know how to put them in the right order. Does your plugin need the lyrics to be in the right order???

(:@):

--- Quote from: carmenm on March 04, 2006, 04:48:26 PM ---Just realized that lrc format is more complexed than i thought. i manage to read line like
[00:12.85]I want to live where soul meets body

but the problem is that in fact in lrc format you have lines like
[00:10.46][01:19.26][01:27.87][02:28.71][02:37.51][02:46.15][02:54.78][03:29.59]Nothing's Impossible

which means taht "Nothing's Impossible" is the lyrics for all those time tags. My problem is thaht i dont know how to put them in the right order. Does your plugin need the lyrics to be in the right order???

--- End quote ---
yes, they have to be in the right order. you have to sort them according to the time.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version