Page 1 of 1

A lyric generator

Posted: Mon May 13, 2019 8:34 pm
by jb
http://johnorama.com/lyricize/

There’s a giant file of lyrics in Kaggle.
There’s a PHP Markov chain generator.

I hacked them together. Feel free to make your own better one, just let me use it when you do. :)

This gizmo uses the first 200,000 characters of the lyrics file, because that generates ok results without a long processing wait. And the whole file is 300MB which is bigger than my Dreamhost account will let me process so i had to make a sacrifice, I’m sorry Gary.

Increase or decrease the Order number to have the gizmo use more or less words/character in a row. I suggest just using the defaults.

You can request up to 25K characters in the return but I suggest just clicking Generate over again.

Before using anything generated by this, check Google to make sure it’s not accidentally spitting a whole line from a song at you. Happens sometimes, so don’t get too excited,

Enjoy,

JB

Re: A lyric generator

Posted: Tue May 14, 2019 8:17 am
by ujnhunter
Something isn't right... I'm just getting Beyonce' lyrics every time I press the button...

Re: A lyric generator

Posted: Tue May 14, 2019 9:27 am
by jb
Weird. Who would've thought there's more than 200,000 characters of Beyonce lyrics.

Well, anyway, I just tweaked it so it starts from a random point somewhere in the lyric file (Which has 323,000,000 characters in it). You shouldn't get many Beyonce things now.

JB

Re: A lyric generator

Posted: Tue May 14, 2019 9:59 am
by Pigfarmer Jr
Interesting. This might have usefulness.

Re: A lyric generator

Posted: Tue May 14, 2019 10:08 am
by owl
Ha! Cool toy.

Maybe you should filter it on short words? I'm getting a lot of one-letter lyric lines, like "g" or "Y".

These seem surprisingly coherent:

But nothing to sense you brought me to listen to the deep blue sea
Fished a few gills in a coma dial 999

Re: A lyric generator

Posted: Tue May 14, 2019 10:41 am
by jb
owl wrote:
Tue May 14, 2019 10:08 am
Maybe you should filter it on short words? I'm getting a lot of one-letter lyric lines, like "g" or "Y".
That would be nice. Maybe someday I'll feel motivated to make it fancier. For now, just put some whiteout over those where you see them.

JB

Re: A lyric generator

Posted: Fri May 17, 2019 8:14 am
by AJOwens
I feel like I want to seed this with the current SongFight title... That would probably get me writing again. I tend to work from the lyrics to the music, but by the time I come up with lyrics, the fight's over.