public int voiceLength() {
		int i = 0;
		for (BodyOrRepeatAST bor : list) {
			if (bor instanceof RepeatAST) {
				if (((RepeatAST) bor).getFirstEnd() != null) {
					i++;
					if (((RepeatAST) bor).getSecondEnd() != null) {
						i++;
					}
				}
			}
			i++;
		}
		return i;
	}