Gena spotted this command in a file I posted a few days ago and I thought I should post a worked example of one of its uses, there may be others but this shows how I use it.
If a piece is in 3/4, abc2midi will automatically assign an emphasis in the first beat as in a viennese waltz Um Pa Pa. What if it's a 3/4 mazurka and you want the emphasis on the second beat? That's where MIDI beatstring comes in, assign the emphasis using p (piano) or f (forte) thus:
%%MIDI beatstring pfp
Try this out.
X:1
T:Mazurka 48
C:Frédéric Paris
M:3/4
L:1/8
%%titlefont Helvetica, 22
%%subtitlefont Helvetica,16
%%partsfont Arial, 20
%%partsbox
%%barnumbers 1
%%MIDI beatstring pfp
Q:1/4=140
K:G
P:A
|:DG|B2 AB cA|c2B2 AG|F2 FG AF|B2G2 DG|A2 AB cA|
c2B2 AG|F2 FG AF|G4::[P:B]AB|c2 cB AG|F2 FE DE|
F2 FG Ac|B2G2 AB|c2 cB AG|F2 FE DE|F2 FG AF|G4:|