Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
examples:graphics_files_as_marks [2016/10/28 16:27]
michael
examples:graphics_files_as_marks [2019/02/12 13:31] (current)
Line 1: Line 1:
 ======graphics files as marks====== ======graphics files as marks======
-If you're generating scores with Lilypond you can [[http://​michael-edwards.org/​sc/​manual/​marks.html#​lp-arbitrary|add arbitrary Lilypond code]] to any event via //​add-mark//​ and related methods. ​Sometimes no existing mark will do the trick so you need to create your own graphics file and attach that as mark. [[http://​michael-edwards.org/​sc/​manual/​marks.html#​lp-graphics|Several such graphics files]] are already available as mark extensions to Lilypond. If you want to see how those new marks are created and linked to the graphics files, see the slippery chicken source code file lilypond.ly+If you're generating scores with Lilypond you can [[http://​michael-edwards.org/​sc/​manual/​marks.html#​lp-arbitrary|add arbitrary Lilypond code]] to an event via //​add-mark//​ and related methods. ​This is useful for all kinds of situations but especially when it comes to adding or modifying marks in score
  
-If you want to attach ​to note/event the Lilypond code to create ​a mark out of one of your own postscript graphics, try modifying the following ​example:+Sometimes no existing mark expresses what you need so the best thing to do is create your own graphics file and attach ​that as mark, using [[http://​lilypond.org/​doc/​v2.19/​Documentation/​notation/​graphic|Lilypond code]] via //​text ​mark//.* An example ​follows:
  
 <​code>​ <​code>​
Line 22: Line 22:
   (lp-display mini))   (lp-display mini))
 </​code>​ </​code>​
 +
 +In order for this to work, the graphics file //​blah.eps//​ will of course need to be in a place Lilypond can find it, e.g. in the same directory as the files generated by //​lp-display//​.
 +
 +* [[http://​michael-edwards.org/​sc/​manual/​marks.html#​lp-graphics|Several such graphics files]] are already available as mark extensions to Lilypond. If you want to see how those new marks are created and linked to the graphics files, see the slippery chicken source code file //​lilypond.ly//​