GithubHelp home page GithubHelp logo

spotify-lyrics-windows's Introduction

Lyrics

Lyrics for Spotify, in real-time. Uses Musixmatch as a backend, but it actually works.

Screenshot

Features

  • Minimalistic UI with stay-on-top and auto-scroll features.
  • No input; just launch it and let it do the rest.
  • Song lyrics are automatically cached, for your offline needs.

How does it work?

  1. When a song is playing, the title of the main Spotify window is scanned, and the title / artist are extracted from it.
  2. Several times per second, the memory of the Spotify process is scanned to find strings that match a timestamp (0:00 or 00:00), and all these strings are cached.
  3. The program attempts to find the timestamp that is most likely to be the "current song position" timestamp, using the following criteria:
    • If a new song just started playing, we select the timestamp which is the lowest, but which was high before (since the text likely went from 3:42 to 0:00).
    • If the same song is playing, we select the first timestamp that increased by 1 since the last analysis (since a song will likely go from 3:41 to 3:42).
    • If no song is selected this way, we take the last timestamp that matched either one of the previous conditions.

spotify-lyrics-windows's People

Contributors

71 avatar

Stargazers

Andrei Filip avatar  avatar Evgenii Komissarov avatar Rupinderveer Virdi avatar A. Göktuğ Yalçın avatar Najmus Sakib Arko avatar JS avatar Exil avatar  avatar Georgii Alexandrov ☮️ avatar  avatar Aasutosh Jha avatar  avatar Andrey Arekhva avatar Monkeyman avatar  avatar Samantha Crepeau avatar  avatar Wallop avatar A.B.Santhosh avatar  avatar Aman Tiwari avatar Thomas Le avatar James avatar  avatar Kai Gurney avatar

Watchers

James Cloos avatar  avatar  avatar

spotify-lyrics-windows's Issues

Input string was not in a correct format exception

I'm getting this exception when starting the app:

Unhandled Exception: System.FormatException: Input string was not in a correct format.
   at System.Number.ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt)
   at Lyrics.Helpers.JSON.parse(String s, Int32& i)
   at Lyrics.Helpers.JSON.parse(String s, Int32& i)
   at Lyrics.Helpers.JSON.parse(String s, Int32& i)
   at Lyrics.Helpers.JSON.parse(String s, Int32& i)
   at Lyrics.Musixmatch.parseSubtitles(String json, List`1 subtitles)
   at [email protected](Unit unitVar)
   at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvoke[T,TResult](AsyncActivation`1 ctxt, TResult result1, FSharpFunc`2 part2)
   at Microsoft.FSharp.Control.Trampoline.Execute(FSharpFunc`2 firstAction)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at [email protected](ExceptionDispatchInfo edi)
   at Microsoft.FSharp.Control.Trampoline.Execute(FSharpFunc`2 firstAction)
   at <StartupCode$FSharp-Core>[email protected](Object o)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()

Auto-scroll?

hi friend,may be there is some wrong with my operation?it isn't auto scroll,i used the latest release.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.