README
author Dan Fuhry <dan@enanocms.org>
Tue, 27 Mar 2012 18:48:23 -0400
changeset 3 c3150cee8dd9
parent 0 16db14829751
child 5 c36fbf04faac
permissions -rw-r--r--
Added support for the "transpose" tag which forces a song to be transposed.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
16db14829751 First commit.
Dan Fuhry <dan@enanocms.org>
parents:
diff changeset
     1
chords2halftone.php is a completely standalone (non-Enano dependent) quick php
16db14829751 First commit.
Dan Fuhry <dan@enanocms.org>
parents:
diff changeset
     2
script which turns ascii monospace chord sheets into halftone markup. You may
16db14829751 First commit.
Dan Fuhry <dan@enanocms.org>
parents:
diff changeset
     3
or may not find it useful.
16db14829751 First commit.
Dan Fuhry <dan@enanocms.org>
parents:
diff changeset
     4
16db14829751 First commit.
Dan Fuhry <dan@enanocms.org>
parents:
diff changeset
     5
Halftone markup example:
16db14829751 First commit.
Dan Fuhry <dan@enanocms.org>
parents:
diff changeset
     6
16db14829751 First commit.
Dan Fuhry <dan@enanocms.org>
parents:
diff changeset
     7
<halftone title="Don't Stop Believing">
16db14829751 First commit.
Dan Fuhry <dan@enanocms.org>
parents:
diff changeset
     8
Intro: (E) (B) (C#m) (A) (E) (B) (G#m) (A)
16db14829751 First commit.
Dan Fuhry <dan@enanocms.org>
parents:
diff changeset
     9
16db14829751 First commit.
Dan Fuhry <dan@enanocms.org>
parents:
diff changeset
    10
Verse 1:
16db14829751 First commit.
Dan Fuhry <dan@enanocms.org>
parents:
diff changeset
    11
(E)Just a (B)small town girl
16db14829751 First commit.
Dan Fuhry <dan@enanocms.org>
parents:
diff changeset
    12
(C#m)Living in a (A)lonely world,
16db14829751 First commit.
Dan Fuhry <dan@enanocms.org>
parents:
diff changeset
    13
(E)She took the (B)midnight train going
16db14829751 First commit.
Dan Fuhry <dan@enanocms.org>
parents:
diff changeset
    14
(G#m)any - (A)where
16db14829751 First commit.
Dan Fuhry <dan@enanocms.org>
parents:
diff changeset
    15
</halftone>
16db14829751 First commit.
Dan Fuhry <dan@enanocms.org>
parents:
diff changeset
    16
16db14829751 First commit.
Dan Fuhry <dan@enanocms.org>
parents:
diff changeset
    17
You get the picture.
16db14829751 First commit.
Dan Fuhry <dan@enanocms.org>
parents:
diff changeset
    18
16db14829751 First commit.
Dan Fuhry <dan@enanocms.org>
parents:
diff changeset
    19
Halftone will position the chords exactly in the right position above the text.
16db14829751 First commit.
Dan Fuhry <dan@enanocms.org>
parents:
diff changeset
    20
You also (and this was the main reason I wrote this plugin) get automatic
16db14829751 First commit.
Dan Fuhry <dan@enanocms.org>
parents:
diff changeset
    21
transposition with ajaxy-smooth sexiness.
16db14829751 First commit.
Dan Fuhry <dan@enanocms.org>
parents:
diff changeset
    22
16db14829751 First commit.
Dan Fuhry <dan@enanocms.org>
parents:
diff changeset
    23
Note that the positioning-chords-above-text trick sometimes makes for overlaps
16db14829751 First commit.
Dan Fuhry <dan@enanocms.org>
parents:
diff changeset
    24
if you put chords so close to each other. An example would be using
16db14829751 First commit.
Dan Fuhry <dan@enanocms.org>
parents:
diff changeset
    25
"(G#m)any(A)where" in the sample verse above - depending on your theme/font
16db14829751 First commit.
Dan Fuhry <dan@enanocms.org>
parents:
diff changeset
    26
G#m would be directly adjacent to A (confusing) or A would even overlap. So
16db14829751 First commit.
Dan Fuhry <dan@enanocms.org>
parents:
diff changeset
    27
be sure to space out your lyrics accordingly.