lewdlime / abcm2ps

abcm2ps is a command line program which converts ABC to music sheet in PostScript or SVG format. It is an extension of abc2ps which may handle many voices per staff. abcm2ps is Copyright © 2014-2016 Jean-Francois Moine.
http://moinejf.free.fr/
GNU General Public License v3.0
80 stars 31 forks source link

many «error: Not a note» #114

Closed peutch closed 9 months ago

peutch commented 9 months ago

Hi,

Using abcm2ps version 8.14.14 with the following input file (test.abc):

X: 1
M: 3/4
K: C
[|:c2 B3 A|A2 G3 F|F2 E2 F2[G6|G2 F2 E2|1,3,5 E4 D2|C6|(G2 A2 B2):|]

which is a line extracted from a long score file.

I am getting this:

# abcm2ps test.abc
abcm2ps-8.14.14 (2022-12-19)
File test.abc
test.abc:4:30: error: Not a note
   4 [|:c2 B3 A|A2 G3 F|F2 E2 F2[G6|G2 F2 E2|1,3,5 E4 D2|C6|(G2 A2 B2):|]
                                   ^
test.abc:4:33: error: Not a note
   4 [|:c2 B3 A|A2 G3 F|F2 E2 F2[G6|G2 F2 E2|1,3,5 E4 D2|C6|(G2 A2 B2):|]
                                      ^
test.abc:4:36: error: Not a note
   4 [|:c2 B3 A|A2 G3 F|F2 E2 F2[G6|G2 F2 E2|1,3,5 E4 D2|C6|(G2 A2 B2):|]
                                         ^
test.abc:4:39: error: Not a note
   4 [|:c2 B3 A|A2 G3 F|F2 E2 F2[G6|G2 F2 E2|1,3,5 E4 D2|C6|(G2 A2 B2):|]
                                            ^
test.abc:4:41: error: Not a note
   4 [|:c2 B3 A|A2 G3 F|F2 E2 F2[G6|G2 F2 E2|1,3,5 E4 D2|C6|(G2 A2 B2):|]
                                              ^
test.abc:4:43: error: Not a note
   4 [|:c2 B3 A|A2 G3 F|F2 E2 F2[G6|G2 F2 E2|1,3,5 E4 D2|C6|(G2 A2 B2):|]
                                                ^
test.abc:4:45: error: Not a note
   4 [|:c2 B3 A|A2 G3 F|F2 E2 F2[G6|G2 F2 E2|1,3,5 E4 D2|C6|(G2 A2 B2):|]
                                                  ^
test.abc:4:48: error: Not a note
   4 [|:c2 B3 A|A2 G3 F|F2 E2 F2[G6|G2 F2 E2|1,3,5 E4 D2|C6|(G2 A2 B2):|]
                                                     ^
test.abc:4:51: error: Not a note
   4 [|:c2 B3 A|A2 G3 F|F2 E2 F2[G6|G2 F2 E2|1,3,5 E4 D2|C6|(G2 A2 B2):|]
                                                        ^
test.abc:4:54: error: Not a note
   4 [|:c2 B3 A|A2 G3 F|F2 E2 F2[G6|G2 F2 E2|1,3,5 E4 D2|C6|(G2 A2 B2):|]
                                                           ^
test.abc:4:58: error: Too many notes in chord
   4 [|:c2 B3 A|A2 G3 F|F2 E2 F2[G6|G2 F2 E2|1,3,5 E4 D2|C6|(G2 A2 B2):|]
                                                               ^
test.abc:4:58: error: Not a note
   4 [|:c2 B3 A|A2 G3 F|F2 E2 F2[G6|G2 F2 E2|1,3,5 E4 D2|C6|(G2 A2 B2):|]
                                                               ^
test.abc:4:61: error: Too many notes in chord
   4 [|:c2 B3 A|A2 G3 F|F2 E2 F2[G6|G2 F2 E2|1,3,5 E4 D2|C6|(G2 A2 B2):|]
                                                                  ^
test.abc:4:61: error: Not a note
   4 [|:c2 B3 A|A2 G3 F|F2 E2 F2[G6|G2 F2 E2|1,3,5 E4 D2|C6|(G2 A2 B2):|]
                                                                  ^
test.abc:4:65: error: Too many notes in chord
   4 [|:c2 B3 A|A2 G3 F|F2 E2 F2[G6|G2 F2 E2|1,3,5 E4 D2|C6|(G2 A2 B2):|]
                                                                      ^
test.abc:4:65: error: Not a note
   4 [|:c2 B3 A|A2 G3 F|F2 E2 F2[G6|G2 F2 E2|1,3,5 E4 D2|C6|(G2 A2 B2):|]
                                                                      ^
test.abc:4:66: error: Not a note
   4 [|:c2 B3 A|A2 G3 F|F2 E2 F2[G6|G2 F2 E2|1,3,5 E4 D2|C6|(G2 A2 B2):|]
                                                                       ^
Output written on Out.ps (1 page, 1 title, 20195 bytes)

Am I doing it wrong? a bug?

Thanks, Patrice

hkiel commented 9 months ago

With [G6 you start a chord. If you want the bracket to be a thick bar then you should type [|G6.

peutch commented 9 months ago

Sure my eyes was probably tired and the typo is exactly there: it should have been |G6 and not [G6, many thanks! I was so surprised by the abcm2ps cascade output that I missed that point. :-/ I close this then. Thanks again.