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
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
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”
Hi Ben,
I just tested this with a fresh new page, copy and pasted the code at the top of this page (with WordPress editor in text mode) and got exactly the result as expected. No errors at all.
Make sure you paste the code in text mode.
Best regards,
George
PS: For support requests, please use my service desk here:
https://georgelewe.atlassian.net/servicedesk/customer/portal/5
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.
No problem. I am glad it works now.
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!
Hi Roeland,
thanks for the good words and new ideas. I will see what I can do…