1. Home
  2. Docs
  3. ChordPress Manual
  4. Example

Example

Input

Here is a ChordPress exmaple:

[chordpress hbnotation="yes" interactive="yes"]
{title:Heart of Gold}
{artist: Neil Young}
{composer: Neil Young}
{year: 1972}
{album: Harvest}

{start_of_verse}
{comment: Intro Guitar}
[Em][D][Em][D][Em][D]
{comment: Intro Guitar and Harp (3x)}
[Em][C][D][G]
{end_of_verse}

{start_of_verse}
{comment: Verse 1}
[Em]I wanna l[C]ive, [D] I wanna g[G]ive.
[Em]I've been a m[C]iner for a h[D]eart of g[G]old.
[Em]It's these expr[C]essions [D] I never g[G]ive.
{end_of_verse}

{start_of_chorus}
{comment: Chorus}
[Em] That keep me searchin’ for a h[G]eart of gold
[C] And I'm getting’ old. [G]
[Em] Keep me searchin’ for a h[G]eart of gold
[C] And I'm getting’ old. [G]
{end_of_chorus}

{start_of_verse}
{comment: Guitar and Harp (3x)}
[Em][C][D][G]
{end_of_verse}

{start_of_verse}
{comment: Verse 2}
[Em] I've been to [C] Hollywood, [D] I've been to [G] Redwood
[Em] I crossed the [C] ocean for a [D] heart of [G] gold
[Em] I've been in [C] my mind. [D] it's such a [G] fine line
{end_of_verse}

{start_of_chorus}
{comment: Chorus}
[Em] That keep me searchin’ for a h[G]eart of gold
[C] And I'm getting’ old. [G]
[Em] Keep me searchin’ for a h[G]eart of gold
[C] And I'm getting’ old. [G]
{end_of_chorus}

{start_of_verse}
{comment: Guitar and Harp (3x)}
[Em][C][D][G]
{end_of_verse}

{start_of_chorus}
[Em] Keep me searchin’ for a [D] heart of [Em] gold
You keep me searchin’ and I’m [D] growin’ [Em] old
Keep me searchin’ for a [D] heart of [Em] gold
I've been a miner for a [G] heart of [C] gold. [C] [Cmaj7] [C6] [G]
{end_of_chorus}
[/chordpress]

Output

The following is the rendered output of the above with default settings of the plugin.

Transpose up:

Heart of Gold

Composer: Neil Young
Artist: Neil Young
Year: 1972
Album: Harvest

Intro Guitar
Em 
D 
Em 
D 
Em 
D 
Intro Guitar and Harp (3x)
Em 
C 
D 
G 
Verse 1
Em 
I wanna l
C 
ive, 
 
 
D 
I wanna g
G 
ive.
Em 
I’ve been a m
C 
iner for a h
D 
eart of g
G 
old.
Em 
It’s these expr
C 
essions 
 
 
D 
I never g
G 
ive.
Chorus
Em 
That keep me searchin’ for a h
G 
eart of gold
C 
And I’m getting’ old.  
G 
Em 
Keep me searchin’ for a h
G 
eart of gold
C 
And I’m getting’ old.  
G 
Guitar and Harp (3x)
Em 
C 
D 
G 
Verse 2
Em 
I’ve been to  
C 
Hollywood, 
 
 
D 
I’ve been to  
G 
Redwood
Em 
I crossed the  
C 
ocean for a  
D 
heart of  
G 
gold
Em 
I’ve been in  
C 
my mind.  
D 
it’s such a  
G 
fine 
 
line
Chorus
Em 
That keep me searchin’ for a h
G 
eart of gold
C 
And I’m getting’ old.  
G 
Em 
Keep me searchin’ for a h
G 
eart of gold
C 
And I’m getting’ old.  
G 
Guitar and Harp (3x)
Em 
C 
D 
G 
Em 
Keep me searchin’ for a  
D 
heart of  
Em 
gold
 
You keep me searchin’ and I’m  
D 
growin’ 
 
 
Em 
old
 
Keep me searchin’ for a  
D 
heart of  
Em 
gold
 
I’ve been a miner for a  
G 
heart of  
C 
gold. 
 
 
C 
 
Cmaj7 
 
C6 
 
G 

 

Was this article helpful to you? Yes No

14 thoughts on “Example”

  1. Hi, sir. When I try to copy and paste above, many errors popped up. Like
    “Notice: Undefined offset: 1 in C:\example\wp-content\plugins\chordpress\includes\class-chordpress-renderer.php on line 361
    Undefined offset: 1 in C:\example\wp-content\plugins\chordpress\includes\class-chordpress-renderer.php on line 749
    Uninitialized string offset: -1 in C:\example\wp-content\plugins\chordpress\includes\class-chordpress-renderer.php on line 804
    Uninitialized string offset: 0 in C:\example\wp-content\plugins\chordpress\includes\class-chordpress-renderer.php on line 733
    Uninitialized string offset: 0 in C:\example\wp-content\plugins\chordpress\includes\class-chordpress-renderer.php on line 740
    Undefined offset: 0 in C:\example\wp-content\plugins\chordpress\includes\class-chordpress-renderer.php on line 1505”

      1. My apologies, sir. It’s my own error cause I’m using a different theme and I didn’t add any chords in the “Guitar Chords” section . I didn’t see it before until now. I was expecting it to work right away by just adding the shortcode above.

      2. I’m a fan :-). Your plugin works nice and is most flexible!

        Great addition would be clicking on (mobile) or hovering over (web) the chord to show the chordsheet in a popup.

        And separate from the chord sheet, a way to create a “nice looking” note bar (tab) for the intro licks or alternate chord presentations would also be nice (think of another great Neil Young song called Harvest Moon ;-))

        And a way to add strumpattern maybe?

        But otherwise, nicely done!

          1. Not at all, I’ve just submitted a screenshot with a description into “Suggest a new feature” section. Thanks!

        1. I want to show the lyrics in two column.
          How can I do that?

          Also in the transpose can put the scale instead of the number.
          Like transpose in G or A or B sth like that

          1. Hi Ekanta,
            there are no columns available in ChordPress. The output will always span over the width of the parent element. You would need to provide your own columns and display ChordPress output in there.
            ChordPress does not know the scale of a song. Thus, it cannot not transpose it to a different scale. Sorry.
            Best regards,
            George

          2. You could add something like this to the css:
            @media (min-width: 768px) {
            .cpress{
            column-count: 2 !important;
            }
            }

        2. After the update several empty lines appeared between the guitar chords and metas (title, album)
          Would it be possible to reduce this empty space?

Leave a Reply

Your email address will not be published.