Guitar Tabs PHP Class

Saturday, February 13th, 2010 at 5:12 pm | Projects

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.


Guitar Tabs PHP Class page

Be Sociable, Share!

5 Responses to “Guitar Tabs PHP Class”

  1. Sweet…. This is what I’m looking for… Thanks for sharing ;)

  2. Marco says:

    Many thanx 4 sharing. It could come in handy.

  3. Elvis says:

    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?

    [C]               [AM]     [F]      [G]

            This is my first line of lyric

            [F]            [C]     [F]      [D]       [G]

            This is my second line of lyric

    Maybe 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!

  4. Elvis says:

    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?

  5. Elvis says:

    Any News on this? The hope is dying the very last …

Leave a Reply