Percussion beaters: Difference between revisions

No edit summary
m Adjust symbol dimensions to avoid cropping
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
Graphic symbols for percussion instruments are not natively supported; however it is possible to include such symbols, either as an external EPS file or as embedded PostScript code inside a markup, as demonstrated in this example.
Graphic symbols for percussion instruments are not natively supported; however it is possible to include such symbols, either as an external EPS file or as embedded PostScript code inside a markup, as demonstrated in this example.
For technical reasons it is not possible to correctly display this snippet in the Wiki (it uses the SVG backend of LilyPond, which doesn't support PostScript).


<lilypond version="2.24">
<lilypond version="2.24">
stick = \markup {
stick = \markup \with-dimensions #'(0.80 . 5.2) #'(0.85 . 5.2) {
  \with-dimensions #'(0 . 5) #'(0 . 5)
   \postscript "
   \postscript "
     0 6 translate
     0 6 translate
Line 149: Line 150:


[[Category:Percussion]]
[[Category:Percussion]]
[[Category:Included in the official documentation]][[Category:Snippet]]
[[Category:Included in the official documentation]]
[[Category:Snippet]]