Re: Text setting
Edward many thanks for these solutions; I will use the second one. I don't like the bar check fail as I fairly rigorously use bar lines to find my many typing blunders.. However, I'd like to check why it fails. ? The time signature is 4/4. If we use s2^\markup {text here} R2 then a skip of duration 2 beats and then a whole bar of duration 2 beats.Since the whole bar is 4 beats, having R2 is inconsistent regardless of whether the S2 is there or not. Is that that the reason ? Your second solution presumably is making use of two voices on the one staff and so no bar fail check occurs regards Neil From: Edward Neeman <[EMAIL PROTECTED]> To: Neil Killeen <[EMAIL PROTECTED]> CC: Lilypond-user Subject: Re: Text setting Date: Sun, 30 Oct 2005 23:16:38 +1100 (EST) --- Neil Killeen <[EMAIL PROTECTED]> wrote: > The syntax > >R1^\markup{ \fontsize #2.5 { With passion } ( > \raise # 0.5 { \note > #"2" #1.0 }=55) } > > places the marking too far to the left and too low. > So I have tried to move > it with > >\once \override TextScript #'extra-offset = > #'( 2.0 . 1.0 ) >R1^\markup{ \fontsize #2.5 { With passion } ( > \raise # 0.5 { \note > #"2" #1.0 }=55) } > > but it has no effect. If I use 'r1' instead of 'R1' > then it does have > effect. Two options: s2^\markup {text here} R2, if you don't mind the failed barcheck, or << R1 s1^markup {text here} >> In both cases you should be able to offset as you please. I found the > same with the > > \mark \markup > > construct; that it was not located correctly. The placement of \marks is controlled by the Score.RehearsalMark object instead of TextScript. Cheers, Edward Neeman Do you Yahoo!? The New Yahoo! Movies: Check out the Latest Trailers, Premiere Photos and full Actor Database. http://au.movies.yahoo.com ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Text setting
Hi I am still finding placing text a rather arcane art. I wish to place the initial piece marking "Allegro" right at the beginning of my 4-staff piece. The upper three staves are whole-bar rests rests with notes in the last staff. The syntax R1^\markup{ \fontsize #2.5 { With passion } ( \raise # 0.5 { \note #"2" #1.0 }=55) } places the marking too far to the left and too low. So I have tried to move it with \once \override TextScript #'extra-offset = #'( 2.0 . 1.0 ) R1^\markup{ \fontsize #2.5 { With passion } ( \raise # 0.5 { \note #"2" #1.0 }=55) } but it has no effect. If I use 'r1' instead of 'R1' then it does have effect. I found the same with the \mark \markup construct; that it was not located correctly. So my conclusion is that the use of the whole-bar rest is messing up my ability to move the text around. regards Neil ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Grob Direction error
Hi have just upgraded to 2.7.14 from 2.6.31 (Mac version). I now get the rather drammatic error message programming error: Grob direction requested while calculation in progress. the output looks fine so I am wondering if this is a debug statement in the development version ? cheers Neil ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lyrics, ties, extenders and hyphens
Mats many thanks for following that up. regards Neil From: Mats Bengtsson <[EMAIL PROTECTED]> To: Neil Killeen <[EMAIL PROTECTED]> CC: lilypond-user@gnu.org Subject: Re: Lyrics, ties, extenders and hyphens Date: Thu, 27 Oct 2005 10:17:52 +0200 I have now checked an authoritative book ("Noter" by Börje Tyboni, unfortunately only available in Swedish). It turns out that you can have extender lines also for tied over notes, not only for melismas. The rule is rather that you should only use an extender line if there is a wide space to the next syllable. My answers for 2) and 3) seem correct, though. /Mats Mats Bengtsson wrote: I don't have any book on music typesetting practice available in front of me right now, but will try some advanced guesses anyway. Neil Killeen wrote: Hi 1) what is the correct thing to do with a lyric and a tie ? Should one use an extender like with a melisma ? Thus a~ a Fish __ Lilypond seems tolerant if I don't add the extender a~ a Fish I would only use extender lines for melismas, not for ties. 2) Also, I am finding extenders and hyphens get mixed up if I do extend ties. E.g. a1~ | a1 | es1~ | es1 Moun __ -- tains What I see after type setting is something like /--\ /---\ o o oo _ _ <- First hyphen overlaps with extender Moun__ tains_ I think it's normal to only use hyphens in such a situation and no extender lines. 3) Finally, on a matter of style of lyrics and punctuation. Is it good style to see punctuation (e.g. a full stop or comma) before an extender ? E.g. a~ a Fish. __ If not, what should one do ? Leave out the punctuation or try and poke it in after the extender somehow ? The punctuation before the extender seems reasonable. /Mats -- = Mats Bengtsson Signal Processing Signals, Sensors and Systems Royal Institute of Technology SE-100 44 STOCKHOLM Sweden Phone: (+46) 8 790 8463 Fax: (+46) 8 790 7260 Email: [EMAIL PROTECTED] WWW: http://www.s3.kth.se/~mabe = ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Tempo marking within a string and object moving
Hi again I have the notes under control, so now I want to do the hard part, annotate my music :-) The very first thing I want to do is proving difficult ! I have a layout like this, with 4 staves. The music begins with rests for all parts but the cello. | With determination (o = 100) Sopr1 Mezr1 Alt r1 Cello notes I want to write the expression and tempo marking as indicated above. The words need to start before the rest symbols are printed (sop/mez/alt) I wanted to use the \tempo directive, as I will use that elsewhere in the piece, but I failed to get that to embed in the markup. My solution seems overly complicated for such a basic (and common) thing. In the soprano line I put : r1^\markup { \hspace #-3.0 With Determination ( \raise # 0.5 { \note #"2" #1.0 }=100) } Comments: 1) the \hspace is to push the text to the left of the first rest 2) The \raise is to get the note-head to align so that the bottom of the note aligns with the bottom of the "100" (in the same way as in the \tempo command) 3) The note head size is larger than that which comes out with the \tempo command Is there an easier way to do this ? Can i embed \tempo in the \markup somehow so that at least I get consistent note sizes ? I also wanted to explore how to move text around and eventually found the padding and extra-offset properties. The manual gives examples (Sec 4.3) \once \override TextScript #'padding = #1.5 and \once \override TextScript #'extra-offset = #'( 1.0 . -1.0 ) The # syntax appears to be when a command or property takes an argument (of any type; string, integer, float etc). Could someone please explain the syntax involving the ' (comma) marks ? Padding has one comma and extra-offset has two.There are no comma marks in the markup commands, why are they in these ones ? I also find the period in the middle of the ( 1.0 . -1.0) strange and I didn't even see it at first (and wondered why it wasn't working). Anyway, using the extra-offset ( I couldn't get padding to work) I rewrote my expression above (and added a vertical shift) as : \once \override TextScript #'extra-offset = #'( -3.0 . 2.0 ) r1^\markup { With Passion ( \raise # 0.5 { \note #"4" #1.0 }=100) } which is still quite complicated. Is there a simpler way to move things about or is this the one true way ? cheers Neil ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Tempo change in Midi file
Mats I have waded back through the archives on this issue. There appear to be two basic statements of truth : 1) Many people commented that *only* midi files produced by Lilypond had this problem. This has been my experience too, that I can happily play tempo-changing MIDI files from other programs ( I installed 4 different MIDI players as well as Quicktime and Realplayer and none of them picked up the tempo changes). 2) Nigel Warner made an analysis - see http://lists.gnu.org/archive/html/lilypond-user/2003-10/msg00286.html where he found that the tempo changes were not in track 0 (the conductor track) where he asserted they should be (his argument made good sense to me). You commented that it was you who had removed the tempo changes from track 0 as you endeavoured to provide other functionality; see http://lists.gnu.org/archive/html/lilypond-user/2003-10/msg00296.html However, no fix appears to have ever been made and this bug remains. I do find MIDI files very useful. When I write some music, these are my first real chance to hear how it sounds as a whole, despite the limitations of MIDI so I would be greatful if some small effort could go into fixing this. regards Neil From: Mats Bengtsson <[EMAIL PROTECTED]> To: Neil Killeen <[EMAIL PROTECTED]> CC: lilypond-user@gnu.org Subject: Re: Tempo change in Midi file Date: Mon, 24 Oct 2005 15:55:48 +0200 I think there was an insightful email in the mailing lists a couple of years ago that explained that the current solution of handling MIDI tempo changes will only work with certain MIDI players but not with all. I just tried to listen to your example using kmidi (which internally uses timidity, a software-only MIDI interpreter) and it certainly plays the correct tempo changes, but it may fail for your combination of sound card and software. /Mats Neil Killeen wrote: Hello according to the mail archives, I should just insert a \tempo directive whenever I want to change the tempo (I think this should be in the manual). 1) For multiple staff music, should I insert just one set of markings for one of the staves (does it matter which one) or should they all have a (redundant) tempo marking ? 2) Regardless, this does not seem to function. Here is a little bit of test music. sopNotes = { \relative c' { \tempo 4=100 e2 e2 e2 e2 e2 e2 e2 e2 \tempo 4=50 e2 e2 e2 e2 e2 e2 e2 e2 } } % mezNotes = { \relative c' { \tempo 4=100 c2 c2 c2 c2 c2 c2 c2 c2 \tempo 4=50 c2 c2 c2 c2 c2 c2 c2 c2 } } \score { \new ChoirStaff << \new Staff { \context Voice = sop { \sopNotes } } % \new Staff { \context Voice = mez { \mezNotes } } % \layout {} \midi {} } The resultant midi file (attached) does not change tempo. It makes no difference whether I use one staff or two (and also if I use one staff and drop the \new ChoirStaff syntax it also does not work). I am using V 2.6.3-1 on a Mac Powerbook regards Neil ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user -- = Mats Bengtsson Signal Processing Signals, Sensors and Systems Royal Institute of Technology SE-100 44 STOCKHOLM Sweden Phone: (+46) 8 790 8463 Fax: (+46) 8 790 7260 Email: [EMAIL PROTECTED] WWW: http://www.s3.kth.se/~mabe = ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Tempo change in Midi file
Mats darn i have a Mac Powerbook; the built in Sound card is a Texas Instruments TAS3004 other music type setting s/w that i have used generates midi files for which tempo changes play ok on this machine. if anybody is interested, i can find out the solution it uses... regards Neil From: Mats Bengtsson <[EMAIL PROTECTED]> To: Neil Killeen <[EMAIL PROTECTED]> CC: lilypond-user@gnu.org Subject: Re: Tempo change in Midi file Date: Mon, 24 Oct 2005 15:55:48 +0200 I think there was an insightful email in the mailing lists a couple of years ago that explained that the current solution of handling MIDI tempo changes will only work with certain MIDI players but not with all. I just tried to listen to your example using kmidi (which internally uses timidity, a software-only MIDI interpreter) and it certainly plays the correct tempo changes, but it may fail for your combination of sound card and software. /Mats Neil Killeen wrote: Hello according to the mail archives, I should just insert a \tempo directive whenever I want to change the tempo (I think this should be in the manual). 1) For multiple staff music, should I insert just one set of markings for one of the staves (does it matter which one) or should they all have a (redundant) tempo marking ? 2) Regardless, this does not seem to function. Here is a little bit of test music. sopNotes = { \relative c' { \tempo 4=100 e2 e2 e2 e2 e2 e2 e2 e2 \tempo 4=50 e2 e2 e2 e2 e2 e2 e2 e2 } } % mezNotes = { \relative c' { \tempo 4=100 c2 c2 c2 c2 c2 c2 c2 c2 \tempo 4=50 c2 c2 c2 c2 c2 c2 c2 c2 } } \score { \new ChoirStaff << \new Staff { \context Voice = sop { \sopNotes } } % \new Staff { \context Voice = mez { \mezNotes } } % \layout {} \midi {} } The resultant midi file (attached) does not change tempo. It makes no difference whether I use one staff or two (and also if I use one staff and drop the \new ChoirStaff syntax it also does not work). I am using V 2.6.3-1 on a Mac Powerbook regards Neil ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user -- = Mats Bengtsson Signal Processing Signals, Sensors and Systems Royal Institute of Technology SE-100 44 STOCKHOLM Sweden Phone: (+46) 8 790 8463 Fax: (+46) 8 790 7260 Email: [EMAIL PROTECTED] WWW: http://www.s3.kth.se/~mabe = ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Tempo change in Midi file
Hello according to the mail archives, I should just insert a \tempo directive whenever I want to change the tempo (I think this should be in the manual). 1) For multiple staff music, should I insert just one set of markings for one of the staves (does it matter which one) or should they all have a (redundant) tempo marking ? 2) Regardless, this does not seem to function. Here is a little bit of test music. sopNotes = { \relative c' { \tempo 4=100 e2 e2 e2 e2 e2 e2 e2 e2 \tempo 4=50 e2 e2 e2 e2 e2 e2 e2 e2 } } % mezNotes = { \relative c' { \tempo 4=100 c2 c2 c2 c2 c2 c2 c2 c2 \tempo 4=50 c2 c2 c2 c2 c2 c2 c2 c2 } } \score { \new ChoirStaff << \new Staff { \context Voice = sop { \sopNotes } } % \new Staff { \context Voice = mez { \mezNotes } } % \layout {} \midi {} } The resultant midi file (attached) does not change tempo. It makes no difference whether I use one staff or two (and also if I use one staff and drop the \new ChoirStaff syntax it also does not work). I am using V 2.6.3-1 on a Mac Powerbook regards Neil tempo.midi Description: MIDI audio ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Lyrics, ties, extenders and hyphens
Hi 1) what is the correct thing to do with a lyric and a tie ? Should one use an extender like with a melisma ? Thus a~ a Fish __ Lilypond seems tolerant if I don't add the extender a~ a Fish 2) Also, I am finding extenders and hyphens get mixed up if I do extend ties. E.g. a1~ | a1 | es1~ | es1 Moun __ -- tains What I see after type setting is something like /--\ /---\ o o oo _ _ <- First hyphen overlaps with extender Moun__ tains_ 3) Finally, on a matter of style of lyrics and punctuation. Is it good style to see punctuation (e.g. a full stop or comma) before an extender ? E.g. a~ a Fish. __ If not, what should one do ? Leave out the punctuation or try and poke it in after the extender somehow ? cheers Neil ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Using addlyrics with a variable
ah indeed it doesn't ! thanks Neil The problem is that you have declared a Staff context within a Voice context, which doesn't make sense. Just do \score{ << \context Voice = sop { \sopNotes } \lyricsto "sop" \new Lyrics \sopLyric >> } or \score{ << \new Staff { \context Voice = sop { \sopNotes } } \lyricsto "sop" \new Lyrics \sopLyric >> /Mats } Neil Killeen wrote: Mats, Han thanks for your replies. SInce I imagine I will need add some point to deal with the more complex \lyricsto command, do you have an idea about the second problem where it doesn't recognize the declared Voice ? thanks Neil Neil Killeen wrote: The manual does show how to use a pre-defined variable with the more complex yric modes.So I tried this too. Below is the actual code (rather than some pseudo code like above) that I used. You can see I am trying to use lyricmode and lyricsto on the Soprano voice (the only one for now). The music is enclosed between << and >> because of course I really want to have several voices (sop,mez,alto) but in finding the simplest version of what I am doing that fails, I have pulled the other voices out. The error I get is warning: cannot find Voice `sop' (although I have defined it), and the resultant type-set file has two staffs; one empty, the second with the actual soprano voice notes and no lyric. As far as I can see I have followed the examples in the manual. I note that if I remove the << and >> this error message does not occur, but the same wrong output arises. Perhaps I should be using some of the other commands like \score etc but I don't really know what they are for at this point (they just start appearing in the manual without explanation). \include "english.ly" \version "2.6.3" \midi{ \tempo 4=72 } \header { title = \markup { "Test Piece" } composer = \markup { "Mr. Wiggle" } poet = \markup { "Mr. Biggles" } } common = { \key g \major \time 3/4 } % sopNotes = { \relative c' { \set Staff.instrument = \markup {Soprano} \tempo 4=80 \common \clef treble e'2 d4 c2 4 a8( b) c2 } } % % sopLyric = \lyricmode { One Two One Two One __ Two } % << \context Voice = sop { \new Staff { \sopNotes } } \lyricsto "sop" \new Lyrics \sopLyric -- = Mats Bengtsson Signal Processing Signals, Sensors and Systems Royal Institute of Technology SE-100 44 STOCKHOLM Sweden Phone: (+46) 8 790 8463 Fax: (+46) 8 790 7260 Email: [EMAIL PROTECTED] WWW: http://www.s3.kth.se/~mabe = ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Using addlyrics with a variable
Mats, Han thanks for your replies. SInce I imagine I will need add some point to deal with the more complex \lyricsto command, do you have an idea about the second problem where it doesn't recognize the declared Voice ? thanks Neil Neil Killeen wrote: The manual does show how to use a pre-defined variable with the more complex yric modes.So I tried this too. Below is the actual code (rather than some pseudo code like above) that I used. You can see I am trying to use lyricmode and lyricsto on the Soprano voice (the only one for now). The music is enclosed between << and >> because of course I really want to have several voices (sop,mez,alto) but in finding the simplest version of what I am doing that fails, I have pulled the other voices out. The error I get is warning: cannot find Voice `sop' (although I have defined it), and the resultant type-set file has two staffs; one empty, the second with the actual soprano voice notes and no lyric. As far as I can see I have followed the examples in the manual. I note that if I remove the << and >> this error message does not occur, but the same wrong output arises. Perhaps I should be using some of the other commands like \score etc but I don't really know what they are for at this point (they just start appearing in the manual without explanation). \include "english.ly" \version "2.6.3" \midi{ \tempo 4=72 } \header { title = \markup { "Test Piece" } composer = \markup { "Mr. Wiggle" } poet = \markup { "Mr. Biggles" } } common = { \key g \major \time 3/4 } % sopNotes = { \relative c' { \set Staff.instrument = \markup {Soprano} \tempo 4=80 \common \clef treble e'2 d4 c2 4 a8( b) c2 } } % % sopLyric = \lyricmode { One Two One Two One __ Two } % << \context Voice = sop { \new Staff { \sopNotes } } \lyricsto "sop" \new Lyrics \sopLyric ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Using addlyrics with a variable
Hello I am exploring lilypond for the first time. In evaluating its suitability for my purposes, I am making a little test piece to explore layouts. I am having trouble with lyric setting. I would like to use a pre-defined variable with the \addlyrics command (I can't find the answer in the manual or archives). Thus something along the lines of sopLyric = { One Two Three } { a b c } \addlyrics \sopLyric However, this approach fails. The actual error I get from my actual test piece is test2.ly:44:13: error: syntax error, unexpected STRING sopLyric = { One Two Three } OK, so I guess I have something wrong with the variable assignment syntax (sopLyric = ...) and it is not allowed to put a string like this. I have tried other things; with quotes, and trying to put the addlyrics in the variable but I can't get this approach to work. As far as I can see, the manual does not have an example of this. Whenever it uses \addlyrics, the examples give the lyrics directly where the \addlyrics command is used. I can't find anything about using strings in the explanation of assigning variables either. The manual does show how to use a pre-defined variable with the more complex lyric modes.So I tried this too. Below is the actual code (rather than some pseudo code like above) that I used. You can see I am trying to use lyricmode and lyricsto on the Soprano voice (the only one for now). The music is enclosed between << and >> because of course I really want to have several voices (sop,mez,alto) but in finding the simplest version of what I am doing that fails, I have pulled the other voices out. The error I get is warning: cannot find Voice `sop' (although I have defined it), and the resultant type-set file has two staffs; one empty, the second with the actual soprano voice notes and no lyric. As far as I can see I have followed the examples in the manual. I note that if I remove the << and >> this error message does not occur, but the same wrong output arises. Perhaps I should be using some of the other commands like \score etc but I don't really know what they are for at this point (they just start appearing in the manual without explanation). advice appreciated ! regards Neil \include "english.ly" \version "2.6.3" \midi{ \tempo 4=72 } \header { title = \markup { "Test Piece" } composer = \markup { "Mr. Wiggle" } poet = \markup { "Mr. Biggles" } } common = { \key g \major \time 3/4 } % sopNotes = { \relative c' { \set Staff.instrument = \markup {Soprano} \tempo 4=80 \common \clef treble e'2 d4 c2 4 a8( b) c2 } } % % sopLyric = \lyricmode { One Two One Two One __ Two } % << \context Voice = sop { \new Staff { \sopNotes } } \lyricsto "sop" \new Lyrics \sopLyric ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user