abc ABC_line

Default Command line Scope Available in
nonenoneimmediateabcm2ps >= 8.6.0
abc2svg

Define a ABC line in a pseudo-comment.

This command combined with %%ss-pref permits to generate conditional ABC lines.

Example:
 X:1
 T:Two voices tune
 %Sabc T:(soprano part)
 %Aabc T:(alto part)
 M:C
 L:1/4
 %%staves (S A)
 %Sstaves S
 %Astaves A
 K:C
 V:S
 GGAB | c4 |
 V:A
 GFED | C4 |
 %%abc V:S
 %Sabc V:S
 %Aabc V:A
 w:Here_ are the words

full score

%abc-2.1 %%pagewidth 8cm %%singleline 1 %%leftmargin 20 %%rightmargin 20 %%bgcolor white X:1 T:Two voices tune %Sabc T:(soprano part) %Aabc T:(alto part) M:C L:1/4 %%staves (S A) %Sstaves S %Astaves A K:C V:S GGAB | c4 | V:A GFED | C4 | %%abc V:S %Sabc V:S %Aabc V:A w:Here_ are the words

with %%ss-pref S

X:1 %%ss-pref S T:Two voices tune %Sabc T:(soprano part) %Aabc T:(alto part) M:C L:1/4 %%staves (S A) %Sstaves S %Astaves A K:C V:S GGAB | c4 | V:A GFED | C4 | %%abc V:S %Sabc V:S %Aabc V:A w:Here_ are the words

with %%ss-pref A

X:1 %Sss-pref A T:Two voices tune %Sabc T:(soprano part) %Aabc T:(alto part) M:C L:1/4 %%staves (S A) %Sstaves S %Astaves A K:C V:S GGAB | c4 | V:A GFED | C4 | %%abc V:S %Sabc V:S %Aabc V:A w:Here_ are the words