Skip to content

radiand/lyrand

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lyrand (LYrics in RANDom)

Generate brand new lyrics out of given ones. Verses can be completely random, rhyme or have specified number of syllables.

what?

The idea was to fetch my Spotify playlist, download all lyrics and mix them up to see what happens.

To improve the experience, lyrand has implemented (let's be honest - in a very naive way) following features:

  • randomly mix all tracks and cut to specified number of lines (--max-lines=<NUM>)
  • mix verses that rhyme in AABB manner (--rhymes)
  • mix only verses that have specified number of syllables (--syllables=<NUM>)

usage

python3 -m lyrand LYRICS.json --max-lines 10 --syllables 13 --print-origin

where LYRICS.json is a file generated by lyrand-download module and has following layout:

[
    [
        "artist",
        "title",
        "verse1\nverse2\nverse3
    ],
    [
        ...same again for another track
    ],
    ...
]

installation

pip3 install .

development

pip3 install -e .
tox -e py37  # or any other tox.ini command...

About

toy script to generate random lyrics out of the listed tracks

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors