Hello.
Remo D. wrote:
[...]
There is one thing that I'm not sure about. Should I support the 1.6
syntax for continution? Supporting both is not an easy task and I
would prefer not doing it.
[...]
Does anybody thinks that supporting al this variations on continuation
is absolutely crucial? I would prefer to write a special parser to
convert the file from an unsupported syntax to a supported one rather
then include both into ABCp, but I dont' wont to create some major
incompatibility!
It seems that you coded a line continuation similar to those of bash or
C, that is, the continuation is only related to the source code, to fit
it on the screen etc.:
asdf \
asdf
is equivalent to:
asdf asdf
In ABC, the `\' is often (mainly?) used refering to the *printed* score,
i.e. the layout (where avoid a system break on the page), to make more
readable associated lines, like w:ords or d:ecos or several bar-aligned
V:oices (coral music).
Remembering M-Tx and PMX manuals, music notation is not linear (like
text): parallel streams are read simultaneously. That is important for
poliphonic music notation. So:
[V:1] abcde \
[V:2] ABCDE \
[V:1] cdedc
[V:2] CDEDC
is equivalent to:
[V:1] abcde cdedc
[V:2] ABCDE CDEDC
but not to:
[V:1] abcde [V:2] ABCDE
[V:1] etc.
***
I think these line continuations are useful:
a)
V:1
c d g e/d/ c | A c d e2 |\ % I'm not sure about comments...
V:2
c G d cA | z A G c2 |
V:3
C,G, | C,4 z|
V:1
[etc.]
b)
CDCG | EDCA, |\
w: d r d s | m r d l,
DCGE | DA,CD | C4 |]
w: r d s m | r l, d r | d
Line continuations (\) and line breaks (!) are very useful to control
the number of bars per system, specially where lyrics are used. I write
lyrics verse after verse (upbeats, repeat/measure bars, etc. adjusted
with \ and !), so the layout should be chosen after coding.
Another case (rare, though) is when the meter is changed very often. I
have a piece with meter changes in nearly each bar, so I used the format
below (*only 1 measure per line!*). But I think that can work in your
parser, because there is just 1 voice and the meter is changed inside
brackets.
% c.1-3
[M:10/8]{=c}!f!!<(!(_e3=d!<)!=e2!>(!_B2!>)!=d2)|\
[M:4/8]!mf!(6:4(^f_e !>(!=d=e-) e!>)!z|\
[M:6/8]!f!(=f2=B !>(!_e=d!>)!^c)|
% c.4-6
[M:8/8]!mf!(,(3=e=c^F (3=A^G)(^A (3=B=F=A- (3!>(!-A_A=G)!>)!|\
[M:2/8](3::2{=F}!p!^c2z|\
[M:10/8]!f!!<(!(=g3^f!<)!^g2!>(!=f=e^f2)!>)!|
Regards.
Hudson
To subscribe/unsubscribe, point your browser to: http://www.tullochgorm.com/lists.html