Dtab V1.03c -Beta 3 - Line Repeats Been picking through the tab importer this afternoon, the importer is built from a series of passes over a drum tab document. Most of the grunt work is done in the second pass, where a lot of the structure is picked up. It's interesting the parallels between writing the compiler parser (like in PLayBASIC) and drum tab parser of all things. Where there's an order of operations the parser follows. Changes to the order can and have unforeseen effects, where songs that would import correctly previously, would cease to work at all.
Today, I've been looking to include support for 'entire row repeats' into the parser. Looked at this last time, but the implementation hit a logical snag.. Had lot of time to think about alternative methods since then. The original solution would break when bars within the row had repeats in them also, it was trying to do everything in the one pass. To get around this has meant adding another pre-parse over the staff lines. Gets rid of the logical confusion in the parser, for now at least.
Anyway, so long story short, the importer can now parse rows where a repeat line the following it (like bellow). It only supports a few multiplier character variations at this time, such as
x or
X and
* for the repeat multiplier. It also expects the multiplier to be on the same line. Will add support for multi line later on tonight/tomorrow.
The following represents 18bars.
|--- repeat x2 --|
C |----------------|----------------|----------------|----------------|
HH |xxxxxxxxxxxxxxxx|xxxxxxxxxxxxxxxx|xxxxxxxxxxxxxxxx|xxxxxxxxxxxxxxxx| repeat * 2
SN |----------------|------------o---|----------------|----------------|
BD |o---o---o---o---|o---o---o-o-o---|o---o---o---o---|o---o---o---o---|
Download Download DTAB V1.03 Beta 3 (login required)