RE: Tweaking in scheme
-Original Message- From: Thomas Morley [mailto:thomasmorle...@gmail.com] Sent: Monday, June 29, 2015 12:10 PM To: Peter Gentry Cc: lilypond-user Subject: Re: Tweaking in scheme 2015-06-29 12:54 GMT+02:00 Peter Gentry peter.gen...@sunscales.co.uk: Tweaking in scheme The heart of the scheme procedure I'm trying is #(define (instrumentrange music instrument ) ( ly:music? string? ) ; extract the various portions of the music object (let ((es (ly:music-property music 'elements)) (e (ly:music-property music 'element)) (p (ly:music-property music 'pitch)));rebuild the pitch and if a changed pitch add the color tweak ... ... (if (ly:pitch? p) (let ((new-pitch (naturalize-instrument-range p instrument))) (ly:music-set-property! music 'pitch new-pitch) (if (and (not (equal? p new-pitch)) (color? my-color)) (ly:music-set-property! music 'tweaks (acons 'color my-color (ly:music-property music 'tweaks)) music)) This works fine and I have used \displayMusic to show the music stream to investigate other possible properties that can be specified in this way. I would like to specify note head style but this does not seem to appear as a property that can be applied in the acons list. In display music there is a complex list This is an \override (make-music 'ContextSpeccedMusic 'contextt-type 'Bottom 'element (make-music 'OverrideProperty 'pop-first #t 'grob-property-path (list (quote style)) 'grob-value 'harmonic 'symbol 'NoteHead)) Can this in any way be implimented by the 'tweaks method. How about: \version 2.19.21 %% regard output of: \displayMusic { \tweak style #'harmonic a'1 } tweakI = #(define-music-function (parser location music)(ly:music?) (ly:music-set-property! music 'tweaks (acons 'style 'harmonic (acons 'color red (ly:music-property music 'tweaks music) { \tweakI a'1 } %% or: tweakII = #(define-music-function (parser location music)(ly:music?) #{ \tweak color #red \tweak style #'harmonic $music #}) { \tweakII a'1 } HTH, Harm Thankyou very musch that works a treat. I couldn't find any specific information in the manuals and the displayMusic output contains a lot more than simply 'style and 'harmonic. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: [SPAM] Re: Tweaking in scheme
Peter Gentry peter.gen...@sunscales.co.uk writes: -Original Message- From: David Kastrup [mailto:d...@gnu.org] One can also try to do this kind of iteration oneself in order to only use the less invasive tweaks and get the color covered: \version 2.19.22 tweakIV = #(define-music-function (music) (ly:music?) (map-some-music (lambda (m) (and (music-is-of-type? 'note-event) (tweak 'color red (tweak 'style 'harmonic m music)) If version 2.19.22 is not available, one can retain the parser/location arguments and replace the (tweak ...) line by the core of any of Harm's proposals. map-some-music has been available since 2.16.0 at least, and all the rest for longer. Thanks for that I have downloaded 2.19.22 for even more fun Well, people got used to the entrails of LilyPond hanging all over their code for the last dozen years or however long music functions existed. But the road to working with Scheme is less yucky if one can keep them out of sight until needed. And (tweak 'color red (tweak 'style 'harmonic m)) beats having to write ((ly:music-function-extract tweak) parser location 'color red ((ly:music-function-extract tweak) parser location 'style 'harmonic m)) even though the latter was likely faster since it did not bother checking the arguments for correctness. But I don't actually think any user-level code ever used ly:music-function-extract: people either used #{...#} once it was powerful enough for that, or manually emulated whatever the music function did. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: [SPAM] Re: Tweaking in scheme
David Kastrup d...@gnu.org writes: Peter Gentry peter.gen...@sunscales.co.uk writes: -Original Message- From: David Kastrup [mailto:d...@gnu.org] One can also try to do this kind of iteration oneself in order to only use the less invasive tweaks and get the color covered: \version 2.19.22 tweakIV = #(define-music-function (music) (ly:music?) (map-some-music (lambda (m) (and (music-is-of-type? 'note-event) Yikes. Of course (music-is-of-type? m 'note-event) here. (tweak 'color red (tweak 'style 'harmonic m music)) -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
transposable figured bass?
Dear community, I run in a problem, when I transpose the below quoted figured bass from g to f. In this special case the natural sign before the 5 in the 2nd chord should be a flat sign. Is it possible to get a transposable version of this figured bass? Here is my example: \version 2.18.2 global= { \key g \major \time 4/4 } Music = \relative g { \clef bass \global g1 b, c d g, \bar|. } fgbass = \figuremode { s1 6 5! % here's the problem, it must be a flat sign in f major s 6 42 5 3 } \markup{A figured bass in g major:} \score { \new Staff \Music \new FiguredBass {\global \fgbass } } Music = \transpose g f \Music \markup{The same thing in f major:} \score { \new Staff \Music \new FiguredBass{ \transpose g f { \global \fgbass } } } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
RE: [SPAM] Re: Tweaking in scheme
-Original Message- From: David Kastrup [mailto:d...@gnu.org] Sent: Monday, June 29, 2015 12:40 PM To: Thomas Morley Cc: Peter Gentry; lilypond-user Subject: [SPAM] Re: Tweaking in scheme Thomas Morley thomasmorle...@gmail.com writes: How about: \version 2.19.21 %% regard output of: \displayMusic { \tweak style #'harmonic a'1 } tweakI = #(define-music-function (parser location music)(ly:music?) (ly:music-set-property! music 'tweaks (acons 'style 'harmonic (acons 'color red (ly:music-property music 'tweaks music) { \tweakI a'1 } %% or: tweakII = #(define-music-function (parser location music)(ly:music?) #{ \tweak color #red \tweak style #'harmonic $music #}) { \tweakII a'1 } As 2.19.22 is now available for download, let me smugly suggest: \version 2.19.22 tweakIII = #(define-music-function (music) (ly:music?) (tweak 'color red (tweak 'style 'harmonic music))) However, like all of the previous proposals, this relies on music being a single tweakable item. For noteheads, there is the more thorough style-note-heads function employed by \harmonicNote, so this part could be done by (harmonicNote music) instead (\harmonicNote uses a tweak for a single note and override/revert for everything else). One can also try to do this kind of iteration oneself in order to only use the less invasive tweaks and get the color covered: \version 2.19.22 tweakIV = #(define-music-function (music) (ly:music?) (map-some-music (lambda (m) (and (music-is-of-type? 'note-event) (tweak 'color red (tweak 'style 'harmonic m music)) If version 2.19.22 is not available, one can retain the parser/location arguments and replace the (tweak ...) line by the core of any of Harm's proposals. map-some-music has been available since 2.16.0 at least, and all the rest for longer. -- David Kastrup Thanks for that I have downloaded 2.19.22 for even more fun ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Tweaking in scheme
Tweaking in scheme The heart of the scheme procedure I'm trying is #(define (instrumentrange music instrument ) ( ly:music? string? ) ; extract the various portions of the music object (let ((es (ly:music-property music 'elements)) (e (ly:music-property music 'element)) (p (ly:music-property music 'pitch)));rebuild the pitch and if a changed pitch add the color tweak ... ... (if (ly:pitch? p) (let ((new-pitch (naturalize-instrument-range p instrument))) (ly:music-set-property! music 'pitch new-pitch) (if (and (not (equal? p new-pitch)) (color? my-color)) (ly:music-set-property! music 'tweaks (acons 'color my-color (ly:music-property music 'tweaks)) music)) This works fine and I have used \displayMusic to show the music stream to investigate other possible properties that can be specified in this way. I would like to specify note head style but this does not seem to appear as a property that can be applied in the acons list. In display music there is a complex list (make-music 'ContextSpeccedMusic 'contextt-type 'Bottom 'element (make-music 'OverrideProperty 'pop-first #t 'grob-property-path (list (quote style)) 'grob-value 'harmonic 'symbol 'NoteHead)) Can this in any way be implimented by the 'tweaks method. regards Peter Gentry ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Tweaking in scheme
Thomas Morley thomasmorle...@gmail.com writes: How about: \version 2.19.21 %% regard output of: \displayMusic { \tweak style #'harmonic a'1 } tweakI = #(define-music-function (parser location music)(ly:music?) (ly:music-set-property! music 'tweaks (acons 'style 'harmonic (acons 'color red (ly:music-property music 'tweaks music) { \tweakI a'1 } %% or: tweakII = #(define-music-function (parser location music)(ly:music?) #{ \tweak color #red \tweak style #'harmonic $music #}) { \tweakII a'1 } As 2.19.22 is now available for download, let me smugly suggest: \version 2.19.22 tweakIII = #(define-music-function (music) (ly:music?) (tweak 'color red (tweak 'style 'harmonic music))) However, like all of the previous proposals, this relies on music being a single tweakable item. For noteheads, there is the more thorough style-note-heads function employed by \harmonicNote, so this part could be done by (harmonicNote music) instead (\harmonicNote uses a tweak for a single note and override/revert for everything else). One can also try to do this kind of iteration oneself in order to only use the less invasive tweaks and get the color covered: \version 2.19.22 tweakIV = #(define-music-function (music) (ly:music?) (map-some-music (lambda (m) (and (music-is-of-type? 'note-event) (tweak 'color red (tweak 'style 'harmonic m music)) If version 2.19.22 is not available, one can retain the parser/location arguments and replace the (tweak ...) line by the core of any of Harm's proposals. map-some-music has been available since 2.16.0 at least, and all the rest for longer. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Changing notehead sizes within chords
Hello group, Is there a way to apply a NoteHead font-size once to a single music expression and then combine it with one or more other music expressions to get different notehead sizes on a single set of stems (i.e., one Voice context)? This is a common notation for pop music where there is typically one lead vocal part with one or more harmony voices which are mixed lower. Please see my tiny example below. Thanks, David %%% Tiny Example %%% \version 2.18.2 %% Lead voice with backing harmony voices leadVoice = \relative c'' { c4( d e2 ) } bkgdVoiceI = \relative c'' { g4( b c2 ) } bkgdVoiceII = \relative c'' { e4( f g2 ) } %% Desired output \new Voice \relative c'' { \tweak font-size #-3 g c \tweak font-size #-3 e 4( \tweak font-size #-3 b d \tweak font-size #-3 f \tweak font-size #-3 c e \tweak font-size #-3 g 2 ) } %% Actual output \new Voice \override NoteHead.font-size = #-3 { \bkgdVoiceII } \leadVoice \override NoteHead.font-size = -3 { \bkgdVoiceI } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Tweaking in scheme
David Kastrup wrote Monday, June 29, 2015 12:40 PM As 2.19.22 is now available for download, let me smugly suggest: \version 2.19.22 tweakIII = #(define-music-function (music) (ly:music?) (tweak 'color red (tweak 'style 'harmonic music))) However, like all of the previous proposals, this relies on music being a single tweakable item. For noteheads, there is the more thorough style-note-heads function employed by \harmonicNote, so this part could be done by (harmonicNote music) instead (\harmonicNote uses a tweak for a single note and override/revert for everything else). These simplifications to music functions are a major improvement! Your smugness is fully justified! Pride too. Thanks! Trevor ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: transposable figured bass?
Chris Yate chrisy...@gmail.com writes: On 29 June 2015 at 14:20, Stefan Thomas kontrapunktste...@gmail.com wrote: Dear community, I run in a problem, when I transpose the below quoted figured bass from g to f. In this special case the natural sign before the 5 in the 2nd chord should be a flat sign. Is it possible to get a transposable version of this figured bass? [...] Music = \transpose g f \Music \markup{The same thing in f major:} \score { \new Staff \Music \new FiguredBass{ \transpose g f { \global \fgbass } } } This is an interesting problem and I suspect it would need some coding (Scheme?). This is not soluble with the current input: changing accidentals would require the engravers in FiguredBass to actually know what the base pitch of the figure is, but that base pitch is typeset in a different context not associated in any programmatic manner with FiguredBass. So instead of writing 5+, one would need to be able to write something like b5+ (with b being the base note of the figure). And of course, once one has all the information in a single \figuremode input anyway, one would like to be able to engrave the baseline without having to retype it (probably by having the engravers in Staff simply ignore any figure information). -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Tweaking in scheme
Hi all, On Jun 29, 2015, at 7:40 AM, David Kastrup d...@gnu.org wrote: As 2.19.22 is now available for download, let me smugly suggest: \version 2.19.22 tweakIII = #(define-music-function (music) (ly:music?) (tweak 'color red (tweak 'style 'harmonic music))) BRAVO! This is wonderful. Kudos and thanks. Kieren. Kieren MacMillan, composer ‣ website: www.kierenmacmillan.info ‣ email: i...@kierenmacmillan.info ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: transposable figured bass?
On 29 June 2015 at 14:20, Stefan Thomas kontrapunktste...@gmail.com wrote: Dear community, I run in a problem, when I transpose the below quoted figured bass from g to f. In this special case the natural sign before the 5 in the 2nd chord should be a flat sign. Is it possible to get a transposable version of this figured bass? Here is my example: \version 2.18.2 global= { \key g \major \time 4/4 } Music = \relative g { \clef bass \global g1 b, c d g, \bar|. } fgbass = \figuremode { s1 6 5! % here's the problem, it must be a flat sign in f major s 6 42 5 3 } \markup{A figured bass in g major:} \score { \new Staff \Music \new FiguredBass {\global \fgbass } } Music = \transpose g f \Music \markup{The same thing in f major:} \score { \new Staff \Music \new FiguredBass{ \transpose g f { \global \fgbass } } } This is an interesting problem and I suspect it would need some coding (Scheme?). As you probably know, docuentation says: Although the support for figured bass may superficially resemble chord support, it is much simpler. \figuremode mode simply stores the figures and the FiguredBass context prints them as entered. There is no conversion to pitches. I wonder whether you or someone could write a new engraver for chords FiguredChordsEngraver so you would enter them as per http://lilypond.org/doc/v2.18/Documentation/notation/guitar and see figured bass output... Chris ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Tweaking in scheme
Am 29.06.2015 um 13:40 schrieb David Kastrup: As 2.19.22 is now available for download, let me smugly suggest: \version 2.19.22 tweakIII = #(define-music-function (music) (ly:music?) (tweak 'color red (tweak 'style 'harmonic music))) As I've expressed earlier somewhere I think this is a substantial improvement with regard to LilyPond usability. I think we should have a proper post about this on Scores of Beauty, giving it more depth than the documentation can provide (which will actually more or less replace old documentation with new instead of pointing out the differences). Is there anybody around who is capable and volunteers introducing the users to that new syntax? Urs ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: transposable figured bass?
Am Montag, 29. Juni 2015 15:20 CEST, Stefan Thomas kontrapunktste...@gmail.com schrieb: Dear community, I run in a problem, when I transpose the below quoted figured bass from g to f. In this special case the natural sign before the 5 in the 2nd chord should be a flat sign. Is it possible to get a transposable version of this figured bass? Just a question - is this an example drawn from a historic source? What you call a flat sign would back then be called a fa-sign and the corresponing sharp sign would be read as a mi sign. Both voces are independent of transposition, so C♭ does _not_ denote a C flat (ces) but rather a C-fa which is exactly what is needed in your example in _both_ cases, so (in case this is not an original source) you might better write 65♭ in the first, untransposed case. HTH Ralf Mattes ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Tweaking in scheme
2015-06-29 12:54 GMT+02:00 Peter Gentry peter.gen...@sunscales.co.uk: Tweaking in scheme The heart of the scheme procedure I'm trying is #(define (instrumentrange music instrument ) ( ly:music? string? ) ; extract the various portions of the music object (let ((es (ly:music-property music 'elements)) (e (ly:music-property music 'element)) (p (ly:music-property music 'pitch)));rebuild the pitch and if a changed pitch add the color tweak ... ... (if (ly:pitch? p) (let ((new-pitch (naturalize-instrument-range p instrument))) (ly:music-set-property! music 'pitch new-pitch) (if (and (not (equal? p new-pitch)) (color? my-color)) (ly:music-set-property! music 'tweaks (acons 'color my-color (ly:music-property music 'tweaks)) music)) This works fine and I have used \displayMusic to show the music stream to investigate other possible properties that can be specified in this way. I would like to specify note head style but this does not seem to appear as a property that can be applied in the acons list. In display music there is a complex list This is an \override (make-music 'ContextSpeccedMusic 'contextt-type 'Bottom 'element (make-music 'OverrideProperty 'pop-first #t 'grob-property-path (list (quote style)) 'grob-value 'harmonic 'symbol 'NoteHead)) Can this in any way be implimented by the 'tweaks method. How about: \version 2.19.21 %% regard output of: \displayMusic { \tweak style #'harmonic a'1 } tweakI = #(define-music-function (parser location music)(ly:music?) (ly:music-set-property! music 'tweaks (acons 'style 'harmonic (acons 'color red (ly:music-property music 'tweaks music) { \tweakI a'1 } %% or: tweakII = #(define-music-function (parser location music)(ly:music?) #{ \tweak color #red \tweak style #'harmonic $music #}) { \tweakII a'1 } HTH, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: transposable figured bass?
2015-06-29 18:08 GMT+02:00 Ralf Mattes r.mat...@mh-freiburg.de: Am Montag, 29. Juni 2015 15:20 CEST, Stefan Thomas kontrapunktste...@gmail.com schrieb: Dear community, I run in a problem, when I transpose the below quoted figured bass from g to f. In this special case the natural sign before the 5 in the 2nd chord should be a flat sign. Is it possible to get a transposable version of this figured bass? Just a question - is this an example drawn from a historic source? What you call a flat sign would back then be called a fa-sign and the corresponing sharp sign would be read as a mi sign. Both voces are independent of transposition, so C♭ does _not_ denote a C flat (ces) but rather a C-fa which is exactly what is needed in your example in _both_ cases, so (in case this is not an original source) you might better write 65♭ in the first, untransposed case. HTH Ralf Mattes I'd like to second that, it's what I learned decades ago, iirc ;) See also the attached png from BWV 121 Sorry for the bad resolution. (Although the right Hand is not Bach ofcourse.) The score can be downloaded at http://imslp.org/wiki/Christum_wir_sollen_loben_schon,_BWV_121_%28Bach,_Johann_Sebastian%29 Cheers, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Changing notehead sizes within chords
2015-06-29 23:16 GMT+02:00 Klaus Blum benbigno...@gmx.de: Hi David, you could start a new voice like this: \new Voice % add this line... \leadVoice but this will lead to new problems: an additional slur and warnings about colliding note columns. Overriding the notehead size will always work for the entire chord. That's why only the tweak will work on single note heads. You can write a function just to abbreviate the multiple tweaks: % - \version 2.18.2 t = #(define-music-function (parser location music) (ly:music?) #{ \tweak font-size #-3 #music #}) %% Lead voice with backing harmony voices leadVoice = \relative c'' { c4( d e2 ) } bkgdVoiceI = \relative c'' { \t g4( \t b \t c2 ) } bkgdVoiceII = \relative c'' { \t e4( \t f \t g2 ) } %% Desired output \new Voice \relative c'' { \tweak font-size #-3 g c \tweak font-size #-3 e 4( \tweak font-size #-3 b d \tweak font-size #-3 f \tweak font-size #-3 c e \tweak font-size #-3 g 2 ) } %% Actual output \new Voice \bkgdVoiceII \leadVoice \bkgdVoiceI % - Maybe there's a way to have a function tweak all the notes in a music expression, but that's far beyond my scheme knowledge. Cheers, Klaus Maybe: \version 2.18.2 font-size-tweak = #(define-music-function (parser location music) (ly:music?) (map-some-music (lambda (m) (and (music-is-of-type? m 'note-event) #{ \tweak font-size #-3 $m #})) music)) leadVoice = \relative c'' { c4( d e2 ) } bkgdVoiceI = \relative c'' { g4( b c2 ) } bkgdVoiceII = \relative c'' { e4( f g2 ) } \new Voice \font-size-tweak \bkgdVoiceII \leadVoice \font-size-tweak \bkgdVoiceI HTH, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
PDF portfolio of 2.19.22 docs
A fully indexed portfolio of the 2.19.20 PDF docsis available at https://www.dropbox.com/s/3j7d0alo7y2l37b/lilydoc-2.19.22.pdf?dl=0 (38Mb). Needs Adobe Reader - I haven't found a 3rd party PDF viewer that can use the index in PDF portfolios. Nick ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Frescobaldi not using correct lilypond version
Urs Liska u...@openlilylib.org writes: Am 29.06.2015 um 23:12 schrieb N. Andrew Walsh: As I explained in another thread, gentoo uses a rolling, live version number (ie program-) to build directly from Git/Subversion versions of certain packages. Lilypond is one of these, and my current instance of 'lilypond -v' returns the following: $ lilypond -v GNU LilyPond 2.19.23 Copyright (c) 1996--2015 by [etc etc] However, if I run Frescobaldi, the snippet to insert the lilypond version (Shift-Ctrl-V for me) inserts the line \version 2.19.22 and running lily on a current project also tries to run version 2.19.22. Is this just something goofy with using a live version that reports itself as .23, but which is identified from the outside (by whatever mechanism frescobaldi uses to identify the current lily version) as .22? No, there's nothing wrong, it's simply that Frescobaldi doesn't automatically detect when the version has changed. I think it stores the version numbers somewhere in its settings. To update the version for the \version command and the display in the log go to Edit-Preferences-LilyPond Preferences, select your version and open the edit... dialog once. You don't have to do anything there but the Lily version should be updated afterwards. Actually, I wouldn't. The last currently known syntax is 2.19.22 since 2.19.23 has not been released. If you declare your input files as being 2.19.23 and further developments result in a syntax change with a convert-ly rule for 2.19.23, this rule will no longer get applied to your source code which already proclaims to be written for 2.19.23. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Snowballing
The problem now ceased suddenly as it begun… Whatever :-) Best, Simon Am 25.06.2015 um 18:50 schrieb Simon Albrecht: Hello everyone, is it just me who has been having a kind of ‘snowballing’ problem on the -user and -devel lists for the last two days or so? Most of the mails arrive two up to six (!) times, and I’ve no clue why. A bug in mailman? Best regards, Simon ___ 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
Frescobaldi not using correct lilypond version
As I explained in another thread, gentoo uses a rolling, live version number (ie program-) to build directly from Git/Subversion versions of certain packages. Lilypond is one of these, and my current instance of 'lilypond -v' returns the following: $ lilypond -v GNU LilyPond 2.19.23 Copyright (c) 1996--2015 by [etc etc] However, if I run Frescobaldi, the snippet to insert the lilypond version (Shift-Ctrl-V for me) inserts the line \version 2.19.22 and running lily on a current project also tries to run version 2.19.22. Is this just something goofy with using a live version that reports itself as .23, but which is identified from the outside (by whatever mechanism frescobaldi uses to identify the current lily version) as .22? Is there something else at work here? Cheers, A ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Frescobaldi not using correct lilypond version
Am 29.06.2015 um 23:12 schrieb N. Andrew Walsh: As I explained in another thread, gentoo uses a rolling, live version number (ie program-) to build directly from Git/Subversion versions of certain packages. Lilypond is one of these, and my current instance of 'lilypond -v' returns the following: $ lilypond -v GNU LilyPond 2.19.23 Copyright (c) 1996--2015 by [etc etc] However, if I run Frescobaldi, the snippet to insert the lilypond version (Shift-Ctrl-V for me) inserts the line \version 2.19.22 and running lily on a current project also tries to run version 2.19.22. Is this just something goofy with using a live version that reports itself as .23, but which is identified from the outside (by whatever mechanism frescobaldi uses to identify the current lily version) as .22? No, there's nothing wrong, it's simply that Frescobaldi doesn't automatically detect when the version has changed. I think it stores the version numbers somewhere in its settings. To update the version for the \version command and the display in the log go to Edit-Preferences-LilyPond Preferences, select your version and open the edit... dialog once. You don't have to do anything there but the Lily version should be updated afterwards. HTH Urs Is there something else at work here? Cheers, A ___ 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: garbled output, error
Am 29.06.2015 um 22:23 schrieb N. Andrew Walsh: Bug report added: https://github.com/openlilylib/openlilylib/issues/125 Cheers, A Thanks, I was already on my way shifting that issue out of focus ;-) Urs ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: garbled output, error
Bug report added: https://github.com/openlilylib/openlilylib/issues/125 Cheers, A On Sat, Jun 27, 2015 at 11:48 AM, Urs Liska u...@openlilylib.org wrote: Am 27.06.2015 um 11:22 schrieb N. Andrew Walsh: Hi Urs, My desktop is a gentoo system which builds directly from the git repository (gentoo has something like a live package, with a version number - at the end, that pulls from the live branch). On my sytem, that returns a lily version of 2.19.22. Oh, interesting. My laptop, however, is an ubuntu system (never managed to get gentoo working on it, alas!), for which I have 2.19.21 installed from the .sh file available on the website. So, it's probably the case that whatever the issue is will come up again when I get home. Surely. If it's any help, a lot of my system fonts now appear much sharper (say, in the file manager, or Firefox), which I suspect has to do with a recent update to one of the base packages. I'll let you know when I get home. Thanks for the help. Could you please add an issue to https://github.com/openlilylib/openlilylib/issues Best Urs A On Sat, Jun 27, 2015 at 11:16 AM, Urs Liska u...@openlilylib.org mailto:u...@openlilylib.org wrote: Am 27.06.2015 um 11:04 schrieb N. Andrew Walsh: Well, I've now loaded this up on my laptop, and re-cloned the openlilylib directory, and now the problem no longer appears. I have other issues -- namely that my production box is running lilypond 2.19.22, which I can't seem to install from ubuntu -- but those are minor. 2.19.22 isn't released yet AFAICS. Do you have a custom built LilyPond? Urs, did you update something on the git tree, or was this simply a problem on my side that I'll run into again when I get back home? It's not clear what you say. Do you have a laptop with something 2.19.22 and a home pc with a custom build from the 2.19.22 line? If that's the case then probably you'll experience the problem at home again because the changes in LilyPond have been introduced there. I assume I'll have to change the implementation (and look for other parts where this might matter) and introduce a version switch so the code executed from openLilyLib depends on the LilyPond version. I'm approaching the state to be able to work properly again. Unfortunately I have to pick up a presentation for upcoming Wednesday. Anyone in or near Karlsruhe BTW? Urs Cheers, A On Sat, Jun 27, 2015 at 12:05 AM, Urs Liska u...@openlilylib.org mailto:u...@openlilylib.org mailto:u...@openlilylib.org mailto:u...@openlilylib.org wrote: Am 26.06.2015 um 23:50 schrieb David Kastrup: Urs Liska u...@openlilylib.org mailto:u...@openlilylib.org mailto:u...@openlilylib.org mailto:u...@openlilylib.org writes: Oh, I didn't realize this might be for me... I'll try to look into it ASAP. But at the moment I don't have a working LilyPond at hand. I have some ideas, though. Maybe openlilylib has to be adapted to a recent LilyPond improvement. Well, it's probably most reliable if your installation instructions and/or scripts include a run of convert-ly. Otherwise, there will be unhappy people with either variant for a long time. I think in the case of openLilyLib I will manually update the code and include a version switch. openLilyLib should in general work with all versions at least since the latest stable release. Users should not do any update/convert-ly themselves, they rather download or 'git pull' updated versions of the library. Urs ___ lilypond-user mailing list lilypond-user@gnu.org mailto:lilypond-user@gnu.org mailto:lilypond-user@gnu.org mailto: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: PDF portfolio of 2.19.22 docs
Nick Payne-3 wrote Needs Adobe Reader - I haven't found a 3rd party PDF viewer that can use the index in PDF portfolios. On Windows, I use SumatraPDF and it *mostly* works. It doesn't seem to handle cross-manual links, but everything else seems to work pretty well. I could open each of the individual manuals from the front section and links going between locations within the same manual worked. Thanks for doing this! - Abraham -- View this message in context: http://lilypond.1069038.n5.nabble.com/PDF-portfolio-of-2-19-22-docs-tp178318p178320.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Landscape output
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 26/06/15 16:16, Alexander Kobel wrote: On 2015-06-26 16:51, Peter Gentry wrote: Hello My paper block is % --- % set the paper layout for binding % footer has title and page number % --- \paper { #(set-default-paper-size a4 'landscape) two-sided = ##t [...] } % end of paper block But the pdf output is still A4 Portrait where am I going wrong? Hi Peter, see http://lilypond.org/doc/v2.18/Documentation/notation/paper-size-and-au tomatic-scaling set-default-paper-size must be called at top-level, out of the paper block; the alternative is to use set-paper-size in the paper block: #(set-default-paper-size a4 'landscape) \paper { ... } %% or \paper { #(set-paper-size a4 'landscape) ... } HTH, Alexander ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user Thanks for this Alexander. I was having problems engraving a piece for use in a well-known online encyclopedia and had half a page of white space. A6 landscape suits the length perfectly. Regards, Martin -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJVkcphAAoJEAF3yXsqtyBl8AwQAMsfNXqHUK68iym0ZyMTafHw byOTtURwMI4YjdhBT5IrPcj4KZr4EK28xhjYGGJDew3Ro9mdr/n7hAfwcw+gZLjo A3393MGNdIL0Yw9Bljbqtoo1VlI5YXiDD8O6CTTu4ubCwsvH99/WYBdYSsXvOmk6 hVoyiilnCooZQxaz+IgjZ5eNmCc2dB8zIv2z5eRyT98vsEDUMZUWpZnvgJeEH855 EDspSii2r18auEOpplOLr0E4+Y4/o0F/Nzn1nESg8X3rUEwcnK/0IS8I6WSo8k9+ BxplXgFn2DhmhF4bY27qEbQmXp0fGXjXxc6U/Ja70ejQX8eQa+zqlvOxdQSgwMjw QLwDexsI25WQDfLl56GrJ2WDw2snoxo13xVpAHob0I9aHeKwYrNzJ2XAcsR2Ej/f KQluL7W7wL6PKffWwzrjpgc10ERryMDPanvvzQ+JwBU6tpGKSyJ8Zs4r9S+uR/0S 207DRyIrNUZdkwgOMGqXlzM1cOOlq2mhaQApDuPDDin96bCs7rDvC0r9pUt54evE nuEks9XG2TJUXJHp4UXbQZfjUOYVGa+P+CcynwNQVjj8Mz6ANhJeMAypRk/QTh6V 4pOtve2xzK9oAAH0398kspMUVqMGTK50GQQKxueGVHMFGloIYsSTplQSkBboWrZv j+V5M+HTiUh+6nXLM+7N =rL6i -END PGP SIGNATURE- ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Changing notehead sizes within chords
Hi David, you could start a new voice like this: \new Voice % add this line... \leadVoice but this will lead to new problems: an additional slur and warnings about colliding note columns. Overriding the notehead size will always work for the entire chord. That's why only the tweak will work on single note heads. You can write a function just to abbreviate the multiple tweaks: % - \version 2.18.2 t = #(define-music-function (parser location music) (ly:music?) #{ \tweak font-size #-3 #music #}) %% Lead voice with backing harmony voices leadVoice = \relative c'' { c4( d e2 ) } bkgdVoiceI = \relative c'' { \t g4( \t b \t c2 ) } bkgdVoiceII = \relative c'' { \t e4( \t f \t g2 ) } %% Desired output \new Voice \relative c'' { \tweak font-size #-3 g c \tweak font-size #-3 e 4( \tweak font-size #-3 b d \tweak font-size #-3 f \tweak font-size #-3 c e \tweak font-size #-3 g 2 ) } %% Actual output \new Voice \bkgdVoiceII \leadVoice \bkgdVoiceI % - Maybe there's a way to have a function tweak all the notes in a music expression, but that's far beyond my scheme knowledge. Cheers, Klaus -- View this message in context: http://lilypond.1069038.n5.nabble.com/Changing-notehead-sizes-within-chords-tp178300p178315.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: download trouble
I'm assuming you want the latest stable version. Try http://download.linuxaudio.org/lilypond/binaries/mingw/lilypond-2.18.2-1.mingw.exe On Mon, Jun 29, 2015 at 5:16 PM Cate Sheller cate.shel...@kirkwood.edu wrote: I have attempted to download the lilypond executable for Windows using two different browsers (Chrome and Firefox). I am using my home computer, so there are no unusual firewall issues, but the download starts out slow and then consistently fails every time. Any suggestions for how I might obtain the software? Cate Sheller Professor, Computer Science Math/Science Department, Kirkwood Community College Cedar Rapids, IA 52402 USA http://faculty.kirkwood.edu/cshelle Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer do not consent to Internet email for messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of my organization shall be understood as neither given nor endorsed by it. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user -- -- Knute Snortum (sent from Gmail) ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Changing notehead sizes within chords
Klaus and Thomas, Thank you. These are exactly the kind of thing I was looking for. I've been starting to fool around with scheme and it's going very slowly. Maybe examining these and learning how/why they work will help me with the lilypond-specific scheme knowledge required to start solving some of these challenges. Do either of you recommend a source on Scheme for beginners? Thanks, David On 06/29/2015 06:32 PM, lilypond-user-requ...@gnu.org wrote: Maybe there's a way to have a function tweak all the notes in a music expression, but that's far beyond my scheme knowledge. Cheers, Klaus Maybe: \version 2.18.2 font-size-tweak = #(define-music-function (parser location music) (ly:music?) (map-some-music (lambda (m) (and (music-is-of-type? m 'note-event) #{ \tweak font-size #-3 $m #})) music)) leadVoice = \relative c'' { c4( d e2 ) } bkgdVoiceI = \relative c'' { g4( b c2 ) } bkgdVoiceII = \relative c'' { e4( f g2 ) } \new Voice \font-size-tweak \bkgdVoiceII \leadVoice \font-size-tweak \bkgdVoiceI HTH, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Tweaking in scheme
On Jun 29, 2015, at 11:43 AM, Kieren MacMillan kieren_macmil...@sympatico.ca wrote: BRAVO! This is wonderful. Kudos and thanks. +1 This is really nice! LilyPond just keeps getting better. -Paul ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
download trouble
I have attempted to download the lilypond executable for Windows using two different browsers (Chrome and Firefox). I am using my home computer, so there are no unusual firewall issues, but the download starts out slow and then consistently fails every time. Any suggestions for how I might obtain the software? Cate Sheller Professor, Computer Science Math/Science Department, Kirkwood Community College Cedar Rapids, IA 52402 USA http://faculty.kirkwood.edu/cshelle Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer do not consent to Internet email for messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of my organization shall be understood as neither given nor endorsed by it. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user