Re: flats as sharps and sharp as flats
PálBenkő wrote: Kieren MacMillan kieren_macmillan at sympatico.ca writes: Hi Stefan, Is it possible to define another function, that shows an written dis as an es and vice versa? The \transpose function already does this! Simply use the enharmonic transposition: \version 2.12.2 sharpMusic = \relative { cis' dis fis gis ais } \score { \new Staff \sharpMusic \new Staff \transpose cis des \sharpMusic } but this turns e to fes, doesn't it? I think Stefan's problem is that some programs (devices) send a G-major scale as g a b c d e ges g and he wants to turn only the ges to fis. Then, you can combine Keiren's solution with http://lsr.dsi.unimi.it/LSR/Item?id=266 /Mats p ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user -- = Mats Bengtsson Signal Processing School of Electrical Engineering Royal Institute of Technology (KTH) SE-100 44 STOCKHOLM Sweden Phone: (+46) 8 790 8463 Fax: (+46) 8 790 7260 Email: mats.bengts...@ee.kth.se WWW: http://www.s3.kth.se/~mabe = ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: date in footer?
On Thu, Apr 23, 2009 at 05:10:11PM -0700, Chip wrote: I didn't want to print something in the titles, I wanted to print something in the footer. Am I being nitpicky here? To me those are two different sections of a page. \markup is \markup. Look at the first example on http://lilypond.org/doc/v2.12/Documentation/user/lilypond/Creating-titles See all those \markups ? ... in fact, see the version number in the output? ... for that matter, did you see the Note that you may use any Formatting text, commands in the header. ? Including a link to the \markup explanation in NR 1.8 ?! I still think this is a PEBKAC. - Graham ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
music expression explanation
On Wed, Apr 22, 2009 at 04:10:37PM +0200, Simon Bailey wrote: Graham Percival wrote: If you have an idea for a general clarification that the syntax is pitch duration other, then I'm all for it. If it's a simple you need to put the ' before the duration, then I'd probably reject it as being insufficiently general. my first idea was something along the lines of your refusal. :) i do have some other ideas about how to explain the syntax, but they depend on where you want to put it in the docs. ... where would you put it in 3.1.? Hmm. I was initially thinking of 3.1.2, but that subsection (actually, the entire section) is really talking about *macroscopic* style. I mean, it refers back to the definition of a (compound) music expression. With that in mind, perhaps 2.3.1 is the best place: add 2-3 sentences and an articulation (or dynamic, or something) to the first paragraph+example. That said, this is really Trevor's area now. Let's see what he says. Cheers, - Graham ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Removing empty (drum) staff in a score, instrument name placement
Hi all, I am putting together my final project for a university undergraduate course, Instrumentation and Arranging. It's an arrangement of a short piano work by Ernesto Lecuona. It's arranged for the six instrumentalists in the class to perform live. I am almost finished, except for two small issues that I cannot fathom how to fix! The score source is located here: http://ross.uber.name/comparsa-lecuona.ly and the score pdf is here: http://ross.uber.name/comparsa-lecuona.pdf 1) Despite RemoveEmptyStaffContext being used (line 298), the congas part still persists in each system (from page 5 to the end), even though it contains only rests. \RemoveEmptyRhythmicStaffContext doesn't work either. If I can get that staff hidden, I think I will be able to shave four pages off of the score. 2) How can I place instrument names above and to the left the first system on the individual parts? See example (flute part): http://ross.uber.name/comparsa-lecuona-1.pdf I already have \remove Instrument_name_engraver in all the parts' books (line 306, etc.) Also, any coding or aesthetic tips for a beginner are welcome! Thank you, Ross Uber ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Vertical Spacing question
Mischa Falkenburg wrote: systems-per-page max-systems-per-page min-systems-per-page ragged-last-bottom I've been searching through the documentation, and the index for same...but I don't see any reference to this. Explain, please? Mischa, Don't forget to use reply to all so that your messages show up on the mailing list. ragged-last-bottom is here: http://lilypond.org/doc/v2.13/Documentation/user/lilypond/Page-formatting#Other-layout-variables The documentation for the other 3 were only added to the source files recently: http://git.savannah.gnu.org/gitweb/?p=lilypond.git;a=commit;h=777290146739b3896eacd2b65d5d87b2826603e9 So they won't appear in the docs until 2.13.1 is released. Of the three, it looks like only systems-per-page is available in 2.13.0. So you can try this: \paper { systems-per-page = #3 } But you should also try this: \paper { ragged-last-bottom = ##t } hope this helps - Mark ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Removing empty (drum) staff in a score, instrument name placement
1. You would need (the nonexisting) RemoveEmptyDrumStaffContext. But inspection of engraver-init.ly points to the solution: \layout { \context { \RemoveEmptyStaffContext } \context { \DrumStaff \remove Axis_group_engraver \override VerticalAxisGroup #'remove-empty = ##t \consists Hara_kiri_engraver } } 2. Do not specify the instrumentname in the flt,sax, definitions. For the full score, add the instrumentname to the score, as in \new StaffGroup = ww \new Staff = flt { \set Staff.instrumentName = #Flute \set Staff.shortInstrumentName = #Fl. \flt } \new Staff = sax { \set Staff.instrumentName = #Soprano Saxophone \set Staff.shortInstrumentName = #Sop. Sax. \sax } For the parts, specify the instrumentname with a markup \book { \markup Flute \score { \new Staff { \flt } \layout { \indent = 0.0 } } } Toine Schreurs 1) Despite RemoveEmptyStaffContext being used (line 298), the congas part still persists in each system (from page 5 to the end), even though it contains only rests. \RemoveEmptyRhythmicStaffContext doesn't work either. If I can get that staff hidden, I think I will be able to shave four pages off of the score. 2) How can I place instrument names above and to the left the first system on the individual parts? See example (flute part): http://ross.uber.name/comparsa-lecuona-1.pdf I already have \remove Instrument_name_engraver in all the parts' books (line 306, etc.) ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Vertical Spacing question
Mark Polesky wrote: Mischa Falkenburg wrote: systems-per-page max-systems-per-page min-systems-per-page ragged-last-bottom I've been searching through the documentation, and the index for same...but I don't see any reference to this. Explain, please? Mischa, Don't forget to use reply to all so that your messages show up on the mailing list. ragged-last-bottom is here: http://lilypond.org/doc/v2.13/Documentation/user/lilypond/Page-formatting#Other-layout-variables The documentation for the other 3 were only added to the source files recently: http://git.savannah.gnu.org/gitweb/?p=lilypond.git;a=commit;h=777290146739b3896eacd2b65d5d87b2826603e9 So they won't appear in the docs until 2.13.1 is released. Of the three, it looks like only systems-per-page is available in 2.13.0. So you can try this: \paper { systems-per-page = #3 } But you should also try this: \paper { ragged-last-bottom = ##t } hope this helps - Mark Mark, thanks for your help (ie. Reply to ALL) My question would be: WHERE do I plug in the \paper { ragged-last-bottom = ##t } ? Here is a copy of my score... \version 2.10.33 timeAndKey = { \time 4/4 \key g \major} voiceA = \relative c'' { \timeAndKey \repeat unfold 210 {g'4 fis d8 e b c d4 fis4 d4 b4 a8 b \times 2/3 {c d c}d8 g fis d c4 a2 g4} } voiceB = \relative c { \timeAndKey \repeat unfold 420 { d'8 e fis4 g8 a c4 e4 c8 b a4 g8 fis } } voiceC = \relative c'' { \timeAndKey \repeat unfold 280 { b4 a b e g a fis e~ e c c8 d r4 } } voiceD = \relative c'' { \timeAndKey \repeat unfold 120 { r1 r1 g'4 fis d8 e b c e4 c8 b a4 g8 fis a8 b \times 2/3 {c d c} d8 g fis d e4 c8 b a4 g8 fis r1 } } voiceE = \relative c'' { \timeAndKey \repeat unfold 168 { c2 b8 d c b a4 b g2~ g b8 d c b c4 fis \times 2/3 {e8 d e} d4~ d a2 r4 } } voiceF = \relative c'' { \timeAndKey \repeat unfold 105 { g'2 (e) (c) r2 e2 (c) (a) r2 fis'2 (d) (b) r2 d2 (b) (g1) } } \score { \new GrandStaff { \new Staff \voiceA \new Staff \voiceB \new Staff \voiceC \new Staff \voiceD \new Staff \voiceE \new Staff \voiceF } \layout { } \midi { } } Your HELP will always be appreciated... Mischa ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Vertical Spacing question
Mischa Falkenburg wrote: Mark, thanks for your help (ie. Reply to ALL) My question would be: WHERE do I plug in the \paper { ragged-last-bottom = ##t } I normally put the \paper block right after the \header block in my scores. In the example you give below, just put it after your \version statement and it'll do what you want. Jon ? Here is a copy of my score... \version 2.10.33 timeAndKey = { \time 4/4 \key g \major} voiceA = \relative c'' { \timeAndKey \repeat unfold 210 {g'4 fis d8 e b c d4 fis4 d4 b4 a8 b \times 2/3 {c d c}d8 g fis d c4 a2 g4} } voiceB = \relative c { \timeAndKey \repeat unfold 420 { d'8 e fis4 g8 a c4 e4 c8 b a4 g8 fis } } voiceC = \relative c'' { \timeAndKey \repeat unfold 280 { b4 a b e g a fis e~ e c c8 d r4 } } voiceD = \relative c'' { \timeAndKey \repeat unfold 120 { r1 r1 g'4 fis d8 e b c e4 c8 b a4 g8 fis a8 b \times 2/3 {c d c} d8 g fis d e4 c8 b a4 g8 fis r1 } } voiceE = \relative c'' { \timeAndKey \repeat unfold 168 { c2 b8 d c b a4 b g2~ g b8 d c b c4 fis \times 2/3 {e8 d e} d4~ d a2 r4 } } voiceF = \relative c'' { \timeAndKey \repeat unfold 105 { g'2 (e) (c) r2 e2 (c) (a) r2 fis'2 (d) (b) r2 d2 (b) (g1) } } \score { \new GrandStaff { \new Staff \voiceA \new Staff \voiceB \new Staff \voiceC \new Staff \voiceD \new Staff \voiceE \new Staff \voiceF } \layout { } \midi { } } Your HELP will always be appreciated... Mischa -- Jonathan Kulp http://www.jonathankulp.com ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: music expression explanation
Graham == Graham Percival gra...@percival-music.ca writes: Graham On Wed, Apr 22, 2009 at 04:10:37PM +0200, Simon Bailey wrote: Graham Percival wrote: If you have an idea for a general clarification that the syntax is pitch duration other, then I'm all for it. If it's a simple you need to put the ' before the duration, then I'd probably reject it as being insufficiently general. my first idea was something along the lines of your refusal. :) i do have some other ideas about how to explain the syntax, but they depend on where you want to put it in the docs. Graham ... where would you put it in 3.1.? Graham Hmm. I was initially thinking of 3.1.2, but that subsection Graham (actually, the entire section) is really talking about Graham *macroscopic* style. I mean, it refers back to the definition Graham of a (compound) music expression. Graham With that in mind, perhaps 2.3.1 is the best place: add 2-3 Graham sentences and an articulation (or dynamic, or something) to Graham the first paragraph+example. I'd really appreciate an appendix or something that gives Lily syntax as BNF, or as a syntax diagram. The syntax is very complex, and I've been caught out a number of times by things not being as I expected them to be from the NR --- not that the NR was wrong, but that the way elements are combined wasn't explicit. -- Dr Peter Chubb http://www.gelato.unsw.edu.au peterc AT gelato.unsw.edu.au http://www.ertos.nicta.com.au ERTOS within National ICT Australia A university is a non-profit organisation only in the sense that it spends everything it gets ... Luca Turin. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Rotating TextSpanner
Any suggestions (other than trial and error alignment of separate elements) on how to get an effect similar to that in the attached image, where the line is rotated but the text is not. Nick Payne attachment: spanner.png___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Removing empty (drum) staff in a score, instrument name placement
On 4/24/09 1:51 PM, Toine Schreurs a.m.m.schre...@chem.uu.nl wrote: 1. You would need (the nonexisting) RemoveEmptyDrumStaffContext. But inspection of engraver-init.ly points to the solution: SNIP Toine, Thanks for a great, clear answer. You're making a great contribution to LilyPond by doing this. You not only help users, but you free up time for developers! Thanks, Carl ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: music expression explanation
On 4/24/09 4:22 PM, Peter Chubb lily.u...@chubb.wattle.id.au wrote: I'd really appreciate an appendix or something that gives Lily syntax as BNF, or as a syntax diagram. The syntax is very complex, and I've been caught out a number of times by things not being as I expected them to be from the NR --- not that the NR was wrong, but that the way elements are combined wasn't explicit. This has been asked for in the past. You'll find a thread on devel about it here: http://thread.gmane.org/gmane.comp.gnu.lilypond.devel/7431 My best result is here: http://thread.gmane.org/gmane.comp.gnu.lilypond.devel/7431/focus=7443 HTH, Carl ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: date in footer?
Graham Percival wrote: On Thu, Apr 23, 2009 at 05:10:11PM -0700, Chip wrote: I didn't want to print something in the titles, I wanted to print something in the footer. Am I being nitpicky here? To me those are two different sections of a page. \markup is \markup. Look at the first example on http://lilypond.org/doc/v2.12/Documentation/user/lilypond/Creating-titles See all those \markups ? ... in fact, see the version number in the output? ... for that matter, did you see the Note that you may use any Formatting text, commands in the header. ? Including a link to the \markup explanation in NR 1.8 ?! I still think this is a PEBKAC. What's a PEBKAC? I've never seen that before. Anyway, I still find it hard to relate the footer to titles and headers, it just doesn't make sense to me to include it with those. In my way of thinking the footer is a separate entity and should be treated as such. Irregardless, in this entire thread I found only one example that did what I was looking for and I posted that reference long ago. It's not in any of the documentation, and that's the problem. I couldn't find the info on putting the date in the footer in the docs but did find it in a referred to sample code. Why can't such sample be in the docs? It would certainly simplify things for us learning lilypond. And maybe we wouldn't ask so many questions on a list that is meant for asking questions where we just get arguments and references to stuff that really doesn't help much. If it weren't for the fact that the other notation apps suck so bad I be using one of 'em just to avoid this list. It's nothing but negative attitudes here. Rather than helping people right from the beginning it's 'look at NRsuch-n-such' or 'look at LMsuch-n-such'. Fine, give us the reference, but also give us some real help and examples because that is what's sorely missing from the docs. As far as I'm concerned this is the end of this thread, reply if you want, but I am finished with it. -- Chip - Graham No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.287 / Virus Database: 270.12.4/2078 - Release Date: 04/24/09 07:54:00 ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: date in footer?
Hi Chip, It's nothing but negative attitudes here. There are over 1000 posts of mine in the archive; I think you'll find that any negative attitude is in direct proportion to the I want this, but am not willing to do any basic work to have it done factor in the post to which I'm replying. The same goes for everyone else I know of, *including* Graham who is by far the least diplomatic of the primary listers. In other words... Bring a positive attitude and a willingness to put in a little effort for what you get in return, and you'll get a positive response. Come to the list with all take and no give, and you'll reap what you sow. Why can't such sample be in the docs? Because apparently people like you -- who think such a sample is necessary -- won't put in the small amount of work required to add it to the docs: As far as I'm concerned this is the end of this thread, reply if you want, but I am finished with it. I rest my case. :) Kieren. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Rotating TextSpanner
Hi Nick, Any suggestions (other than trial and error alignment of separate elements) on how to get an effect similar to that in the attached image, where the line is rotated but the text is not. The following should help: \version 2.12.2 setTS = { \override TextSpanner #'direction = #-1 \override TextSpanner #'dash-fraction = #0.4 \override TextSpanner #'dash-period = #1 \override TextSpanner #'(bound-details left text) = \markup \raise #0.5 stacc. \override TextSpanner #'(bound-details left padding) = #-1 \override TextSpanner #'bound-details #'right #'text = \markup { \draw-line #'(0 . 4) } \override TextSpanner #'(bound-details right padding) = #-1.5 \override TextSpanner #'(bound-details right Y) = #7 \override TextSpanner #'extra-offset = #'(0 . 9) } music = \relative { \override Staff.TimeSignature #'stencil = ##f \time 3/4 { \voiceOne s4 s8 r4. r2. } \new Voice { \voiceTwo \setTS s4 f,8\startTextSpan a b d f[ a b d f a ]\stopTextSpan } } \score { \music \layout { ragged-right = ##f } } Best, Kieren. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
RE: Bug on markups migrating from 2.10 to 2.12
I have attached the barre and half barre functions I use that work with 2.12, and your test.ly modified to use them. Nick -Original Message- From: lilypond-user-bounces+nick.payne=internode.on@gnu.org [mailto:lilypond-user-bounces+nick.payne=internode.on@gnu.org] On Behalf Of Allan Spagnol Comar Sent: Saturday, 25 April 2009 14:08 To: lilypond-user@gnu.org Subject: Bug on markups migrating from 2.10 to 2.12 Hi guys, I had just upgraded from 2.10 to 2.12.1, and I was used to use some music addons that I had done a few years ago for guitar sheets. In this version the result is nothing as expected. I had already tried to run convert-ly but still the same result. I am attaching the original guitar.ly a test.ly file, one pdf generated with 2.10 and one caled teste-new.pdf that has the output for the 2.12 version. Can some one please help me ? % postscript slash for half barres #(define slash 0.18 setlinewidth 0.76 1.53 moveto 0 -1.62 rlineto stroke) % Parameters % % fretnum % fret number (eg 5) % #osp% outside-staff-priority - normally set to #0 unless barre is colliding with other elements % #.(lpad . rpad) % left and right padding to apply to TextSpanner % #adjBreak % when barre wraps to following stave, set value to prevent TextSpanner on following stave starting above the clef symbol % #adjend % when barre wraps to following stave, set value to prevent TextSpanner going to the very end of the stave % % Example: % \barre 5 #0 #'(-0.5 . -1) #8 #1 % g,-2\startTextSpan c-3 bf'-4- ef,-1 af-1- c,-3\stopTextSpan % barre = #(define-music-function (parser location fretnum osp shorten adjBreak adjEnd) (string? number? pair? number? number?) #{ % set osp to 999 if spanner is colliding with another element % this will position the spanner outside all other elements % can be normally be set to zero \once \override TextSpanner #'outside-staff-priority = #$osp \once \override TextSpanner #'bound-details #'left #'text = \markup { \small { \concat { C . $fretnum } } } \once \override TextSpanner #'style = #'line \once \override TextSpanner #'font-shape = #'upright %draw a bracket edge on RHS \once \override TextSpanner #'bound-details #'right #'text = \markup { \draw-line #'(0 . -1) } % set alignment of line with reference to left text \once \override TextSpanner #'bound-details #'left #'stencil-align-dir-y = #CENTER % change X pos of LH and RH end as desired \once \override TextSpanner #'bound-details #'left #'padding = #(car $shorten) \once \override TextSpanner #'bound-details #'right #'padding = #(cdr $shorten) % allow adjustment of line end when it wraps to following stave \once \override TextSpanner #'bound-details #'right-broken #'padding = #$adjEnd % adjust LH end of line when it wraps to following stave so that it doesn't % extend to the left of the notes on the stave \once \override TextSpanner #'bound-details #'left-broken #'X = #$adjBreak % optional override to remove text and bracket edge at line breaks % \once \override TextSpanner #'bound-details #'left-broken #'text = ##f \once \override TextSpanner #'bound-details #'right-broken #'text = ##f #}) % barre below stave barreDn = #(define-music-function (parser location fretnum osp shorten adjBreak adjEnd) (string? number? pair? number? number?) #{ % set osp to 999 if spanner is colliding with another element % this will position the spanner outside all other elements % can be normally be set to zero \once \override TextSpanner #'outside-staff-priority = #$osp \once \override TextSpanner #'bound-details #'left #'text = \markup { \small { \concat { C . $fretnum } } } \once \override TextSpanner #'direction = #DOWN \once \override TextSpanner #'style = #'line \once \override TextSpanner #'font-shape = #'upright %draw a bracket edge on RHS \once \override TextSpanner #'bound-details #'right #'text = \markup { \draw-line #'(0 . 1) } % set alignment of line with reference to left text \once \override TextSpanner #'bound-details #'left #'stencil-align-dir-y = #CENTER % change X pos of LH and RH end as desired \once \override TextSpanner #'bound-details #'left #'padding = #(car $shorten) \once \override TextSpanner #'bound-details #'right #'padding = #(cdr $shorten) % allow adjustment of line end when it wraps to following stave \once \override TextSpanner #'bound-details #'right-broken #'padding = #$adjEnd % adjust LH end of line when it wraps to following stave so that it doesn't % extend to the left of the notes on the stave \once \override TextSpanner #'bound-details #'left-broken #'X = #$adjBreak % optional override to remove text and bracket edge at line breaks % \once \override TextSpanner #'bound-details #'left-broken #'text = ##f \once \override TextSpanner #'bound-details #'right-broken #'text = ##f #}) % Half barre. e.g. % \hbarre 5 #0 #'(-0.5 . -1) #8 #1 % g,-2\startTextSpan c-3 bf'-4- ef,-1 af-1- c,-3\stopTextSpan % hbarre = #(define-music-function
Re: Removing empty (drum) staff in a score, instrument name placement
Yes, thank you so very much! I tried your suggestions and they worked perfectly. My assignment is now ready to turn in... Kind regards, Ross Uber Quoting Carl D. Sorensen c_soren...@byu.edu: On 4/24/09 1:51 PM, Toine Schreurs a.m.m.schre...@chem.uu.nl wrote: 1. You would need (the nonexisting) RemoveEmptyDrumStaffContext. But inspection of engraver-init.ly points to the solution: SNIP Toine, Thanks for a great, clear answer. You're making a great contribution to LilyPond by doing this. You not only help users, but you free up time for developers! Thanks, Carl ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user