Defining substitution functions
I think is probably a painfully simple question, but I am really struggling to get started with Lilypond, so please take pity! I often have many measures with the same rhythm but different pitches, and I want to write a function that takes as arguments the pitches, and returns the formatted measure. An example of how I want things to work is given below. The two commented lines are how I want to invoke the function, and I want the output to be the two lines before the commented lines. This seems like it should be really easy to do, but I cannot make it happen. Thanks in advance for any help you can provide. \version 2.16.2 \score { \context Staff { a4 c8 a8 c2 | b4 b8 b8 b2 | % \mymeasure a c % \mymeasure b b } } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
staff switching in custom contexts not working
Hello all, In the attached snippet, I’ve defined some custom contexts (nested/hierarchical) for piano work. I can’t seem to get staff switching to work correctly: I get “ cannot change […] none of these in my family” errors. Any hints would be appreciated. Thanks! Kieren. BEGIN SNIPPET \version 2.19.17 \layout { \context { \Staff \name PianoSingleStaff \alias Staff } \context { \PianoSingleStaff \name PianoSingleStaffUpper \alias PianoSingleStaff \alias Staff \override DynamicLineSpanner #'direction = #UP \override TextScript #'direction = #UP } \context { \PianoSingleStaff \name PianoSingleStaffLower \alias PianoSingleStaff \alias Staff \override DynamicLineSpanner #'direction = #DOWN \override TextScript #'direction = #DOWN } \context { \PianoStaff \accepts PianoSingleStaffUpper \accepts PianoSingleStaffLower } } pfU = { \change PianoSingleStaff = piano_upper \oneVoice } pfL = { \change PIanoSingleStaff = piano_lower \oneVoice } theMusic = { \clef bass \pfL d,8 \pfU d' \pfL d, \pfU d' } \score { \new PianoStaff \new PianoSingleStaffUpper = piano_upper s1 \new PianoSingleStaffLower = piano_lower \theMusic } END SNIPPET ___ Kieren MacMillan, composer www: http://www.kierenmacmillan.info email: i...@kierenmacmillan.info ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Defining substitution functions
Hi Timmy, I know that this is not what you asked for, but for your information: Frescobaldi can copy the rhythm to other notes: Tools Rhythm Copy rhythm/Paste rhythm … That saves typing but it is no function like you asked for. Cheers, Joram ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: staff switching in custom contexts not working
2015-03-29 0:43 GMT+01:00 Kieren MacMillan kieren_macmil...@sympatico.ca: Hi Pierre, This warning's caused by a typo here : pfL = { \change PIanoSingleStaff = piano_lower \oneVoice } Eep. That’s embarrassing… Thanks for catching that. However, once it’s fixed, I still get a [different] error: ”not changing to same context type”. Any help for that? Thanks, Kieren. ___ Kieren MacMillan, composer www: http://www.kierenmacmillan.info email: i...@kierenmacmillan.info Hi Kieren, it has nothing to do with your custom-contexts. It's issue 1681 https://code.google.com/p/lilypond/issues/detail?id=1681 Workarounds are listed there. Another one, start 'theMusic' with: HTH, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Variables in instrumentName markup?
At 14:13 on 28 Mar 2015, Trevor Bača wrote: Hi, Is there a way to do ... foo = #12 \new Staff \with { instrumentName = \markup { \hcenter-in \foo Percussion } } { ... } \new Staff \with { instrumentName = \markup { \hcenter-in \foo Violin } } { ... } ... or equivalent? Just write #foo. Or even #(+ foo 3), #(/ foo 2.735), -- Mark Knoop ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: cadenza_and_accidentals-take2
- Original Message - From: Noeck noeck.marb...@gmx.de To: lilypond-user@gnu.org Sent: Saturday, March 28, 2015 3:55:07 PM Subject: Re: cadenza_and_accidentals-take2 A naive question: Could the \cadenzaOff command be changed in a way that it automatically implies the end of a measure at that point. Perhaps I overlook cases where this is not wanted, but where I use this command, I want a bar line and a new bar starting with beat one right after it. Any comments? Joram I can think of instances where the end of a cadenza might not be at the end of a measure. If a cadenza took place in the middle of a measure, then what? You certainly don't want a barline appearing there. I recall thinking at some point that perhaps LilyPond would count up the stuff not between \cadenzaOn ... \cadenzaOff and place barlines in the correct place (it doesn't). That is perhaps too much heavy lifting on the programming side and there may be reasons other than that for not doing it that way. It could well be that the current state of affairs which require either; 1) setting the end points of the cadenza so that everything at either end of the cadenza adds up to a full measure or 2) making the whole measure a cadenza and setting the measurePosition value to correctly place the next bar line and measure number increment ...may be the least troublesome. -David ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: staff switching in custom contexts not working
Hi Kieren, This warning's caused by a typo here : pfL = { \change PIanoSingleStaff = piano_lower \oneVoice } Cheers, Pierre 2015-03-28 22:40 GMT+01:00 Kieren MacMillan kieren_macmil...@sympatico.ca: Hello all, In the attached snippet, I’ve defined some custom contexts (nested/hierarchical) for piano work. I can’t seem to get staff switching to work correctly: I get “ cannot change […] none of these in my family” errors. Any hints would be appreciated. Thanks! Kieren. BEGIN SNIPPET \version 2.19.17 \layout { \context { \Staff \name PianoSingleStaff \alias Staff } \context { \PianoSingleStaff \name PianoSingleStaffUpper \alias PianoSingleStaff \alias Staff \override DynamicLineSpanner #'direction = #UP \override TextScript #'direction = #UP } \context { \PianoSingleStaff \name PianoSingleStaffLower \alias PianoSingleStaff \alias Staff \override DynamicLineSpanner #'direction = #DOWN \override TextScript #'direction = #DOWN } \context { \PianoStaff \accepts PianoSingleStaffUpper \accepts PianoSingleStaffLower } } pfU = { \change PianoSingleStaff = piano_upper \oneVoice } pfL = { \change PIanoSingleStaff = piano_lower \oneVoice } theMusic = { \clef bass \pfL d,8 \pfU d' \pfL d, \pfU d' } \score { \new PianoStaff \new PianoSingleStaffUpper = piano_upper s1 \new PianoSingleStaffLower = piano_lower \theMusic } END SNIPPET ___ Kieren MacMillan, composer www: http://www.kierenmacmillan.info email: i...@kierenmacmillan.info ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: staff switching in custom contexts not working
Hi Harm, it has nothing to do with your custom-contexts. It's issue 1681 Thanks! I simply removed the initial \pfL, and everything seems fine. Best, Kieren. ___ Kieren MacMillan, composer www: http://www.kierenmacmillan.info email: i...@kierenmacmillan.info ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: staff switching in custom contexts not working
Hi Pierre, This warning's caused by a typo here : pfL = { \change PIanoSingleStaff = piano_lower \oneVoice } Eep. That’s embarrassing… Thanks for catching that. However, once it’s fixed, I still get a [different] error: ”not changing to same context type”. Any help for that? Thanks, Kieren. ___ Kieren MacMillan, composer www: http://www.kierenmacmillan.info email: i...@kierenmacmillan.info ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Variables in instrumentName markup?
2015-03-28 20:27 GMT+01:00 Mark Knoop m...@opus11.net: At 14:13 on 28 Mar 2015, Trevor Bača wrote: Hi, Is there a way to do ... foo = #12 \new Staff \with { instrumentName = \markup { \hcenter-in \foo Percussion } } { ... } \new Staff \with { instrumentName = \markup { \hcenter-in \foo Violin } } { ... } ... or equivalent? Just write #foo. Or even #(+ foo 3), #(/ foo 2.735), -- Mark Knoop How about: \version 2.19.17 val = 12 \layout { \context { \Staff \override InstrumentName.after-line-breaking = #(lambda (grob) (ly:grob-set-property! grob 'long-text (markup #:box ;; only for debugging, delete me #:hcenter-in val (ly:grob-property grob 'long-text } } \new Staff \with { instrumentName = Percussion } { c''1 } \new Staff \with { instrumentName = Violin } { d''1 } HTH, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: cadenza_and_accidentals-take2
On Sat, Mar 28, 2015 at 07:45:51PM +, bobr...@centrum.is wrote: - Original Message - From: Noeck noeck.marb...@gmx.de A naive question: Could the \cadenzaOff command be changed in a way that it automatically implies the end of a measure at that point. I can think of instances where the end of a cadenza might not be at the end of a measure. I am speculating wildly, and I also am not generally a cadenza user, but perhaps \cadenzaOff could also be made to cooperate with \partial: % simple case, without \partial: \cadenzaOn % lots of notes go here \cadenzaOff % a bar line appears here, and beat 1 follows | c1 | c1 \bar |. Or: % a less simple case, using \partial: \cadenzaOn % lots of notes go here \cadenzaOff \partial 4. b'8 c'' d'' % a bar line appears here, and beat 1 follows | c1 | c1 \bar |. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: cadenza_and_accidentals-take2
Hi David, I recall thinking at some point that perhaps LilyPond would count up the stuff not between \cadenzaOn ... \cadenzaOff and place barlines in the correct place (it doesn't). What do you mean here differing from 1) (which is what I also proposed in a previous mail)? I don't understand this sentence and I would like to. Best, Joram ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: cadenza_and_accidentals-take2
- Original Message - From: Noeck noeck.marb...@gmx.de To: bobr...@centrum.is Cc: lilypond-user@gnu.org Sent: Saturday, March 28, 2015 7:53:58 PM Subject: Re: cadenza_and_accidentals-take2 Hi David, I recall thinking at some point that perhaps LilyPond would count up the stuff not between \cadenzaOn ... \cadenzaOff and place barlines in the correct place (it doesn't). What do you mean here differing from 1) (which is what I also proposed in a previous mail)? I don't understand this sentence and I would like to. Well, actually it works the way I described as long as the measure contains the cadenza sandwiched between non-cadenza stuff: %%% \version 2.18.2 \score { \relative c' { g2 \cadenzaOn e8-[ e e e e e e e e e-] \cadenzaOff g4 b %% barline appears here just fine c1 g'2 a4 b %% barline appears here before I want it, unless next line un-commented %\bar \cadenzaOn f8-[ f f f f f f f f f-] %% barline does not appear here, unless next line un-commented %\bar | \cadenzaOff c1 } } %%% So it's all less mysterious than I thought. It rather depends on how the measure ends. If it ends with non-cadenza material barlines will take care of themselves. If it ends with cadenza material then 'manual' barline controls must be used. -David ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: cadenza_and_accidentals-take2
- Original Message - From: Mark Knoop m...@opus11.net To: Lilypond User List lilypond-user@gnu.org Sent: Saturday, March 28, 2015 12:14:36 PM Subject: Re: cadenza_and_accidentals-take2 At 10:49 on 28 Mar 2015, bobr...@centrum.is wrote: - Original Message - From: Andrew Bernard andrew.bern...@gmail.com Yes, I have accidentals in the cadenza section. As I stated, however, in the final measure the cadenza has been ended and a bar line has been crossed so the key signature is in full force again. All accidentals from the previous measure are now null and void. Obviously, LilyPond is behaving the way it does. My point and question still stand: The reason is because you have forced the barline to appear, but LilyPond still thinks it is in the same bar for the purpose of accidentals. It's not a natural barline so you need to tell LilyPond where it is in the bar. Before \bar |, add the line: \set Timing.measurePosition = #(ly:make-moment 4/4) and all will be well without forcing any accidentals. This works exactly as you said. I experimented a bit. I'm actually in 2/4 time. Using: \set Timing.measurePosition = #(ly:make-moment 0/4) \set Timing.measurePosition = #(ly:make-moment 2/4) \set Timing.measurePosition = #(ly:make-moment 4/4) All produced the same result except with regard to measure numbers. By using: \set Timing.measurePosition = #(ly:make-moment 2/4) ...I was also able to dispense with 'correcting' the measure numbering. Thanks! -David ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: cadenza_and_accidentals-take2
At 10:49 on 28 Mar 2015, bobr...@centrum.is wrote: - Original Message - From: Andrew Bernard andrew.bern...@gmail.com Yes, I have accidentals in the cadenza section. As I stated, however, in the final measure the cadenza has been ended and a bar line has been crossed so the key signature is in full force again. All accidentals from the previous measure are now null and void. Obviously, LilyPond is behaving the way it does. My point and question still stand: The reason is because you have forced the barline to appear, but LilyPond still thinks it is in the same bar for the purpose of accidentals. It's not a natural barline so you need to tell LilyPond where it is in the bar. Before \bar |, add the line: \set Timing.measurePosition = #(ly:make-moment 4/4) and all will be well without forcing any accidentals. -- Mark Knoop ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Upgrading
I would try going to the command line and typing where lilypond. This will tell you all the places LilyPond is installed. Knute Snortum (via Gmail) On Fri, Mar 27, 2015 at 3:38 PM, Daniel Contreras daniel.c.9...@gmail.com wrote: Hello everyone, I'm installing Lily Pond on my Windows machine now. Well trying to. I have an old version 2.12 installed here, I uninstalled it and try to install the latest stable release. However when I finish installation and run the example file, diversion statement says 2.12. Is there something wrong here? Am I doing something wrong? Thank you for any help Daniel Contreras ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Download link to current devel version
Am 28. März 2015 11:51:27 MEZ, schrieb Phil Holmes m...@philholmes.net: - Original Message - From: Urs Liska u...@openlilylib.org To: Federico Bruni fedel...@gmail.com Cc: lilypond-user Mailinglist lilypond-user@gnu.org Sent: Saturday, March 28, 2015 8:12 AM Subject: Re: Download link to current devel version Am 28.03.2015 um 07:38 schrieb Federico Bruni: Il 28/mar/2015 07:33 Federico Bruni fedel...@gmail.com mailto:fedel...@gmail.com ha scritto: Il 28/mar/2015 02:48 Urs Liska u...@openlilylib.org mailto:u...@openlilylib.org ha scritto: Is there a way to point links to the current development version download, i.e. a way to have a link in a program that automatically downloads the current version, without having to manually supply the version? I'm curious: are you working on a Frescobaldi feature? No. As I'm so busy with das trunkne Lied and openlilylib at the moment I don't have any capacity to think in that direction. But of course, if we had a generic way to address the current stable and development version downloads we can use that for letting Frescobaldi install or update LilyPond versions. Yesterday I realized that I had forgotten to update the LilyPond version in the automated test script we now have for openLilyLib, and that was what made me think about the issue. I can't find anything that you might use here: http://download.linuxaudio.org/lilypond/binaries/ But you can take another approach: use the /development and /stable alias defined in lilypond.org http://lilypond.org htaccess to find dynamically the new download links. Oops, forget it. This is true for documentation only. Download pages are always the same: http://lilypond.org/download.html (stable) http://lilypond.org/development.html (unstable) But I guess that you need a permanent link. It should be asked to linuxaudio.org http://linuxaudio.org OK, I will see what I can get from them. Best Urs Since the installers are all version specific (which I approve of: I keep them all separate in a single downloads directory) I don't believe you can link to a simple development installer. You would need to parse the download pages. Ah, OK, that would be possible. However, the most convenient interface would be a generic symlink on linuxaudio that (automatically?) gets updated when new versions are uploaded.. Urs -- Phil Holmes ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Download link to current devel version
Original Message - From: Urs Liska u...@openlilylib.org Ah, OK, that would be possible. However, the most convenient interface would be a generic symlink on linuxaudio that (automatically?) gets updated when new versions are uploaded.. Urs I think that's unlikely to be possible: I don't have a login on linuxaudio: the installation files are copied over from lilypond.org by a cron job. -- Phil Holmes ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Download link to current devel version
Am 28. März 2015 12:45:55 MEZ, schrieb Phil Holmes m...@philholmes.net: Original Message - From: Urs Liska u...@openlilylib.org Ah, OK, that would be possible. However, the most convenient interface would be a generic symlink on linuxaudio that (automatically?) gets updated when new versions are uploaded.. Urs I think that's unlikely to be possible: I don't have a login on linuxaudio: the installation files are copied over from lilypond.org by a cron job. Who is responsible for this, could you give me some contact? Of course such a cron job could update a symlink. Urs -- Phil Holmes ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Download link to current devel version
- Original Message - From: Urs Liska u...@openlilylib.org To: Phil Holmes m...@philholmes.net; Federico Bruni fedel...@gmail.com Cc: lilypond-user Mailinglist lilypond-user@gnu.org Sent: Saturday, March 28, 2015 11:51 AM Subject: Re: Download link to current devel version Am 28. März 2015 12:45:55 MEZ, schrieb Phil Holmes m...@philholmes.net: Original Message - From: Urs Liska u...@openlilylib.org Who is responsible for this, could you give me some contact? Of course such a cron job could update a symlink. Urs It's one of Jan's. -- Phil Holmes ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: cadenza_and_accidentals-take2
Hi David, how about this: \version 2.18.2 \score { \relative c' { \clef F \key a \major r4-\fermata cis4 ~ cis8.-[ \grace { dis32 cis bis cis } dis!16-] \cadenzaOn e4 ~ \teeny \stemUp e32-[ dis e dis-] \cadenzaOff cis-[ bis! c b-] a-[ gis a gis-] %% 4/4 measure is completed here naturally \stemNeutral \normalsize g8[ e' dis! cis] %% no accidental on cis } } Here the \cadenzaOn/Off commands are put such that the whole cadenza part is kept counting a full measure: It counts the first 3/4, then it skips 3/8 (e4 and 4 1/32 notes) and then continues counting the last 8 32nd notes which add up to 1/4 and complete the measure. That way the bar naturally appears at the point where you switch back to \normalSize. That way the whole cadenza is counted as one measure - is that what you like? And no changes in the timing and bar lines are needed. Cheers, Joram ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Variables in instrumentName markup?
Hi, Is there a way to do ... foo = #12 \new Staff \with { instrumentName = \markup { \hcenter-in \foo Percussion } } { ... } \new Staff \with { instrumentName = \markup { \hcenter-in \foo Violin } } { ... } ... or equivalent? (The motivation being to use the same amount of horizontal space in a couple of dozen different instrument names.) Trevor. -- Trevor Bača trevorb...@gmail.com ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: cadenza_and_accidentals-take2
A naive question: Could the \cadenzaOff command be changed in a way that it automatically implies the end of a measure at that point. Perhaps I overlook cases where this is not wanted, but where I use this command, I want a bar line and a new bar starting with beat one right after it. Any comments? Joram ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Download link to current devel version
Il 28/mar/2015 02:48 Urs Liska u...@openlilylib.org ha scritto: Is there a way to point links to the current development version download, i.e. a way to have a link in a program that automatically downloads the current version, without having to manually supply the version? I'm curious: are you working on a Frescobaldi feature? I can't find anything that you might use here: http://download.linuxaudio.org/lilypond/binaries/ But you can take another approach: use the /development and /stable alias defined in lilypond.org htaccess to find dynamically the new download links. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: cadenza_and_accidentals
Why don’t you remove the ! after the last cis? Andrew ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Download link to current devel version
- Original Message - From: Urs Liska u...@openlilylib.org To: Federico Bruni fedel...@gmail.com Cc: lilypond-user Mailinglist lilypond-user@gnu.org Sent: Saturday, March 28, 2015 8:12 AM Subject: Re: Download link to current devel version Am 28.03.2015 um 07:38 schrieb Federico Bruni: Il 28/mar/2015 07:33 Federico Bruni fedel...@gmail.com mailto:fedel...@gmail.com ha scritto: Il 28/mar/2015 02:48 Urs Liska u...@openlilylib.org mailto:u...@openlilylib.org ha scritto: Is there a way to point links to the current development version download, i.e. a way to have a link in a program that automatically downloads the current version, without having to manually supply the version? I'm curious: are you working on a Frescobaldi feature? No. As I'm so busy with das trunkne Lied and openlilylib at the moment I don't have any capacity to think in that direction. But of course, if we had a generic way to address the current stable and development version downloads we can use that for letting Frescobaldi install or update LilyPond versions. Yesterday I realized that I had forgotten to update the LilyPond version in the automated test script we now have for openLilyLib, and that was what made me think about the issue. I can't find anything that you might use here: http://download.linuxaudio.org/lilypond/binaries/ But you can take another approach: use the /development and /stable alias defined in lilypond.org http://lilypond.org htaccess to find dynamically the new download links. Oops, forget it. This is true for documentation only. Download pages are always the same: http://lilypond.org/download.html (stable) http://lilypond.org/development.html (unstable) But I guess that you need a permanent link. It should be asked to linuxaudio.org http://linuxaudio.org OK, I will see what I can get from them. Best Urs Since the installers are all version specific (which I approve of: I keep them all separate in a single downloads directory) I don't believe you can link to a simple development installer. You would need to parse the download pages. -- Phil Holmes ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
cadenza_and_accidentals-take2
I provided a bad example in my previous attempt in an effort to be minimal. Here goes with one that actually illustrates the issue: I ran into some seemingly odd output when using \cadenzaOn and \cadenzaOff. According to this: http://www.lilypond.org/doc/v2.18/Documentation/notation/displaying-rhythms#unmetered-music ...it is clear that using \bar | will not reset accidental display rules. What it doesn't say is that even placing \cadenzaOff *before* the \bar | doesn't do so, either. Here is the example from the manual with an added key signature and a slight rearrangement of the input for illustration. % \version 2.18.2\version 2.18.2 \score { \relative c' { \clef F \key a \major r4-\fermata cis4 ~ \cadenzaOn cis8.-[ \grace { dis32 cis bis cis } dis!16-] e4 ~ \teeny \stemUp e32-[ dis e dis-] cis-[ bis! c b-] a-[ gis a gis-] \cadenzaOff %% cadenza is off \stemNeutral \normalsize \bar | %% new measure g8-[ e' dis! cis-] %% why is cis with accidental/how do I suppress it? } } % I understand that simply placing \bar | won't reset the accidental behavior but it is curious that a \bar | after \cadenzaOff also doesn't do so immediately. That is not clear from the documentation. In the above example the cis in the final measure has an accidental while it is necessary to write 'dis!' in that same measure. Obviously this is due to accidentals contained within \cadenzaOn - \cadenzaOff but it is mysterious that this hangs on *after* \cadenzaOff. So, two things: 1) The documentation seems somewhat wanting in this case. 2) How do I suppress a single accidental? -David ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Download link to current devel version
Am 28.03.2015 um 07:38 schrieb Federico Bruni: Il 28/mar/2015 07:33 Federico Bruni fedel...@gmail.com mailto:fedel...@gmail.com ha scritto: Il 28/mar/2015 02:48 Urs Liska u...@openlilylib.org mailto:u...@openlilylib.org ha scritto: Is there a way to point links to the current development version download, i.e. a way to have a link in a program that automatically downloads the current version, without having to manually supply the version? I'm curious: are you working on a Frescobaldi feature? No. As I'm so busy with das trunkne Lied and openlilylib at the moment I don't have any capacity to think in that direction. But of course, if we had a generic way to address the current stable and development version downloads we can use that for letting Frescobaldi install or update LilyPond versions. Yesterday I realized that I had forgotten to update the LilyPond version in the automated test script we now have for openLilyLib, and that was what made me think about the issue. I can't find anything that you might use here: http://download.linuxaudio.org/lilypond/binaries/ But you can take another approach: use the /development and /stable alias defined in lilypond.org http://lilypond.org htaccess to find dynamically the new download links. Oops, forget it. This is true for documentation only. Download pages are always the same: http://lilypond.org/download.html (stable) http://lilypond.org/development.html (unstable) But I guess that you need a permanent link. It should be asked to linuxaudio.org http://linuxaudio.org OK, I will see what I can get from them. Best Urs -- Urs Liska www.openlilylib.org ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: cadenza_and_accidentals-take2
- Original Message - From: Andrew Bernard andrew.bern...@gmail.com To: bobr...@centrum.is, Lillypond Users Mailing List lilypond-user@gnu.org Sent: Saturday, March 28, 2015 10:23:40 AM Subject: Re: cadenza_and_accidentals-take2 Well, you have a C natural in the group of 32s, and then in the last bar a C#, so generally engravers will put a sharp to revert the previous natural and let the performer know we are back to normal (cadenza or not). That’s how I learned music (I think!). Yes, I have accidentals in the cadenza section. As I stated, however, in the final measure the cadenza has been ended and a bar line has been crossed so the key signature is in full force again. All accidentals from the previous measure are now null and void. Obviously, LilyPond is behaving the way it does. My point and question still stand: POINT: The documentation is not entirely clear on this issue. It is not spelled out when, precisely, the key signature/accidental rules are recognized as back in force. QUESTION: How do I suppress the accidental on the cis in the final measure? A related question is; why is it necessary to force the accidental on the dis in the final measure? I suspect it is for the same reason that the cis has the accidental. This somewhat more pared-down example illustrates what I mean: % \version 2.18.2 \score { \relative c' { \clef F \time 2/4 \key a \major r4-\fermata cis4 ~ \cadenzaOn cis8.-[ dis!16-] e4 \teeny dis16-[ c-] \cadenzaOff %% CADENZA IS OFF \normalsize \bar | %% NEW MEASURE g8-[ e' dis! cis-] %% WHY IS CIS WITH ACCIDENTAL/HOW TO SUPPRESS? } } % Also, when putting manual beaming, you have ‘-[‘ and ‘-]’ but you only need the square brackets. It does not mess anything up but it is a lot of extra typing. I am aware of this. -David ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Download link to current devel version
Il 28/mar/2015 07:33 Federico Bruni fedel...@gmail.com ha scritto: Il 28/mar/2015 02:48 Urs Liska u...@openlilylib.org ha scritto: Is there a way to point links to the current development version download, i.e. a way to have a link in a program that automatically downloads the current version, without having to manually supply the version? I'm curious: are you working on a Frescobaldi feature? I can't find anything that you might use here: http://download.linuxaudio.org/lilypond/binaries/ But you can take another approach: use the /development and /stable alias defined in lilypond.org htaccess to find dynamically the new download links. Oops, forget it. This is true for documentation only. Download pages are always the same: http://lilypond.org/download.html (stable) http://lilypond.org/development.html (unstable) But I guess that you need a permanent link. It should be asked to linuxaudio.org ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
cadenza_and_accidentals
I ran into some seemingly odd output when using \cadenzaOn and \cadenzaOff. According to this: http://www.lilypond.org/doc/v2.18/Documentation/notation/displaying-rhythms#unmetered-music ...it is clear that using \bar | will not reset accidental display rules. What it doesn't say is that even placing \cadenzaOff *before* the \bar | doesn't do so, either. Here is the example from the manual with an added key signature and a slight rearrangement of the input for illustration. % \version 2.18.2 \score { \relative c'' { \key a \major c4 d e d \cadenzaOn cis4 d cis d \bar | % First cis is printed without alteration even if it's after a \bar %% ** Even after \cadenzaOff ** \cadenzaOff \bar | cis4 d cis! d } } % I understand that simply placing \bar | won't reset the accidental behavior but it is curious that a \bar | after \cadenzaOff also doesn't do so immediately. That is not clear from the documentation. Also, in this example it is necessary to suppress not only the first cis in the last measure but the second one as well. In the printed output the cadenza is finished and a bar line has been crossed. The key signature is now in full force. So, two things: 1) The documentation seems somewhat wanting in this case. 2) How do I suppress a single accidental? -David ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: cadenza_and_accidentals-take2
Well, you have a C natural in the group of 32s, and then in the last bar a C#, so generally engravers will put a sharp to revert the previous natural and let the performer know we are back to normal (cadenza or not). That’s how I learned music (I think!). Also, when putting manual beaming, you have ‘-[‘ and ‘-]’ but you only need the square brackets. It does not mess anything up but it is a lot of extra typing. Andrew On 28 March 2015 at 21:04:27, bobr...@centrum.is (bobr...@centrum.is) wrote: I provided a bad example in my previous attempt in an effort to be minimal. Here goes with one that actually illustrates the issue: ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Automatic breaks not working?
- Original Message - From: Brian Barker b.m.bar...@btinternet.com To: lilypond-user@gnu.org Cc: A. Sentman asentman...@gmail.com Sent: Saturday, March 28, 2015 1:22 AM Subject: Re: Automatic breaks not working? At 22:47 27/03/2015 +, A. Sentman wrote: I have a couple of files where Lilypond fails to wrap the score across multiple lines, and instead cuts it off at the edge of the page. Most of these are fairly large files, and it seems to happen consistently if there are more staves than can fit vertically on the page. What I did: I used lilypond to render the example at the bottom of this post. What I expected: The score wraps to the next line after the sixth measure. What happened: The score does not wrap, instead running off of the edge of the page. This is because your score makes no sense, I'm afraid. With a time signature of C, your second occurrence of r4.. in the top staff spans the line between the first and second bars. If I comment out the initial r4 and r16, in the top staff, the score breaks after bar 5 and again after bar 9. This may not be the music that you mean, but it illustrates the cause of the problem. The third staff then throws a similar problem in bar 13, where the d4. again spans the line between bars 13 and 14. Once you have a score that properly respects bar lines, the automatic line breaks will behave themselves. I trust this helps. Brian Barker This problem is shown up if bar checks are used. I suggest the original poster should read the sections on bar checks in the Learning Manual and Notation Reference. -- Phil Holmes ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user