File: embedded-postscript.ly

package info (click to toggle)
lilypond 2.2.6-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 11,260 kB
  • ctags: 7,622
  • sloc: cpp: 47,787; lisp: 11,217; python: 11,203; sh: 3,290; yacc: 2,011; lex: 831; perl: 373; ansic: 309; makefile: 132; csh: 8
file content (28 lines) | stat: -rw-r--r-- 532 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28

\version "2.2.0"
\header {
  texidoc = "@cindex Embedded Postscript
By inserting the @TeX{} command \embeddedps, you can
insert postscript directly into the output.

  "
}


%
%TODO: make print-function to do this. 
% 

\score {
  \notes \relative c'' {
    a-"\\embeddedps{3 4 moveto 5 3 rlineto stroke}"
    -"\\embeddedps{ [ 0 1 ] 0 setdash 3 5 moveto 5 -3 rlineto stroke}"
    b-"\\embeddedps{3 4 moveto 0 0 1 2 8 4 20 3.5 rcurveto stroke}"
    s2
    a'1
  }
  \paper { linewidth = 70 * \staffspace
%	raggedright = ##t 
	}
}