lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reorganizing the contents of the \paper block


From: Trevor Bača
Subject: Re: Reorganizing the contents of the \paper block
Date: Thu, 8 Feb 2007 13:33:53 -0600

A setting in the Score \with block?

\new Score \with { output = midi } { ... }

\new Score \with { output = pdf } { ... }


On 2/8/07, Kress, Stephen <address@hidden> wrote:




It's a nice start.  How would you specify what you wanted for output (i.e.,
PDF (ps) vs. MIDI)?  It might look a little weird if you needed a Book for
MIDI output...

 Stephen

 -----Original Message-----
 From: Trevor Baca [mailto:address@hidden
 Sent: Thu 2/8/2007 12:20 PM
 To: Han-Wen Nienhuys
 Cc: Kress, Stephen; lilypond-devel
 Subject: Re: Reorganizing the contents of the \paper block

 On 2/8/07, Han-Wen Nienhuys <address@hidden> wrote:
 >
 > [-user trimmed]
 >
 > Trevor Baca escreveu:

 > > Wow. I really like this. Anyone else?
 >
 > I don't.
 >
 >
 > * Have a look at input/regression/backend-svg.ly
 > How do I do this with a tightly defined structure?

 %%% BEGIN %%%

 \new File \with {
    \sourcefilename "backend-svg.ly"
    \sourcefileline 0
    #(ly:set-option 'backend 'svg)
    #(set! output-count 1)
    \include "typography-demo.ly"
    \version "2.11.16"
    #(define outname (ly:parser-output-name parser))
    #(ly:set-option 'backend 'eps)
    #(display "Invoking inkscape...\n")
    #(system (format #f "LD_LIBRARY_PATH= inkscape -T -E ~a-1.eps
 ~a-1.svg" outname outname))
    #(set! output-count 0)
    #(set-default-paper-size "a5") } {

   \new Book \with {
     texidoc = "SVG output, rendered through inkscape."
     title = "SVG" } {

         \new Score {
           \lyrics {
             \markup {
                 \epsfile #X #30.0 #(format #f "~a-1.eps" outname)
             }
             x x x
           }
         }
       }
    }
 }

 %%% END %%%

 ?

 All settings (including Scheme commands) are still available, just put
 in a *named place* in the input file, rather than floating freely in
 space ...


  > * You're mixing up the Music type (which has length and
 > pitch) with various others which don't.  Looks nice in an example
 > like you gave, but is semantically clear as mud.
 >
 > I think the discussion would be served if it starts
 > with how stuff works on the inside now, and how that
 > can be improved.  Different and more logical syntax will
 > follow as a side effect.

 That's a good place for Erik to lead, probably, since he has a good
 handle on the internals.



 --
 Trevor Baca
 address@hidden




2007-02-08, 12:59:45
 The information contained in this e-mail message and any attachments may be
privileged and confidential. If the reader of this message is not the
intended recipient or an agent responsible for delivering it to the intended
recipient, you are hereby notified that any review, dissemination,
distribution or copying of this communication is strictly prohibited. If you
have received this communication in error, please notify the sender
immediately by replying to this e-mail and delete the message and any
attachments from your computer.



--
Trevor Bača
address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]