Re: Generate pdf from scheme function

2013-03-18 Thread Xavier Scheuer
On 18 March 2013 19:49, David Kastrup wrote: > > \header inside of \score is not possible as far as I remember. You need > to use \paper instead. \header can only be used at top level or inside > of \book. \header blocks may be placed in a \score block, but only after the music expression, cf.

Re: Generate pdf from scheme function

2013-03-18 Thread David Kastrup
Alexandre Araujo Moreira writes: > Thanks for everything, guys. I just tested what David said on 2.17 and > it worked for the case I described here. Problem is, when I try to add > a \header block inside it I start getting errors again. \header inside of \score is not possible as far as I rememb

Re: Generate pdf from scheme function

2013-03-18 Thread Alexandre Araujo Moreira
Thanks for everything, guys. I just tested what David said on 2.17 and it worked for the case I described here. Problem is, when I try to add a \header block inside it I start getting errors again. Considering how many problems I've faced so far regarding this, I feel I'm trying to push the scheme-

Re: Generate pdf from scheme function

2013-03-18 Thread David Kastrup
Alexandre Araujo Moreira writes: >> Alexandre Araujo Moreira writes: >> >> > \version "2.16.2" >> > simpleMusic = >> > #(define-scheme-function (parser location melody) (ly:music?) >> > #{ >> > \score { >> > $melody >> > \layout {} >> > } >> > #}

Re: Generate pdf from scheme function

2013-03-17 Thread Jay Anderson
On Sun, Mar 17, 2013 at 3:57 PM, Alexandre Araujo Moreira wrote: > Is there anyway I can write something similar to simpleMusic (in usage), > where it'll automatically generate the pdf given the notes? Later I plan to > add other outputs (controlled by cmdline parameters), so having this kind of >

Re: Generate pdf from scheme function

2013-03-17 Thread Alexandre Araujo Moreira
On Sun, Mar 17, 2013 at 10:01 PM, David Kastrup wrote: > Alexandre Araujo Moreira writes: > > > \version "2.16.2" > > simpleMusic = > > #(define-scheme-function (parser location melody) (ly:music?) > > #{ > > \score { > > $melody > > \layout {} > > } > > #}) > > \simpleMusic { c1 } > > > > Is th

Re: Generate pdf from scheme function

2013-03-17 Thread David Kastrup
Alexandre Araujo Moreira 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. Unf

Generate pdf from scheme function

2013-03-17 Thread Alexandre Araujo Moreira
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