DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Trout: show panel with lyrics from local text file  (Read 12,166 times)

AbteriX

  • Member #520
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 1,150
Trout: show panel with lyrics from local text file
« on: April 27, 2013, 10:38 PM »
Hi Skwire, maybe you will enjoy thinking about implementing this feature.


Let say i have a file
Black Sabbath - Paranoid.mp3
and a text file
Black Sabbath - Paranoid.LYR
with lyrics or something else.

How about a optional edit control to display that file content?


Same for text file
Black Sabbath - Paranoid.ALB
with information about the track list if this MP3 contains the full album.

If base name change, e.g. to 'Black Sabbath - Sabotage',
Trout would update the shown content IF a LYR or ALB file exists.
If not, those panels would show something like  'No corresponding file found.


EDIT: to make it easier to implement, understand and to handle those text files,
I change my mind to simple look for one file with TXT extension and the base name of the MP3.
So Black Sabbath - Paranoid.TXT nearby Black Sabbath - Paranoid.MP3
will contain all needed information and you would have to add only one additional panel.



Here is a mock up about what I have in mind with just notepad instead a real panel to make myself clear:

Clipboard01.png
Greetings, Stefan.
« Last Edit: April 27, 2013, 11:04 PM by AbteriX »

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: Trout: show panel with lyrics from local text file
« Reply #1 on: May 01, 2013, 05:47 AM »
I'd rather not add another panel but I can easily make the lyrics panel display a text file, if it exists, that matches the currently playing filename as you describe above.  If such a file doesn't exist, the panel would search for lyrics as it does now.  How about that?

AbteriX

  • Member #520
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 1,150
Re: Trout: show panel with lyrics from local text file
« Reply #2 on: May 03, 2013, 05:46 PM »
I can easily make the lyrics panel display a text file, if it exists, that matches the currently playing filename as you describe above.
If such a file doesn't exist, the panel would search for lyrics as it does now.  How about that?

Sounds nifty and reasonable!  Good idea, this would do it too.


.
Greetings, Stefan.

Original address: https://www.donationcoder.com/forum/index.php?topic=34781.0