Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 496013
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T05:38:46+00:00 2026-05-13T05:38:46+00:00

I would like to build a program which lets lyrics of a song run

  • 0

I would like to build a program which lets lyrics of a song run over the screen. Something like this:

http://www.youtube.com/watch?v=kIAiBvD9njM

Can you help me?

Algorithm:

  • pushes the marker to the right of a line fitting the music
  • lets a line above the current line disappear
  • inserts a new line above the current line

What is needed?

  • lyrics of the song (line per line)
  • time to text data? (when does a line start/end)

Some approaches would help me a lot. Pseudo-code or even Delphi code of any part would be fantastic.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T05:38:46+00:00Added an answer on May 13, 2026 at 5:38 am

    let’s assume you have a text file with the text to be shown and the annotated time of when to hightlight it (kind of a subtitles file, for example the standard proposal w3c timed text (http://www.w3.org/AudioVideo/TT/) or the SUB – Movie subtitle file format in use by several media players.

    Your program must first read and parse the text file, and decode the annotated time. Insert it in a stringlist called Subtitles which items would also keep objects similar to this one

    type tSubtitle = class
      num : integer;
      prevTime, fromTime : tdatetime;
      toTime, nextTime: tdatetime;
      text: string;
    end;
    

    You might want to extend the object to hold some highlighting attributes as well.

    Then you just need to display those objects synchronized with a timer.

    procedure TForm1.Timer1Timer(Sender: TObject);
    var rt : TDateTime;
        done:boolean; 
        si,st,sb:integer; 
        s:string;
    begin
      rt:=now-startTime;
      st:=0;
      sb:=subtitles.Count;  // binary search the subtitle for the current time
      repeat
         si:=(st+sb) div 2;
         s:=TSubtitle(subtitles.Objects[si-1]);
         done:= ((t>=s.prevTime) and (t<=s.nextTime));
         if not done then 
         begin
            if t>s.prevTime then st:=si 
            else if t<s.nextTime then sb:=si;
            if st=sb then done:=true;
         end;
      until done;
      // do what you want with s
    end;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to build an application that will run on a web, this
I would like to build a program which takes a username as parameter and
I have a Java program using AWT which I would like to run on
I would like to build an excel VBA program to find all the match
I would like to build some code which calls some code on loadup of
I would like to build a jar file with eclipse, but the program seems
I would like to build a regexp in Java that would be passed in
I would like to build a query that will pull the number of rows
I would like to build a static version of QT Library for X11 like
I would like to build a cross-platform GUI application in Python that displays PostScript

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.