Re: Tuplets, one-line staves etc. in lilypond-book

2010-03-26 Thread Karl Hammar
Siska Ádám:
...
 However, I still don't know about the tuplets. Is there really no
 way to have tuplets in a lilypond-book excerpt? That sounds weird to
 me. Anyway, if it can't be solved in a standard way, does anybody have
 an idea for a workaround?
...

You can make an eps/pdf/png/svg and include it into the latex side.
Something like:

$ cat file.ly
% this seems to give me cropped (without extra whitespace) output
(define default-toplevel-book-handler print-book-with-defaults-as-systems)
% replace the note head with to
#(define (nh-to grob grob-origin context)
  (let*
   ((ifs (ly:grob-interfaces grob)))
   (if (memq 'note-head-interface ifs)
(begin
 (ly:grob-set-property! grob 'stencil
  (grob-interpret-markup grob (make-whiteout-markup (make-lower-markup 0.5 
to)))
)
Ma = \relative e' {
  \time 3/1
  f1
  \applyOutput #'Voice #nh-to f
  fis
  \bar |.
}
\score {
  \new Staff \context Voice = Va { \Ma }
  \layout {
\context {
  \Staff
  \remove Time_signature_engraver
}
  }
}
$ lilypond --ps -dbackend=eps file.ly
...
$ cat txt.lytex
...
upper limit is
\raisebox{-0.8ex}{\includegraphics[height=3ex]{file.eps}},
...
$

A fuller example is available at: git-clone git://turkos.aspodata.se/musik.git

Regards,
/Karl




___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Tuplets, one-line staves etc. in lilypond-book

2010-03-25 Thread Siska Ádám
I found that including music signs without the staff (in other words, having 
music glyphs freely in the text) is something more solvable from the LaTeX side 
than the lilypond-book way. However, I still don't know about the tuplets. Is 
there really no way to have tuplets in a lilypond-book excerpt? That sounds 
weird to me. Anyway, if it can't be solved in a standard way, does anybody have 
an idea for a workaround?


Thank you,
Adam


On 2010.03.24., at 1:58, Siska Ádám wrote:

 Hello Members,
 
 
 I am writing a score with LaTeX  Lilypond-book where I need a lot of inline 
 excerpts in the text. As I noticed, using the Lilypond environment doesn't 
 let me inline citations of score fragments as it always creates a new 
 paragraph for the music, therefore I can only live with the \lilypond 
 command. However, since { and } is not supported within this command, there 
 are a couple of things I can't really solve. Here's a list of the things I 
 couldn't find out up to now. Please, if anyone of you had a suggestion, don't 
 hesitate to tell me. Thanks!
 
 - Creating tuplets. Using the \times command won't put a bracket over my 
 tuplets, as it applies only to the first note.
 - Removing/modifying the staff. At a point I need to include a few rythm 
 patterns for which I don't need a 5-line stave. I either need an one-line 
 stave, or (which could be even better), I needed no stave at all, just the 
 rythms.
 - Including music signs without a staff. I can't find out how could I put 
 (for example) a \pp sign in my text without getting a stave.
 
 
 Thank you all for your kind help,
 Ádám
 
 
 
 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 http://lists.gnu.org/mailman/listinfo/lilypond-user



___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Tuplets, one-line staves etc. in lilypond-book

2010-03-23 Thread Siska Ádám
Hello Members,


I am writing a score with LaTeX  Lilypond-book where I need a lot of inline 
excerpts in the text. As I noticed, using the Lilypond environment doesn't let 
me inline citations of score fragments as it always creates a new paragraph for 
the music, therefore I can only live with the \lilypond command. However, since 
{ and } is not supported within this command, there are a couple of things I 
can't really solve. Here's a list of the things I couldn't find out up to now. 
Please, if anyone of you had a suggestion, don't hesitate to tell me. Thanks!

- Creating tuplets. Using the \times command won't put a bracket over my 
tuplets, as it applies only to the first note.
- Removing/modifying the staff. At a point I need to include a few rythm 
patterns for which I don't need a 5-line stave. I either need an one-line 
stave, or (which could be even better), I needed no stave at all, just the 
rythms.
- Including music signs without a staff. I can't find out how could I put (for 
example) a \pp sign in my text without getting a stave.


Thank you all for your kind help,
Ádám



___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user