Example: Bracket format
Input Format: Bracket format: text with [Verse 1] style headers
Each section starts with a header in square brackets. A header can also name a performer, as in [Verse 1: Name]. It was loaded with the title line set aside and the title given as a fact, which is what Claude does for you.
[ Input ] [ Clean text output ] [ JSON output ]
Input
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Ballad of Lorem Ipsum
[Verse 1]
He sang of Lorem Ipsum
Driving her Dolorem
She stood for something wholesome
When nothing else would work
[Chorus]
This song is just a placeholder
Found it in some folder
So just an example
You’re welcome to scramble
[Verse 2]
His song had a second verse
It could have been worse
If he forgot his chorus
He’d ruin something flawless
[Bridge]
When Lorem filled the page
He’d start to engage
With words to take her place
But lose her pretty face
[Chorus]
(repeat)
[Outro]
May Lorem Ipsum be your muse
Output - Cleaned text
The song written back out as readable text: section names, facts at the top, and chords above the words where there are any.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
title: Ballad of Lorem Ipsum
Verse 1
He sang of Lorem Ipsum
Driving her Dolorem
She stood for something wholesome
When nothing else would work
Chorus
This song is just a placeholder
Found it in some folder
So just an example
You’re welcome to scramble
Verse 2
His song had a second verse
It could have been worse
If he forgot his chorus
He’d ruin something flawless
Bridge
When Lorem filled the page
He’d start to engage
With words to take her place
But lose her pretty face
Chorus
(repeat)
Outro
May Lorem Ipsum be your muse
Output - Formatted (JSON)
What the skill returns: one JSON object, with one line of the song on each row below.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{
"status": "needs-info",
"missing": ["credits", "date"],
"questions": ["Who wrote or performs it (artist, lyricist or composer)?", "When was it written or published?"],
"problems": [],
"notes": ["format: ultimate-guitar"],
"setAside": ["line 1: Ballad of Lorem Ipsum"],
"song": {
"type": "chordSheet",
"lines": [
{"type": "line", "items": [{"type": "tag", "name": "title", "value": "Ballad of Lorem Ipsum", "attributes": {}}]},
{"type": "line", "items": []},
{"type": "line", "items": [{"type": "tag", "name": "start_of_verse", "value": "Verse 1", "attributes": {}}]},
{"type": "line", "items": [{"type": "chordLyricsPair", "chords": "", "chord": null, "lyrics": "He sang of Lorem Ipsum", "annotation": ""}]},
{"type": "line", "items": [{"type": "chordLyricsPair", "chords": "", "chord": null, "lyrics": "Driving her Dolorem", "annotation": ""}]},
{"type": "line", "items": [{"type": "chordLyricsPair", "chords": "", "chord": null, "lyrics": "She stood for something wholesome", "annotation": ""}]},
{"type": "line", "items": [{"type": "chordLyricsPair", "chords": "", "chord": null, "lyrics": "When nothing else would work", "annotation": ""}]},
{"type": "line", "items": [{"type": "tag", "name": "end_of_verse", "value": "", "attributes": {}}]},
{"type": "line", "items": []},
{"type": "line", "items": [{"type": "tag", "name": "start_of_chorus", "value": "Chorus", "attributes": {}}]},
{"type": "line", "items": [{"type": "chordLyricsPair", "chords": "", "chord": null, "lyrics": "This song is just a placeholder", "annotation": ""}]},
{"type": "line", "items": [{"type": "chordLyricsPair", "chords": "", "chord": null, "lyrics": "Found it in some folder", "annotation": ""}]},
{"type": "line", "items": [{"type": "chordLyricsPair", "chords": "", "chord": null, "lyrics": "So just an example", "annotation": ""}]},
{"type": "line", "items": [{"type": "chordLyricsPair", "chords": "", "chord": null, "lyrics": "You’re welcome to scramble", "annotation": ""}]},
{"type": "line", "items": [{"type": "tag", "name": "end_of_chorus", "value": "", "attributes": {}}]},
{"type": "line", "items": []},
{"type": "line", "items": [{"type": "tag", "name": "start_of_verse", "value": "Verse 2", "attributes": {}}]},
{"type": "line", "items": [{"type": "chordLyricsPair", "chords": "", "chord": null, "lyrics": "His song had a second verse", "annotation": ""}]},
{"type": "line", "items": [{"type": "chordLyricsPair", "chords": "", "chord": null, "lyrics": "It could have been worse", "annotation": ""}]},
{"type": "line", "items": [{"type": "chordLyricsPair", "chords": "", "chord": null, "lyrics": "If he forgot his chorus", "annotation": ""}]},
{"type": "line", "items": [{"type": "chordLyricsPair", "chords": "", "chord": null, "lyrics": "He’d ruin something flawless", "annotation": ""}]},
{"type": "line", "items": [{"type": "tag", "name": "end_of_verse", "value": "", "attributes": {}}]},
{"type": "line", "items": []},
{"type": "line", "items": [{"type": "tag", "name": "start_of_bridge", "value": "Bridge", "attributes": {}}]},
{"type": "line", "items": [{"type": "chordLyricsPair", "chords": "", "chord": null, "lyrics": "When Lorem filled the page", "annotation": ""}]},
{"type": "line", "items": [{"type": "chordLyricsPair", "chords": "", "chord": null, "lyrics": "He’d start to engage", "annotation": ""}]},
{"type": "line", "items": [{"type": "chordLyricsPair", "chords": "", "chord": null, "lyrics": "With words to take her place", "annotation": ""}]},
{"type": "line", "items": [{"type": "chordLyricsPair", "chords": "", "chord": null, "lyrics": "But lose her pretty face", "annotation": ""}]},
{"type": "line", "items": [{"type": "tag", "name": "end_of_bridge", "value": "", "attributes": {}}]},
{"type": "line", "items": []},
{"type": "line", "items": [{"type": "tag", "name": "start_of_chorus", "value": "Chorus", "attributes": {}}]},
{"type": "line", "items": [{"type": "chordLyricsPair", "chords": "", "chord": null, "lyrics": "(repeat)", "annotation": ""}]},
{"type": "line", "items": [{"type": "tag", "name": "end_of_chorus", "value": "", "attributes": {}}]},
{"type": "line", "items": []},
{"type": "line", "items": [{"type": "tag", "name": "start_of_part", "value": "Outro", "attributes": {}}]},
{"type": "line", "items": [{"type": "chordLyricsPair", "chords": "", "chord": null, "lyrics": "May Lorem Ipsum be your muse", "annotation": ""}]},
{"type": "line", "items": [{"type": "tag", "name": "end_of_part", "value": "", "attributes": {}}]},
{"type": "line", "items": []}
]
}
}
Previous: Ultimate Guitar · All examples · Next: Unbracketed format