1
General Discussion / Nwctxt to Harmonica Tab
The way it works is you start with an NWC2 file with a single staff of single melody notes in the key of C. Export the file to <tmp.nwctxt> and run the conversion program. This produces the file <tab.txt> that consists of a single line of text containing the harp tab. This text can be used as is if you know the melody, but it is best copied and inserted into the original NWC2 file as a lyric line. Being in the key of C is not as restrictive as it sounds. The diatonic harmonica can be treated as a transposing instrument, and a player typically changes keys by changing harps. The tab remains the same for all keys. (For harp players only: This is a 1st position discussion.)
Now, I would be surprised if more than three people on this forum would find this program useful. The intent of posting it is not necessarily to provide something useful. Rather, this is intended to provide a small example of the sort of thing that can be done now that Eric has made nwctxt available. THANK YOU ERIC! And it is also wonderful that you allow the first character in a lyric word to be a hyphen, as opposed to treating it as a separator. That turned out to be a stroke of good fortune for me.
I am not a Python programmer, so if my programming style offends a real Python programmer, ‘scuse me… :-) The program has not been exhaustively tested, but works correctly for a number of cases that I have tried. And if you don’t like Python, I also have versions in Perl, Ruby, and Lua… I am evaluating some of the scripting programs to determine what to use for a more ambitious project that I have in mind. But that is for a future discussion.