<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Editing lyrics and chords text files]]></title><description><![CDATA[<p dir="auto">Hi! I am always amazed by what Notepad++ can do. It’s like magic. Now to my question. I have to edit a large number of lyrics and chords text files. I was wondering if there was a way to enclose the chords that appear above the lyrics to enclose within square brackets and (here’s the impossible?) make the chords line merge with the lyrics line.</p>
<p dir="auto">For example.<br />
ORIGINAL:<br />
A         D<br />
Above all powers,<br />
E         A<br />
Above all kings,<br />
D          E               A<br />
Above all nature and all created things,<br />
F#m        E               D<br />
Above all wisdom and all the ways of man,<br />
Bm            A                  C#<br />
You were here before the world began.</p>
<p dir="auto">(The chords have all aligned to the left. Actually they are not.)<br />
AFTER EDITING WITH NOTEPAD++:</p>
<p dir="auto">[A]Above all [D]powers,<br />
[E]Above all [A]kings,<br />
Above all [D]nature and [E]all created [A]things,<br />
Above all [F#m]wisdom and [E]all the ways of [D]man,<br />
[Bm]You were here [A]before the world beg[C#]an.</p>
<p dir="auto">Thank you.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/19775/editing-lyrics-and-chords-text-files</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Apr 2026 08:54:37 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/19775.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 29 Jul 2020 06:40:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Editing lyrics and chords text files on Fri, 20 Jan 2023 23:30:10 GMT]]></title><description><![CDATA[<p dir="auto">The transformation between Ultimate-guitar type tab and chord pro is available on this web page.  It is a github project</p>
<p dir="auto"><a href="https://ultimate.ftes.de" rel="nofollow ugc">https://ultimate.ftes.de</a>  &lt;&lt; looks like a personal web site.</p>
<p dir="auto"><a href="https://github.com/ftes/ultimate-to-chordpro" rel="nofollow ugc">https://github.com/ftes/ultimate-to-chordpro</a> &lt;&lt; looks a bit more permanent.</p>
<p dir="auto">Works very well.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/83488</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/83488</guid><dc:creator><![CDATA[Colin B]]></dc:creator><pubDate>Fri, 20 Jan 2023 23:30:10 GMT</pubDate></item><item><title><![CDATA[Reply to Editing lyrics and chords text files on Fri, 31 Jul 2020 15:28:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/19358">@Jiji-M-John</a></p>
<p dir="auto">It was my pleasure.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/56355</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/56355</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Fri, 31 Jul 2020 15:28:06 GMT</pubDate></item><item><title><![CDATA[Reply to Editing lyrics and chords text files on Fri, 31 Jul 2020 15:28:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/14479">@Ekopalypse</a> Oh my God, it worked! Never thought it was possible! You are a wizard, man! You’ve saved me hours and hours of labour. Thank you!  Thank you!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/56354</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/56354</guid><dc:creator><![CDATA[Jiji M. John]]></dc:creator><pubDate>Fri, 31 Jul 2020 15:28:07 GMT</pubDate></item><item><title><![CDATA[Reply to Editing lyrics and chords text files on Fri, 31 Jul 2020 15:17:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/19358">@Jiji-M-John</a></p>
<p dir="auto">Goto <strong>Plugins-&gt;PythonScript-&gt;New script</strong> and give it a meaningful name.<br />
A new document with that name opens.<br />
Copy the content of my script into it.<br />
Save it.<br />
Open a chord/lyrics document and goto <strong>Plugins-&gt;PythonScript-&gt;scripts</strong><br />
and click the previously saved script.</p>
<p dir="auto">If it doesn’t work, then please open <strong>Plugins-&gt;PythonScript-&gt;Show Console</strong> and check if there is an error message. If so, report it back here.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/56353</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/56353</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Fri, 31 Jul 2020 15:17:18 GMT</pubDate></item><item><title><![CDATA[Reply to Editing lyrics and chords text files on Fri, 31 Jul 2020 15:01:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/14479">@Ekopalypse</a> Sorry, but I am a newbie. How do you run that script in Notepad++? I have installed python and added the module to Notepad++ so that now it can run python scripts. But how do I use the script your mentioned to edit my text files? Please help. And thanks for showing me the script.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/56351</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/56351</guid><dc:creator><![CDATA[Jiji M. John]]></dc:creator><pubDate>Fri, 31 Jul 2020 15:01:03 GMT</pubDate></item><item><title><![CDATA[Reply to Editing lyrics and chords text files on Thu, 30 Jul 2020 17:47:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/19358">@Jiji-M-John</a></p>
<p dir="auto">Maybe <a href="https://github.com/Ekopalypse/NppPythonScripts/blob/master/misc/ReformatChordsAndLyrics.py" rel="nofollow ugc">this</a> does what you want.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/56332</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/56332</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Thu, 30 Jul 2020 17:47:32 GMT</pubDate></item><item><title><![CDATA[Reply to Editing lyrics and chords text files on Thu, 30 Jul 2020 11:04:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/3841">@PeterJones</a> Thanks for taking the time to reply and for the suggestions. I have searched in Google and have not found a suitable script or software which could do this sort of job. But I am sure there could be others in search of such a script. Okay, I’ll be patient and wait. Meanwhile, I could start editing my files line by line. (Where’s my magic wand?)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/56319</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/56319</guid><dc:creator><![CDATA[Jiji M. John]]></dc:creator><pubDate>Thu, 30 Jul 2020 11:04:04 GMT</pubDate></item><item><title><![CDATA[Reply to Editing lyrics and chords text files on Wed, 29 Jul 2020 17:21:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/19358">@Jiji-M-John</a> said in <a href="/post/56309">Editing lyrics and chords text files</a>:</p>
<blockquote>
<p dir="auto">Forgive my overthought, but I am new to this community. I have been using Notepad++ off and on, using Google to find the appropriate “formula”. Thanks for the response everyone. But how do I use this pseudocode?</p>
</blockquote>
<p dir="auto">The implication from my previous post is that, unless someone else can come up with the fragile regex I described, it cannot be done natively inside Notepad++.</p>
<p dir="auto">To use the pseudocode, you would pick a programming language, and translate the pseudocode into that language, and then run that program on the code, rather than trying to make the change inside Notepad++.  If you don’t have those skills, you will have to convince someone to write that code for you.</p>
<p dir="auto">This forum is not a code forum, and is not a code writing service, so it is not the best place to ask.  That said, this could be done in the one of the scripting plugins for Notepad++, which will use the active file in Notepad++ and make the changes.  Despite this not being a code-writing service, if it catches the interest of a regular here, someone might write it in one of the scripting plugins for Notepad++ (usually PythonScript) – but you’ll have to be patient, because it might not happen in one day.  (If I were to write it, it would be in Perl and use my module to drive Notepad++ from Perl – but it would be the most confusing solution for you, because you’d have to install Perl and the module yourself… and since you didn’t even recognize what to do with pseudocode, I am guessing that installing Perl and Perl modules would be a difficult task for you.  If someone did it in PythonScript, that would be less work for you.  If no one has chimed in within a few days, I might try to find time to write the code, but it won’t happen right away – and no guarantees it would happen at all.)</p>
<p dir="auto">While you’re waiting for someone else to chime in or to see if I can find the time, you might try looking for alternate solutions.  It would very much surprise me if there didn’t already exist guitar tablature software that could convert between the standard tabs you showed to something inline or other formats that you might like better – you might want to try a few free guitar tab apps and see if any would do what you like.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/56311</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/56311</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Wed, 29 Jul 2020 17:21:23 GMT</pubDate></item><item><title><![CDATA[Reply to Editing lyrics and chords text files on Wed, 29 Jul 2020 15:11:36 GMT]]></title><description><![CDATA[<p dir="auto">Forgive my overthought, but I am new to this community. I have been using Notepad++ off and on, using Google to find the appropriate “formula”. Thanks for the response everyone. But how do I use this pseudocode?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/56309</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/56309</guid><dc:creator><![CDATA[Jiji M. John]]></dc:creator><pubDate>Wed, 29 Jul 2020 15:11:36 GMT</pubDate></item><item><title><![CDATA[Reply to Editing lyrics and chords text files on Wed, 29 Jul 2020 13:03:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/19358">@Jiji-M-John</a> ,</p>
<p dir="auto">Because you did not use the forum’s formatting tools, and didn’t notice in the PREVIEW window while typing your post that whitespace was collapsed, we did <em>not</em> see a true indication of the data.  Fortunately, view-source showed that you had more spaces than the forum presents us.</p>
<p dir="auto">Here, I hit the <code>&lt;/&gt;</code> button on the toolbar just above the forum edit box, and pasted the text where it prompted:</p>
<pre><code>ORIGINAL:
A         D
Above all powers,
E         A
Above all kings,
D          E               A
Above all nature and all created things,
F#m        E               D
Above all wisdom and all the ways of man,
Bm            A                  C#
You were here before the world began.
</code></pre>
<p dir="auto">Notice how we can now see that the chords do (somewhat) align above the words where the chords change.  But I’m still not 100% sure, because maybe the forum stripped the leading spaces.  (That’s implied, because your rules said F#m should go before “wisdom”, but even in view-source, F#m appears to be at the start of the line.)  If you had used the forum’s formatting tools, you could have made this easier for us to understand.</p>
<p dir="auto">In a programming language, I would just track which column number a chord was in, and then insert that chord in the right place in the next line (I would work backwards in any given line, because otherwise position numbers change).</p>
<pre><code>pseudocode:
for each (chord-line, lyric-line) from a pair-of-lines:
    chord-line.chomp()
    lyric-line.chomp()
    for each char-pos from end(chord-line) back to start(chord-line):
        if start-of-chord (possibly compare to regex (?-i)([A-G]\S*):
            grab chord from regex match $1
            insert "[chord]" at lyric-line.position(char-pos)
    output modified lyric-line
</code></pre>
<p dir="auto">It might be possible to craft such a thing in regex in Notepad++, but it would be horribly complicated and unreadable, and probably very fragile (meaning a small change to the input would make the regex unusable for another file).  Personally, I wouldn’t trust such an expression if I were not the one who crafted it and I (thought) I understood its nuances and restrictions… and even then, I’d use it with a huge grain of salt.  I, personally, would take my pseudocode and implement it in the programming language of my choice (I’d say Perl, because text manipulation and regex are a particular forte of Perl’s).</p>
]]></description><link>https://community.notepad-plus-plus.org/post/56306</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/56306</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Wed, 29 Jul 2020 13:03:47 GMT</pubDate></item><item><title><![CDATA[Reply to Editing lyrics and chords text files on Wed, 29 Jul 2020 11:36:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/19358">@Jiji-M-John</a></p>
<p dir="auto">theoretically this example can be solved but this will not apply to the<br />
other text files which, I assume, contain other chords and lyrics.<br />
How should npp know in which bar the A major chord is and<br />
how the lyrics are sung along with it?<br />
How would you know that if you didn’t know the song?</p>
<p dir="auto">For example:</p>
<pre><code class="language-z">A D
Above all powers,
</code></pre>
<p dir="auto">could be interpreted in different ways</p>
<pre><code class="language-z">A         D
Above all powers,

A      D
Above all powers,

A               D
Above all powers,

</code></pre>
<p dir="auto">As long as there are no beat information in the lyrics and chords this is difficult/impossible to realize in general.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/56304</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/56304</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Wed, 29 Jul 2020 11:36:19 GMT</pubDate></item></channel></rss>