milkdrop2077 / MilkDrop3

MilkDrop 3.0, supports any audio source, double-preset (.milk2), loading presets based on beat detection and much more...
https://twitter.com/MilkDrop2077
510 stars 26 forks source link

Have Milkdrop Monitor a textfile for title data vis splash? #51

Open Selexo opened 7 months ago

Selexo commented 7 months ago

I agree that having this as a separate app is nice and it shouldn't really need to be integrated as others have suggested. So the thought was that perhaps allowing Milkdrop3 monitor a folder for an expected CurrentSong.txt file or similar. This would allow an easy solution or compromise as other people could just then make a simple component or plugin that writes to a file the current playing song that Milkdrop could just read on "content changes" and display that data within milkdrop3. Nothing to maintain on your end other then the read file content or whatever extra lines you might expose to the end user to read in for visuals.

Others out there could probably take it further beyond the scope of the main point,

A more advance option for those who may want to DJ or stream with this or something would have Milkdrop3 find matching songname.xml lyrics of current song, if Milkdrop finds matching SongName.txt or XML This TXT file could have Lyrics of said song and vised out close to synced, with some basic timestamps that would need to handled on our end (probably better as an XML).

CurrentSong.txt

Bla Bla & Garfunkel
The Sound of Silence

Song Name.XML that has the lyrics as such

<lyrics>
    <verse time="0">
        Hello, darkness, my old friend
    </verse>
    <verse time="10">
        I've come to talk with you again
    </verse>
    <verse time="20">
        Because a vision softly creeping
    </verse>
    <verse time="30">
        Left its seeds while I was sleeping
    </verse>
    <verse time="40">
        And the vision that was planted in my brain
    </verse>
    <verse time="50">
        Still remains
    </verse>
    <verse time="60">
        Within the sound of silence
    </verse>
</lyrics>
milkdrop2077 commented 7 months ago

Yes that's very doable, just ask your mp3player's developer :) Could be even more simple, they could just use a SendMessage(nameofcurrentsong) to MilkDrop3 when the music change, that's 3 lines of code to add to the player.

if they're too busy, I'll code my own mp3player soon ;D

DejayRezme commented 1 month ago

Might be better to use a text subtitle format like SRT / WebVTT or TTML then you can use subtitle editor software or libs or tools (overview: https://matesub.com/resources/subtitle-file-formats)