Some questions about new lines

For discussions about the abc notation standard
sema
Posts: 4
Joined: Mon Jun 04, 2012 5:02 pm
Humanity check: a real person
How many letters in "spam" (4)?: 3
Location: California
Contact:

Some questions about new lines

Postby sema » Wed Jun 06, 2012 6:23 pm

1) is this syntax legal:
... ^\
C % - means to be C#

2) how should I handle new lines inside the quoted string?

Thanks!

sema
Posts: 4
Joined: Mon Jun 04, 2012 5:02 pm
Humanity check: a real person
How many letters in "spam" (4)?: 3
Location: California
Contact:

Re: Some questions about new lines

Postby sema » Tue Jun 12, 2012 6:13 pm

3) same question about decorations:
abc abc !acc\
ent! abc abc

4) and inline instructions:
abc abc [K:\
Cm] abc abc

- which of these syntaxes is legal and which is not?

laughingman182
Posts: 18
Joined: Fri Oct 21, 2011 9:06 am
Humanity check: a real person
How many letters in "spam" (4)?: 3
Contact:

Re: Some questions about new lines

Postby laughingman182 » Wed Jun 27, 2012 5:55 am

sema wrote:3) same question about decorations:
abc abc !acc\
ent! abc abc

4) and inline instructions:
abc abc [K:\
Cm] abc abc

- which of these syntaxes is legal and which is not?

The first one is definitively legal. As for the second, it LOOKS legal; Have you tested it in with abcm2ps?
- Lee S.

laughingman182
Posts: 18
Joined: Fri Oct 21, 2011 9:06 am
Humanity check: a real person
How many letters in "spam" (4)?: 3
Contact:

Re: Some questions about new lines

Postby laughingman182 » Wed Jun 27, 2012 6:23 am

laughingman182 wrote:
sema wrote:3) same question about decorations:
abc abc !acc\
ent! abc abc

4) and inline instructions:
abc abc [K:\
Cm] abc abc

- which of these syntaxes is legal and which is not?

The first one is definitively legal. As for the second, it LOOKS legal; Have you tested it in with abcm2ps?

I spoke too soon. abcm2ps does show some error lines, but the music turned out generally as stated. The inline field did NOT process correctly, though. I've attached the code and results:
Attachments
test.zip
(11.76 KiB) Downloaded 161 times
- Lee S.

sema
Posts: 4
Joined: Mon Jun 04, 2012 5:02 pm
Humanity check: a real person
How many letters in "spam" (4)?: 3
Location: California
Contact:

Re: Some questions about new lines

Postby sema » Wed Jun 27, 2012 7:31 pm

Thank you for the testing, laughingman!
It looks like abcm2ps ignores all unfinished entities at the end of the line. - Pretty much what I did in mine implementation...
But I guess the documentation should be more specific about that.

Jef Moine
Posts: 7
Joined: Sat Jun 04, 2011 7:06 am
Humanity check: a real person
How many letters in "spam" (4)?: 3

Re: Some questions about new lines

Postby Jef Moine » Mon Jul 16, 2012 6:29 pm

abcm2ps follows the various versions of the ABC standards.

By default, (no %%abc-version or no %abc-xx at start of file), it follows the 1.7.3 standard for which
the backslash at end of a music line means "don't start a new staff system". It is ignored in other lines
(information fields or pseudo-comments).

If a ABC file starts with "%abc-2.0" or contains a line "abc-version 2.0", the backslash at end of line
(possibly followed by a comment) makes the following line to be appended to the current line.
This treatment occurs as the first scanning step, so any line is concerned.

If a ABC file starts with "%abc-2.1" or contains a line "abc-version 2.1", the backslash at end of
line is treated the same way as in the 1.7.3 standard. For continuation of information field lines,
a new syntax "+:" is defined. This syntax is not yet fully handled by abcm2ps.


Return to “Standard”

Who is online

Users browsing this forum: No registered users and 0 guests

cron