jm-welch / PyChord

Lyric/Chord sheet parser written in Python
0 stars 0 forks source link

"Title" document tag #4

Open jm-welch opened 11 years ago

jm-welch commented 11 years ago

Overview

Document-level tag that specifies the song's title.

Requirement

Sample input:

{title: Wild Rover}
{subtitle: trad.}

I've [1]been a wild rover for many a [4]year
And I [5]spent all my money on whiskey and [1]beer,
And [1]now I'm returning with gold in great [4]store
And I [5]never will play the wild rover no [1]more.

Sample output:

>> song.title
'Wild Rover'
>> song.subtitle
'trad.'
>> str(song)

Wild Rover
trad.

     1                            4
I've been a wild rover for many a year
      5                                 1
And I spent all my money on whiskey and beer,
    1                                    4
And now I'm returning with gold in great store
      5                                 1
And I never will play the wild rover no more.