Pedal problem
> not top-posting Hello, I'm trying to typeset two staves with different rhythms and pedalling that starts/stops on the notes in the top staff, but appears below the second staff. I tried the following: \new PianoStaff << \new Staff { c'4 c'4 c'4 c'4 } \new Staff << \set Staff.pedalSustainStyle = #'bracket \times 4/6 { c'4 c'4 c'4 c'4 c'4 c'4 } { s4\sustainOn s4\sustainOff\sustainOn s4\sustainOff\sustainOn s4\sustainOff\sustainOn } >> >> However, the pedal bracket appears disjointed and uneven. Is there any way I can fix this? (I'm using 2.13.0) Thanks in advance. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
"Two simultaneous events" warnings
Hi, I'm trying to write a music function that does certain parts of \partcombine's job (mainly to remove duplicate dynamics and text). All works as expected, except that when running lilypond I get "Two simultaneous mark events" warnings for each staff other than the first. Could anyone tell me a general reason that this might be happening? Thanks in advance. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Include guards
Hi, Is there any way to put include guards in .ly files, to ensure that each file is included only once? If not, then is there any way to simulate include guards using Scheme? In particular, is there a Scheme function that does the equivalent of \include? Thanks in advance. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Custom articulations/pitched single-note trills
> I'm not top posting Thanks for your help. I was just wondering, is there any reason that \pitchedTrill only works with trill spanners? I soon discovered that I needed to typeset pitched mordents in addition to pitched trills, and since it would be tedious to create a set of \artSharp, \artNatural, \artFlat, \artSharpSharp, etc. for every articulation, I came up with the following general function: \version "2.11.57" pitched = #(define-music-function (parser location main secondary) (ly:music? ly:music?) #{ << $main { s64 \grace { \once \override Stem #'transparent = ##t \parenthesize $secondary } } >> #}) \relative { c'^\trill \pitched c^\trill des c^\prall \pitched c^\prall des! } This simulates the look of \pitchedTrill but with a few minor problems - the parentheses are too small, the spacing between the second and third note is too wide (I'm guessing it's b/c of the \grace). Is there any reason that \pitchedTrill can't fix these problems? ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Custom articulations/pitched single-note trills
Hi, I'm trying to typeset pitched single-note trills. Since \pitchedTrill only works for trill spanners, I have resorted to using the following: trillFlat = -\markup { \vcenter { \musicglyph #"scripts.trill" \smaller \flat }} \relative { c'\trillFlat c\trill c\trillFlat c\trill } Unfortunately the \markups are automatically placed below the staff while the \trills are placed above. If the \markups are manually positioned, as in: trillFlat = -\markup { \vcenter { \musicglyph #"scripts.trill" \smaller \flat }} \relative { c'^\trillFlat c^\trill c^\trillFlat c^\trill } then the \trillFlats appear slightly out of line with the \trills. I was wondering if there is a way to create custom articulations, which would solve both of my problems? If not, then how should I make the \trillFlats above appear in line with the \trills? I've tried adjusting #'padding, #'staff-padding, and #'minimum-space, none of which seem to have any effect. Thanks in advance. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: layout-set-staff-size units
Mats Bengtsson wrote: > It did work last time I tried it. Could you please include > a small example that illustrates what you tried. The following does not work (everything except for lines are too big): \score { \relative c'' { \clef treble \key c \major \time 2/4 r4 g'4 g4. e8 d4 g, c e8 r } \layout { #(layout-set-staff-size 14) } } The following doesn't work either (still too big), but notes fit the lines: \paper { #(layout-set-staff-size 14) } \score { \relative c'' { \clef treble \key c \major \time 2/4 r4 g'4 g4. e8 d4 g, c e8 r } \layout {} } This is with version 2.11.4 (FC5, self-compiled). With version 2.10.5, the second example doesn't work either. The conversion to PDF fails, and viewing the PS file results in "/undefined in output-scale". ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
layout-set-staff-size units
Hello, What are the units of #(layout-set-staff-size)? The documentation (11.2.1) suggests that the units are points, like #(set-global-staff-size), but the results are that note heads end up being more than twice as big. Also, putting the command in a \layout block (as in the doc example) doesn't work. The staff lines, stems, and beams don't change size. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
\score blocks in included files
Hello, I'm typesetting instrumental music, and am trying to produce one file for each instrument, and one file for the conductor's score (for which the input file includes all the other input files). I put the music for each instrument into a separate file, and intend to run lilypond on each individual .ly file to generate the score defined in that file. I created the following music function to detect whether or not the current file is being included by another file (the conductor's score file): %% returns the music expression only if this is the toplevel file iftop = #(define-music-function (parser location music) (ly:music?) (if (let* ( (filename (car (ly:input-file-line-char-column location))) (output (ly:parser-output-name parser)) (outlen (string-length output))) (or (string=? filename output) (and (> (string-length filename) outlen) (char=? #\. (string-ref filename outlen)) (string=? output (substring filename 0 outlen)) ) ) music (make-music 'SequentialMusic 'void #t However, lilypond won't let me apply this function to a \score block, nor will it let me save the \score block to a variable, then apply it to that variable. I've tried applying this function to only the music inside the \score block, but then I can't prevent duplication of \header blocks. It'll probably let me apply this function to a score created with ly:make-score, and I know that I can always create two files for each instrument, one with the music and one with the \score block, but is there any easier way to do what I'm trying to do? Surely it's not uncommon to want to produce multiple files for instrumental scores? Or am I just not doing it the right way? ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user