Re: Problem with /accepts
On 17/04/2017 22:06, Thomas Morley wrote: 2017-04-17 21:08 GMT+02:00 Roman Stawski <ro...@stawski.fr>: I'm coming across a problem with context definitions: \version "2.19.59" \layout { \context { \Staff \accepts P } \context { \name P \alias Voice } } \new Staff { \new P \relative c'' { c c c c } } This blows up with the error Interpreting music...ERROR: In procedure symbol->string: ERROR: Wrong type argument in position 1 (expecting symbol): () Exited with return code 1. If I comment out the '\accepts' compilation finishes, (but ignores the context P obviously). Could someone let me know what I'm doing wrong here? From: NR 5.1.6 Defining new contexts "The mechanisms with which contexts communicate are established by declaring the context \type. Within a \layout block, most contexts will be of type Engraver_group. [...] Copying and modifying an existing context definition will also fill in the type." So (see comments): \layout { \context { \Staff \accepts P } %% define "P" from scratch \context { \type "Engraver_group" \name P \alias Voice %% put in engravers for what you want %% otherwise no output } } \new Staff { \new P \relative c'' { c c c c } } %% or: \layout { \context { \Staff \accepts PP } %% copy "Voice"-settings, rename to "PP" \context { \Voice \name PP \alias Voice %% all engravers from Voice are present %% remove/add what you want %% add overrides as well } } \new Staff { \new PP \relative c'' { c c c c } } If I could read, I'd be dangerous. I went through this section several times but skipped that paragaph. This certainly resolves the problem. Thanks very much --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Problem with /accepts
Hello all I'm coming across a problem with context definitions: \version "2.19.59" \layout { \context { \Staff \accepts P } \context { \name P \alias Voice } } \new Staff { \new P \relative c'' { c c c c } } This blows up with the error Interpreting music...ERROR: In procedure symbol->string: ERROR: Wrong type argument in position 1 (expecting symbol): () Exited with return code 1. If I comment out the '\accepts' compilation finishes, (but ignores the context P obviously). Could someone let me know what I'm doing wrong here? Thanks --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: OOoLilyPond
On 05/01/2016 21:52, Noeck wrote: Hi Roman, I also use OOoLilyPond often and had to check immediately when I read your mail. I am using LibreOffice 5.0.2.2 and OOoLilypond 4.0.0 and it still works for me. What is actually happening when you insert a new snippet? Cheers, Joram Hello Joram When I hit the lilypond button the console popped up as usual to run Lilypond, finished correctly and disappeared. The OOoLP dialogue stayed open. When I looked at the LP output, everything had compiled fine. There were no errors. Debugging the macro, I found in the OOoLilypond/Make routine that after compilation it was looking for OOoLilyPond.eps in the temp directory. In reality I had OOoLilyPond-1.eps, OOoLilyPond-2.eps and OOoLilyPond-3.eps ... but no OOoLilyPond.eps, so the routine just exited. I commented this out since the only file I'm interested in is OOoLilyPond.png which was there, and was included next. Debugging further kept throwing out errors in LibreBasic ... so I gave up. Current state is that its now inserting the image ... but holding the image source open (even if I delete the image from the document). This means that the next run of OOoLP fails because it can't delete the source from the previous run. I'm managing to make it work by unlocking the file, but optimal it's not. Santé, Roman ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
OOoLilyPond
Hi folks I upgraded to LibreOffice 4.3 recently and now I'm having problems in getting OOoLilypond to actually insert a snippet although the generation works fine. FWIW I'm using Lilypond 2.19.33. Is anyone still using OOoLilypond? If so have they come across the problem, and do they have a workaround. Sorry if this is off-subject (OOoLP and not LP itself), but for me it's always been one of the killer features of lilypond that I can plug snippets directly into a text document. It would be a shame if it's no longer available. Thanks for any pointers ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Two's company : three's the result
Hi folks I've just comme across this in 2.17.11 --- \version 2.17.11 \paper { ragged-right = ##t } { \new PianoStaff \new Staff \relative c'' { a1 } \new Staff \relative c' { f1 } \break \new PianoStaff \new Staff \relative c'' { b1 } \new Staff \relative c'' { g1 } } --- *Where* does the extra staff come from? Any ideas, anyone Regards Roman ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Two's company : three's the result
On 24/04/2013 21:03, Federico Bruni wrote: You can find an explanation here: http://lilypond.org/doc/v2.16/Documentation/usage/common-errors#an-extra-staff-appears Thanks Federico, I wasn't aware of this one. I appreciate the pointer. the right input is: \version 2.17.11 \paper { ragged-right = ##t } \new PianoStaff { \new Staff \relative c'' { a1 } \new Staff \relative c' { f1 } } \new PianoStaff { \new Staff \relative c'' { b1 } \new Staff \relative c'' { g1 } } Yup, that works as expected. Thanks for the solution /and/ for the explanation. Regards ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: RemoveEmptyStaves and the ambitus_engraver
Janek Warchoł janek.lilypond at gmail.com writes: On Mon, Apr 1, 2013 at 3:41 PM, Roman Stawski roman at stawski.fr wrote: Interesting. If i were you, i'd place the skips inside MainSequence and have the ambitus appear at the very beginning, and keep that first system alive (which makes some sense in my opinion): \new Staff \relative c' { \clef treble \new MainSequence { \skip 1*8 \repeat unfold 2 { e1 e'1 } } } Unfortunately, in the real piece that doesn't work so well. Ah well, I'll try and find a work around... Cześć Roman ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
RemoveEmptyStaves and the ambitus_engraver
I'm not top posting. It seems that \RemoveEmptyStaves doesn't play very well with the ambitus_engraver. In this example, I'm trying to get the treble staff removed in the first two systems, and appear with an ambitus on the third. It is removed correctly in the first system. But reappears in the second. If I comment out the line (*), then the staves are removed as needed, but the ambitus is too of course. --- \version 2.17.11 \paper { ragged-right = ##t } \layout { \context { \type Engraver_group \name MainSequence \accepts Voice \consists Ambitus_engraver %% (*) \override AmbitusNoteHead.break-visibility = ##(#f #t #t) \override AmbitusLine.break-visibility = ##(#f #t #t) \override AmbitusAccidental.break-visibility = ##(#f #t #t) } \context { \Staff \accepts MainSequence \override VerticalAxisGroup.remove-empty = ##t \override VerticalAxisGroup.remove-first = ##t } } \new ChoirStaff \new Staff \relative c' { \clef treble \skip 1*8 \new MainSequence { \repeat unfold 2 { e1 e'1 } } \bar |. } \new Staff \relative c { \clef bass \repeat unfold 4 {e1} \break \repeat unfold 4 {e1} \break \repeat unfold 4 {e1} } --- It looks as if the ambitus is keeping the system alive. I can't get it to work by setting keepAliveInterfaces in the staff context either. Has anyone any ideas? Thanks for any help Roman ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Temporary staff and VerticalAlignment
Hello people I've come across a problem in 2.15.24 which I don't /believe/ existed in earlier 2.15 versions (although I haven't checked and I couldn't say when it appeared) --- \version 2.15.24 \new ChoirStaff \with { \consists Span_bar_engraver } { \new Staff = main { \relative c'' { c1 c1 c1 } \\ { s1 \new Staff \relative c'' { g1 g1 } } } } --- As this stand this generates a programming error grob does not belong to a VerticalAlignment. The output corresponds to what I want with the bar lines spanning both staves. However, if I comment out the \consists line no error appears. (Of course the output isn't the same either -- the bar lines are confined to their own staves). Does anyone have an idea how to get an error free compile and the bar lines spanning. Thanks for any help ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Temporary staff and VerticalAlignment
Eluze eluzew at gmail.com writes: Am 08.05.2012 12:00, schrieb Roman Stawski: Does anyone have an idea how to get an error free compile and the bar lines spanning. from 2.15.27 there will be no more error message for that! Thank you Eluze. I wasn't sure whether there wasn't an actual error somewhere that was getting ready to explode somewhere down the line. Apparently not. Keep up the good work. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Unexpected tag warning
David Kastrup dak at gnu.org writes: I just pushed a fix to staging as a2c7fbaa892b59a590b4635ddd184ca0487a38e3. With that fix, your example runs fine. Thankyou Sir! And Christmas has already been and gone (well nearly). I look forward to the next update. And thanks again for your rapid fix. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Surprising rendering order
Francisco Vila paconet.org at gmail.com writes: 2010/10/7 Roman Stawski roman at stawski.fr: In the snippet below, I'm trying to set up a simple numbering of the pieces. This used to number the pieces in ascending order in version 2.12.[don't recall]. But not any more... The behavior is as if normal markups in music render in the expected order, but instrument names are in reverse order. Here I attached counters to plain notes. ¡funny! And raw markups are rendered in the correct order after the music but before the instrument names \version 2.13.34 #(define sequence-number 0) #(define-markup-command (score-sequence layout props) () (set! sequence-number (+ sequence-number 1)) (interpret-markup layout props (markup #:bold #:large (number-string sequence-number \markup\score-sequence \new Staff { \set Staff.instrumentName = \markup\score-sequence a'1^\markup\score-sequence } \markup\score-sequence \new Staff { \set Staff.instrumentName = \markup\score-sequence b'1^\markup\score-sequence } \markup\score-sequence \new Staff { \set Staff.instrumentName = \markup\score-sequence c''1^\markup\score-sequence } \markup\score-sequence ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Surprising rendering order
In the snippet below, I'm trying to set up a simple numbering of the pieces. This used to number the pieces in ascending order in version 2.12.[don't recall]. But not any more... \version 2.13.34 #(define sequence-number 0) #(define-markup-command (score-sequence layout props) () (set! sequence-number (+ sequence-number 1)) (interpret-markup layout props (markup #:bold #:large (number-string sequence-number \new Staff { \set Staff.instrumentName = \markup\score-sequence a'1 } \new Staff { \set Staff.instrumentName = \markup\score-sequence b'1 } Does someone have a clue of what's going on here? Thanks for any help ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: how to transpose midi one octave ?
Martin Tarenskeen m.tarenskeen at zonnet.nl writes: Does this mean I have to use two \score sections. One for \midi and onBe {} for \layout {} like this? : \score { \new Staff { \transpose c' c { \guitarMusic} } \midi {} } \score { \new Staff { \guitarMusic } \layout {} } I was hopening for an easier way, but this isn't that difficult either. This is often a good idea since it enables you to adapt the midi in other ways... for instance: \score { \new Staff { \transpose c' c { \unfoldRepeats \guitarMusic} } \midi {} } \score { \new Staff { \guitarMusic } \layout {} } Roman ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Dynamics and Lyrics don't mix
Hi folks When I build the snippet - \version 2.13.11 \paper{ ragged-right = ##t } \new Staff \new Voice = a \relative c'' { a b c d } \new Dynamics { s4\p s\ s\! s\mf } \new Lyrics { \lyricsto a \lyricmode { a b c d }} - the output is as expected, but I get a whole cascade of warnings warning: staff-affinities should only decrease Can anyone translate this into English ? and/or tell me how to do to get shot of them? Inversing the dynamics and lyrics gets rid of the warnings. But doesn't give me the output I want. Thanks for any pointers Roman ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Dynamics and Lyrics don't mix
After some playing around, I found that the following gets rid of the warnings. It does seem a little messy, though. - \version 2.13.11 \paper{ ragged-right = ##t } \new Staff \new Voice = a \relative c'' { a b c d } \new Dynamics \with { \override VerticalAxisGroup #'staff-affinity = #DOWN } { s4\p s\ s\! s\mf } \new Lyrics \with { \override VerticalAxisGroup #'staff-affinity = #DOWN } { \lyricsto a \lyricmode { a b c d }} - My only problem now is to increase the spacing between the dynamics and the lyrics. Ah well, back to the VerticalAxisGroup documentation... regards Roman ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Lyric alignment problem with custom Voice
This short polyphony employs A trivial customised Voice but the lyrics ignore the first note in the score -- that's not the behaviour of choice. - \version 2.13.11 \layout { ragged-right = ##t } \layout { \context { \Voice \name MainVoice \alias Voice } \context { \Staff \accepts MainVoice } } tx = \lyricmode { Foo bar } va = \relative c' { c2 g'2 } vb = \relative c' { a2 c2 } % First note ignored by lyrics :-( \new Staff \new MainVoice = ta \va \\ \vb \new Lyrics { \lyricsto ta \tx } % Compare with ... \new Staff \new Voice = tb \va \\ \vb \new Lyrics { \lyricsto tb \tx } - Roman (with apologies for the doggerel) ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lyric alignment problem with custom Voice
On 25/02/2010 23:05, Xavier Scheuer wrote: On 25 February 2010 21:04, Roman Stawski ro...@stawski.fr wrote: This short polyphony employs A trivial customised Voice but the lyrics ignore the first note in the score -- that's not the behaviour of choice. Hi, That's the same as issue 770, isn't it? http://code.google.com/p/lilypond/issues/detail?id=770 Certainly looks like it. Thanks for pointing it out and apologies for not having searched hard enough myself ! Merci encore Xavier Roman ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Editing notes in a separate file
Michael J. O'Donnell michael_odonnell at acm.org writes: Thanks for pointing out \tag. I've already read up, and experimented with it. It doesn't solve the problem, because it requires that I anticipate every possible correction when entering the data from the MS. The only way to get useful coverage is to tag every note with a different tag, which is too complicated and invites other sorts of errors. I had a similar problem some time ago and with the help of the good folks here managed to define some techniques to get different types of score from a single source. It's far from perfect, and I don't know if it applies to your problem but it is available at http://lsr.dsi.unimi.it/LSR/Item?id=493 Good luck Roman ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Lyric extenders in the middle of words
Question to the wise : how do you use extenders in the _middle_ of words. I know that the documentation says In the last syllable of a word, melismata are sometimes indicated with a long horizontal line starting in the melisma syllable, and ending in the next one. I have the following example: \version 2.13.7 \paper { ragged-right = ##t } \relative c'' { a4\(b4\)a2 } \addlyrics { Me -- lo -- dy } \addlyrics { Ly __ _-- ric } The 'Ly' of lyric is stretched across two notes and I want to indicate this with an extender. However, it is the first syllable of 'Lyric' and I want to indicate this with a hyphen. The above example throws out the error programming error: hyphen not finished yet continuing, cross fingers and junks the hyphen. I also tried the following \version 2.13.7 \paper { ragged-right = ##t } \relative c'' { a4\( b4\) a2 } \addlyrics { Me-- lo -- dy } \addlyrics { Ly __ -- \skip 4ric } This compiles without errors but now the extender stretches below the hyphen which looks odd. Does anyone have any ideas how this could be managed? Thanks ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lyric extenders in the middle of words
James E. Bailey derhindemith at googlemail.com writes: On 22.11.2009, at 10:56, Roman Stawski wrote: Question to the wise : how do you use extenders in the _middle_ of words. … The 'Ly' of lyric is stretched across two notes and I want to indicate this with an extender. Why? That's (I won't say wrong but) non-standard However, it is the first syllable of 'Lyric' and I want to indicate this with a hyphen. This is the way it's done. In vocal music, there are two symbols to indicated that a particular is sung for more than one note: the hyphen and the extender line. A hyphen is used between two syllables of the same word to let the singer know that these two syllables belong to the same word. The extender line is used at the end of a word to let the singer know that this word is sung for more than one note. Or better yet, do you have an example of somewhere this is used? I've never seen anything like it, and quite frankly, as a singer, I would be very confused by it. It implies that Ly is a wholly self-contained word within the word Lyric You can see the bit I'm trying to transcribe at http://www.roman.stawski.fr/snippet.jpg ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lilypond incipits
J. jonathangoodman at bezeqint.net writes: If some one can help or point me to documentation in how to make 20 note incipits in Lilypond for a large folk song collection I am working to publish from the linux computer I have inherited. I want to take the opening phrase of each one and create an index which I want to print as a work referance and later to incorporate it into the book. Look at the options --png -dpreview -dno-print-pages -dno-include-book-title-preview in the page http://lilypond.org/doc/v2.13/Documentation/usage/Command_002dline-usage#Command-line-options-for-lilypond That can be used to print the first line in a PNG file that you can use for indexing. If you insist on the 20 notes, you could always force a carriage return in the right place when you're generating the incipits. Good luck ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Sinterklaas collisions
Martin Tarenskeen m.tarenskeen at zonnet.nl writes: Hi, Dutch Lilyponders might have noticed: Sinterklaas is here again For my youngest pupils I created a score of Zie Ginds Komt De Stoomboot last year. I tried to compile it again, now with lilypond development version 2.13.7. I don't like the result at all: I'm getting bad collisions between notes and sharps, and notes and chord symbols. One year ago with 2.12.x everything still looked fine. A bug concerning collisions between chordnames and notes has already been fixed (http://code.google.com/p/lilypond/issues/detail?id=890) by Joe Neeman and should make it into 2.13.8. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: vim vagaries
J. jonathangoodman at bezeqint.net writes: Hi Again evrey body, I'm happy to say that with because of the help you gave me I was not only able to get jedit up and running for lilypond but was encouraged to succede in setting up emacs too! Vim though is somthing else. I looked at the directions on the lilypond site for setting it up but, because of my noviciate I got confused with all the places and symbols. i.e. can you add all the lilpond things into the place where vim is (/user/bin/share/vim) or have to make a ~/.vim and how does one modify the files when the're found. [Whew!] Would appreciat some help like you gave last time. Hi J. Possibly a silly question, but if you have emacs and jedit set up and working, and if you're happy with them, why bother with vim? It's just another text editor and you already have two. Use whatever you're comfortable with, and gives you the results you needs. (Even MS notepad :-) ) This isn't an anti-vim post since it's my editor of choice... it's a pro-simplicity post. My 2c Roman ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lilypond 2.13.7 is released
Graham Percival graham at percival-music.ca writes: On Thu, Nov 05, 2009 at 10:52:59PM +0100, David Kastrup wrote: Graham Percival graham at percival-music.ca writes: LilyPond 2.13.7 is out. This release theoretically works on osx 10.6, without breaking anything on other OSes, Not even lines? Those aren't breaks; they're... carriage returns. During GLISS, we'll rename \break to \stable, to better indicate that this is the place to which the carriage returns. :) Does this mean that you'll rename \pageBreak to \manger ... where the carriage horse, if it's on form, feeds ? ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Newly defined Voice context and RemoveEmptyStaffContext
At 13:59 22/11/2008, Mats Bengtsson wrote: See the Known issues and warnings of section 5.1.4 Changing default context settings in the Notation Reference. If you really want to understand what happens, it may also help to look at the definition of \RemoveEmptyStaffContext in the file ly/engraver-init.ly. /Mats Magic /Mats! I hadn't noticed that paragraph. Changing the order of context declaration makes things much better. And ly/engraver-init.ly is certainly interesting and answers my second question. Nevertheless, I still have a problem. Nothing to do with \RemoveEmptyStaffContext though. When I use my new 'MainVoice' in parallel with another voice, and attach some lyrics to it, I lose the first syllable of the lyrics. If I use a standard Voice, then lyric alignment works fine. If I comment out the parallel Voice, alignment works correctly too. Does anyone on the list have the reference to the correct section in the documentation (I didn't find anything, not that that means anything) or any other ideas? Thanks in advance. - - - - [Start] \version 2.11.60 \layout { ragged-right = ##t } \layout { \context { \Voice \name MainVoice \alias Voice } \context { \Staff \accepts MainVoice } } tx = \lyricmode { Foo bar } va = \relative c' { c2 e2 } vb = \relative c' { c2 c2 } \score { \new Staff { % Either \new MainVoice = t { \voiceOne \va } % First note not used for lyrics % or % \new Voice = t { \voiceOne \va } % First note used for lyrics ok % \\ \new Voice{ \voiceTwo \vb } } \new Lyrics { \lyricsto t \tx } } - - - - [End] Regards Roman ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Newly defined Voice context and RemoveEmptyStaffContext
Hi everyone It seems that if I create a new context based on the Voice context, it won't play with \RemoveEmptyStaffContext at all. Try the snippet below as is, and then uncomment the commented block. A warning is generated and lyrics are no longer rendered. Any ideas on how to get this to work? - - - - - [START] \version 2.11.60 \layout { ragged-tight = ##t } \layout { \context { \name MainVoice \type Engraver_group \alias Voice \consists Grob_pq_engraver \consists Note_heads_engraver \consists Stem_engraver } \context { \Staff \accepts MainVoice } % If the block below is uncommented, then we get the error warning: cannot % find Voice `t' and lyrics are not rendered. %{ \context { \RemoveEmptyStaffContext } %} } \score { \new Staff { \new MainVoice = t \relative c' { c4 d e f }} \new Lyrics {\lyricsto t \lyricmode { Can you see me? }} } - - - - - [END] A secondary question is how to create a context that 'inherits' all the engravers/performers in the context it aliases. In the above example for instance, I'd like to add the \consists of the forty odd components used by Voice without have to type them by hand, and without needing to recheck them for every new version of Lilypond I install. Thanks for any help forthcoming Roman ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
e: Scheme question: symbol to music
[EMAIL PROTECTED] wrote: Roman Stawski [EMAIL PROTECTED] writes: Take a look at http://lsr.dsi.unimi.it/LSR/Item?u=1id=493 Nice! Is there a way to get rid of the warning: no such internal option: target? I asked Nicolas Sceaux the same question when he helped me set this up. Apparently, the internal options are hard-coded and the warning is displayed before the scheme code is executed. :-( This lets you have constructs such as \ifTargetIn #'(foo) { ... } A limitation is that it works on music expressions, while I would like such a function to operate on (a series of) input lines. Similar to \ifTargetIn #'(foo) \include somelines.ly but then with the contents of somelines.ly included, e.g., \ifTargetIn #'(foo) \do ... arbitrary lines of lilypond code ... \done Agreed. My original solution was to use a perl pre-processor that stripped out unwanted code. This made debugging much more difficult since the lilypond parser dosn't see the same thing as in the source code (different line numbers and unexpected side-effects). I've come across four cases using the 'ifTarget' solution 1. Musical expressions work fine (when used with grouping like ... and {...} 2. Scheme snippets and markup blocks for which there are #if-target-in equivalents 3. Layout, paper and other context configuration can usually be handled by scheme snippets, though some acrobatics may be necessary. 4. Top-level constructs (\include, \score, variable definitions) for which I haven't been able to find a solution. On other hand, this hasn't raised too many problems since the /contents/ of these constructs can always be protected by the macros. The downside is that I need to live with warnings such as warning: no music found in score If you have any ideas on how to improve it, let me know Roman ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Scheme question: symbol to music
Johan This is the sort of thing I was playing with earlier on this year. Take a look at http://lsr.dsi.unimi.it/LSR/Item?u=1id=493 This lets you have constructs such as \ifTargetIn #'(foo) { ... } In this case the symbols are switched on/off on the command-line but you could always change the scheme code to use symbols defined in the scheme code on the fly Roman ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lyrics provoke Moment is not increasing complaint
Roman Stawski wrote: I want to have one group of parallel staves following another sequentially. The constitution of the two groups is quite different. (In the real piece I'm using \removeEmptyStaffContext to hide the first group when I finish with it.) A cut-down example is: - - - -[START] \version 2.11.60 \layout { ragged-right = ##t } example = { \new Staff { \new Voice = a \relative c'' { a1 } } %\new Lyrics { \lyricsto a \lyricmode { Doo } } \new Staff { \new Voice = c \relative c' { c1 } } \new Lyrics { \lyricsto c \lyricmode { dah } } } \score { \example } - - - -[END] This snippet works, but when I uncomment the Lyrics line, I get - - - - ... Interpreting music... programming error: Moment is not increasing. Aborting interpretation. continuing, cross fingers test.ly:11:18: warning: cannot find Voice 'c' \new Lyrics { \lyricsto c \lyricmode { dah } } ... - - - - and the second group is corrupted in the display. Mats Bengtsson wrote: This is weird and looks like a bug to me, so I forward it to bug-lilypond. However, you may want to reorganize your score along the lines of the email Re: Adding a staff in the middle of a piece I sent on lilypond-user some minutes ago, which shows how to switch a stave back and forth between behaving like a french stave and a normal stave, but setting the remove-empty property. /Mats Hi Mats Thanks for your ideas. You proposed three work-arounds : 1. I don't need to switch between french and normal staves (AFAICS). 2. When I use the same staff context, I still get exactly the same error. In your examples you leave out the lyrics, they are at the core of the problem. For instance: - - - -[START] \version 2.11.60 \layout { ragged-right = ##t } \score{ { \new Staff = soprano \relative c' { c d e f | g1 | } %\addlyrics{ \lyricmode { Did -- dle did -- dle dum. } } \context Staff = soprano \relative c'' { g4 f e d | c1 | } \addlyrics{ \lyricmode { Did -- dle did -- dle dum. } } \new Staff = solo \relative c'' {g8 c g f e g e d | c1 | } } } - - - -[END] Try uncommenting the first lyric line 3. The third alternative won't do either. The two groups represent refrain and verse. I use separate variables to be able to use different content structure in the PDF (Ref. + V1 + V2 + V3) and in the midi (Ref + V1 + Ref + V2 + Ref. + V3 + Ref). So introducing additional staves on the fly makes this much more difficult. Thanks for forwarding this to lilypond-bugs. I wasn't sure whether I was missing something simple, or whether it really is a bug. Cheers ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lyrics provoke Moment is not increasing complaint
Thanks Trevor for your suggestions. I hadn't even considered the multi-score solution because that splits the midi to two files. And then I realised that, in this case, it doesn't really matter since the midi and PDF definitions are quite different. The other solution consists of 'adapting' an existing system by adding or hiding new staves, rather than 'replacing' one system by another one that's quite different. Your example works in my cut down snippet. In the full piece, I'd need to add staves above the common one. However, I can see how to do that by predefining all the staves and using #(ly:export (skip-of-length ...)) to hide them when they're not needed. (I see what Mats was getting at now with french staves). Still, this solution leaves me unsatisfied. It means more faffing around... but it does produce the output I want. I feel that my original construct is cleaner and corresponds to the spirit of the parallel/sequence expression syntax, and would love to understand _why_ it's wrong (apart from the obvious fact that it make Lilypond squeal and produce duff output). Anyway, you(ve both given me a practical way forward, and I'll let the powers that be decide whether the original example constitutes a bug or an abuse of Lilypond. Thanks again for your help Roman ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Lyrics provoke Moment is not increasing complaint
I want to have one group of parallel staves following another sequentially. The constitution of the two groups is quite different. (In the real piece I'm using \removeEmptyStaffContext to hide the first group when I finish with it.) A cut-down example is: - - - -[START] \version 2.11.60 \layout { ragged-right = ##t } example = { \new Staff { \new Voice = a \relative c'' { a1 } } %\new Lyrics { \lyricsto a \lyricmode { Doo } } \new Staff { \new Voice = c \relative c' { c1 } } \new Lyrics { \lyricsto c \lyricmode { dah } } } \score { \example } - - - -[END] This snippet works, but when I uncomment the Lyrics line, I get - - - - ... Interpreting music... programming error: Moment is not increasing. Aborting interpretation. continuing, cross fingers test.ly:11:18: warning: cannot find Voice 'c' \new Lyrics { \lyricsto c \lyricmode { dah } } ... - - - - and the second group is corrupted in the display. The only reference to this problem that I could find was a posting from Morten Lemvigh last year: http://thread.gmane.org/gmane.comp.gnu.lilypond.general/32409/focus=32412 He solves the problem by changing the lyrics, which isn't an option in my case. So what am I dong wrong? Does anyone have any ideas how to solve/get around it? Thanks Roman ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: -dpreview without headers
When running lilypond with the switches -dpreview -dno-print-pages is there any way to stop the page headers printing from the command line, so that I just get the first line of music? OK, -dhelp lists the solution. -dpreview -dno-print-pages -dno-include-book-title-preview ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
-dpreview without headers
When running lilypond with the switches -dpreview -dno-print-pages is there any way to stop the page headers printing from the command line, so that I just get the first line of music? ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: indent in latex
Hi, I integrated a lilypond-file then processed by lilypond-book in latex and I got an indent as you can see in the attached pdf. The code for that fragment in latex looks like that: ... Bestandteil des genannten \textit{Perpetuum Mobile}-Kanons. \\ Hier dann die caption \\ \LilyPonds\lilypondfile[quote,indent=#0,staffsize=12] {Nymphes_des_boys_2.ly} Noch einmal zurück zur quintfälligen authentischen Doppelwendung am Schluss des ... I tried noindent as well, without any success. I think that the problem is with the quote argument rather than the indent. Try removing that one... Roman ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lilypond-user Digest, Vol 68, Issue 76
Date: Tue, 22 Jul 2008 09:50:09 +1200 From: Daryna Baikadamova [EMAIL PROTECTED] Subject: a program / command / script turing a lilypond full score intoconductor's score and parts scores automatically To: lilypond-user@gnu.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=iso-8859-1 Suppose if I typeset a full score (with all instruments that appear in the work) in lilypond, there are there any commands / programs / scripts that can automatically take the full score lilypond file and create pdf for: conductor's score - with parts that do not play in a particular line in a system automatically removed to save space parts score - with correct transposition and correctly replace continuous rests with a multiple-bar rest, or better, allow specification of length and the source (from which instrument the melody comes from) of hint as small notes before the instrument actually starts playing. Are these features already there? These features would greatly simplify the work of the typesetter and leave the mechanical works to lilypond. Daryna It'll never be completely automatic, because the system can't guess which parts you want to skip/adjust and in which cases. But if you can add the extra information into the score in some way, a lot can be done. In addition to Andrew's remark, this you might also want to have a look at the snippet http://lsr.dsi.unimi.it/LSR/Item?id=493 which was the result of a recent discussion to try and do this sort of thing. If it's useful, but missing some particular feature let me know -- it's something I'm using for my own work and I'd be happy to take it further (if I'm capable!) Roman ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: a program / command / script turing a lilypond full score into conductor's score and parts scores automatically
Sorry - resending message originally sent with incorrect subject Beg pardon Date: Tue, 22 Jul 2008 09:50:09 +1200 From: Daryna Baikadamova [EMAIL PROTECTED] Subject: a program / command / script turing a lilypond full score intoconductor's score and parts scores automatically To: lilypond-user@gnu.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=iso-8859-1 Suppose if I typeset a full score (with all instruments that appear in the work) in lilypond, there are there any commands / programs / scripts that can automatically take the full score lilypond file and create pdf for: conductor's score - with parts that do not play in a particular line in a system automatically removed to save space parts score - with correct transposition and correctly replace continuous rests with a multiple-bar rest, or better, allow specification of length and the source (from which instrument the melody comes from) of hint as small notes before the instrument actually starts playing. Are these features already there? These features would greatly simplify the work of the typesetter and leave the mechanical works to lilypond. Daryna It'll never be completely automatic, because the system can't guess which parts you want to skip/adjust and in which cases. But if you can add the extra information into the score in some way, a lot can be done. In addition to Andrew's remark, this you might also want to have a look at the snippet http://lsr.dsi.unimi.it/LSR/Item?id=493 which was the result of a recent discussion to try and do this sort of thing. If it's useful, but missing some particular feature let me know -- it's something I'm using for my own work and I'd be happy to take it further (if I'm capable!) Roman ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Repost: Re: \tag can't follow \lyricsto
Valentin Villenave v.villenave at gmail.com writes: 2008/7/16 Nicolas Sceaux nicolas.sceaux at free.fr: You can conditionnaly insert music using a music function. Awesome! Can you (or Roman) write a LSR snippet with this great function? Cheers, Valentin (Previous message seems to have gone AWOL) Snippet is now available on http://lsr.dsi.unimi.it/LSR/Item?id=493 ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: \tag can't follow \lyricsto
Trevor Daniels wrote OK, I see what you are trying to do. The error is that the order of the commands in the lyrics line is wrong, and the \new Lyrics command should be followed by { .. } just like \new Staff is. Then it works fine, like this: \new Staff { \new Voice = dirge { c''1 } } \new Lyrics { \lyricsto dirge { Whoops } } \tag #'harmony \new Staff {a'1} Right. The command order I'm using is from a really old template that I've been using for years without problems. I came across your formulation when checking an answer to another post on the bugs list. Looks as if I'll have to update my templates. (Who's got the sed user guide?) However, there is an easier way to include or exclude the harmony, without using tags, like this: harmony = { \new Staff {a'1} } \new Staff { \new Voice = dirge { c''1 } } \lyricsto dirge \new Lyrics { Whoops } %\harmony %uncomment to include harmony That doesn't convince me. Ideally, I want to produce different output from the same score _without_ touching the contents. My idea (dream?) of using tags was to eventually write a dollop of scheme that would be able to look at the command line arguments and set \keepWithTag or \removeWithTag as appropriate. However, the way that tags are implemented today isn't powerful enough for what I want to do... they can only be used to filter music expressions -- I'd like to be able to filter out markup, scores and anything else in the input file. (Well, I did say 'dream'!). At the moment I'm using a cobbled together solution partly based on tags, and partly based on a perl preprocessor that does the filtering before passing the input onto to Lilypond -- but pretty it ain't. Tags are usually used for short sections of music. You might find section 3.3.2 Different editions from one source in the most recent version of the 2.11 docs worth a read - it was recently rewritten. Yes, I have. That's where I found out about tags in the first place. Thanks for your input, anyway. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: How to join plain + markup text in a single syllable?
Francisco Vila wrote: Hello all, Attached is what I want and what I get; in a single note we have: - last letter of a previous word - an italic apostrophe - first letter of the next word, also italic Not only I cannot join all of this onto a single note, I also obtain errors for the next syllable (unfinished hyphen). Any ideas? The complete code of the attempt is: \version 2.11.52 { \time 3/8 \autoBeamOff a'8 a'16 a' a' a' } \addlyrics { bien ha -- y \markup{ \italic 'a } -- que -- ya } \version 2.11.49 \paper{ ragged-right=##f } % to make it easier to see alignment { \time 3/8 \autoBeamOff a'8 a'16 a' a' a' } \addlyrics { bien ha -- \markup{y \italic{'a}} -- que -- ya } % or alternatively \addlyrics { bien ha -- \markup{\concat{y \italic{'a}}} -- que -- ya } ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Repeats with partials and alternatives
I think that there seems to be a problem with the way the repeats and alternatives are handled In the page http://lilypond.org/doc/v2.2/Documentation/user/out-www/lilypond/Repeat-syntax.html#Repeat%20syntax (documentation for repeat syntax) the last example seems strange. The second alternative follows on from the end of the first, rather than from the end of the common part of the repeat. The bar checks just mirror this behaviour. ___ lilypond-user mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/lilypond-user