Percussion beaters: Difference between revisions

Import snippet from LSR
 
m Adjust symbol dimensions to avoid cropping
 
(3 intermediate revisions by 2 users 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.


<lilypond version="2.24.0">
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).
stick = \markup {
 
  \with-dimensions #'(0 . 5) #'(0 . 5)
<lilypond version="2.24">
stick = \markup \with-dimensions #'(0.80 . 5.2) #'(0.85 . 5.2) {
   \postscript "
   \postscript "
     0 6 translate
     0 6 translate
Line 150: Line 151:
[[Category:Percussion]]
[[Category:Percussion]]
[[Category:Included in the official documentation]]
[[Category:Included in the official documentation]]
[[Category:Snippet]]