Maybe you can use the "uptext" feature of M-Tx, a preprocessor for PMX.
See section "3.2 Expression marks and other annotations" in https://icking-music-archive.org/software/mtx/mtxdoc.pdf ------------------------------- TeX-music@tug.org mailing list If you want to unsubscribe or look at the archives, go to https://tug.org/mailman/listinfo/tex-music