Starting this blog (again!) I found my self wondering about forgotten projects I might want to post here.
Somewhere in the mess that is my projects backup folder I found this sweet little thing that someone might like to put to good use.
The class accepts lyrics text with tabs included using a specific notation (see example).
It outputs formatted lyrics with the tabs included.
Documentation is at a bare minimum, but then again there’s not much to explain
You can check/tweak the code your self if you have basic PHP knowledge.
Enjoy!



Sweet…. This is what I’m looking for… Thanks for sharing
Many thanx 4 sharing. It could come in handy.
Brilliant, exactly what I needed. I coded a lyrics database for my own songs, I’ll gladly incorporate that.
Maybe I have one Idea for an enhancement: Not that seldom I have songs, where the Accord should be played BEFORE the words start or AFTER the words end. So why not have the lyrics lines start with nonbreakable spaces, so that such accords could be notated as well?
Example:
[C] [AM] [F] [G]This is my first line of lyric[F] [C] [F] [D] [G]This is my second line of lyricMaybe you could use an extra sign like[AM] for that.
I hope I could explain myself well enough, english is not my native language. And I hope that your parser will not scramble my two lyric lines
Greetings from Germany and keep on working!
I found another issue: What, if we need to display two chords side by side over one word? Your class couldn’t handle that and breaks the layout. Any Idea how to fix that?
Any News on this? The hope is dying the very last …