Alexandre Araujo Moreira <alexandr...@gmail.com> writes: > Hello, everyone. > > I've been playing with lilypond to write simple, one-instrument, > scores for learning for a few weeks now, and figured I could automate > some of the tedious layout configuration I apply to all my scores with > a simple scheme function. Unfortunately things aren't going very well. > Let me describe my problem. > > I wrote a scheme function with (define-scheme-function), with the > following code: > > \version "2.16.2" > simpleMusic = > #(define-scheme-function (parser location melody) (ly:music?) > #{ > \score { > $melody > \layout {} > } > #}) > \simpleMusic { c1 } > > Is there anyway I can write something similar to simpleMusic (in > usage), where it'll automatically generate the pdf given the notes?
\version "2.16.2" simpleMusic = #(define-scheme-function (parser location melody) (ly:music?) #{ \score { $melody \layout {} } #}) \score { \simpleMusic { c1 } } Probably more verbose than you care for, but at least you can get midi and layout blocks in which is more than you can do using a music function. -- David Kastrup _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user