(value.repeat.jjtGetFirstToken().image.contains("tremolo")||
(value.repeat.jjtGetFirstToken().image.contains("unfold")))
)?true:false;
if ((allwaysExpand||expandRepeats) && value.repeat != null && !weAreInRepeat) {
//\repeat volta 2
ASTBlock block = (ASTBlock) value.repeat.jjtGetChild(0);
int repeats = Integer.parseInt(value.repeat.jjtGetFirstToken().image.split(" ")[2]);
for (int r = 0; r < repeats; r++) {
expandRepeats(pos, block.getHighestBeatTime(), addBeatTime, true);
if (r + 1 != repeats) {
addBeatTime += block.getHighestBeatTime() - block.getBeattime();
}
}
pos = block.getHighestBeatTime();
value = beattimeToPositions.get(pos);
//2. repeat schließt sich unmittelbar an
if(value.repeat!=null){
weAreInRepeat=false;
continue;