Modified:
trunk/examples/explicit/explicit.c
trunk/test/a9.txt
Log:
Modified: trunk/examples/explicit/explicit.c
==============================================================================
--- trunk/examples/explicit/explicit.c (original)
+++ trunk/examples/explicit/explicit.c Fri Feb 27 14:12:51 2009
@@ -142,12 +142,19 @@
case T_ENDING:
if (abcBarEnding(scn) == 1) {
- endingnote = lastnote;
- endingbend = lastbend;
+ if (tie == 0)
+ endingnote = -1;
+ else {
+ endingnote = lastnote;
+ endingbend = lastbend;
+ }
}
else {
- lastnote = endingnote;
- lastbend = endingbend;
+ if (endingnote != -1) {
+ lastnote = endingnote;
+ lastbend = endingbend;
+ tie = 1;
+ }
}
printtok(scn);
break;
Modified: trunk/test/a9.txt
==============================================================================
--- trunk/test/a9.txt (original)
+++ trunk/test/a9.txt Fri Feb 27 14:12:51 2009
@@ -12,3 +12,5 @@
K:Cm
^F- |: FGEC | A2G=B- |1 Bcde | cz ^F2- :|2 Bcde | c3 z |]
+^F- |: FGEC | A2G=B- |1 Bcde | cz ^F2 :|2 Bcde | c3 z :|3 F |]
+^F- |: FGEC | A2G=B |1 Bcde | cz ^F2 :|2 Bcde | c3 z :|3 F |]