end of Python2
Hi, This has been discussed here before but https://pythonclock.org/ made me wonder in which direction LilyPond and Frescobaldi are currently going. Is there anything I have to worry about? With Lilypond Python2.4 is still bundled, without a bundled Python I have an already installed Python 2.7, and the Lilypond-related python tools (like musicxml2ly) I need all seem to work. Unlike Lilypond, Frescobaldi3 is already more prepared for Python3. Having to depend on all these different Python versions isn't an ideal situation. If we only had more manpower and active developers ... -- MT ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: end of Python2
Hi Martin, 23. September 2019 11:17, "Martin Tarenskeen" schrieb: > Hi, > > This has been discussed here before but https://pythonclock.org made me > wonder in which direction LilyPond and Frescobaldi are currently going. Well, if you're wondering about the direction then you might just read up the corresponding threads from the last days. > > Unlike Lilypond, Frescobaldi3 is already more prepared for Python3. Frescobaldi is not "more prepared" for Python3. Frescobaldi is fully ported to Python3 and hasn't even worked with Python2 anymore for some years now. Urs ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: end of Python2
I guess "more prepared" was an understatement ...Verzonden vanaf mijn Huawei mobiele telefoon Oorspronkelijk bericht Onderwerp: Re: end of Python2Van: Urs Liska Aan: Martin Tarenskeen ,lilypond-user mailinglist ,lilypond-devel mailinglist Cc: Hi Martin,23. September 2019 11:17, "Martin Tarenskeen" schrieb:> Hi,> > This has been discussed here before but https://pythonclock.org made me > wonder in which direction LilyPond and Frescobaldi are currently going. Well, if you're wondering about the direction then you might just read up the corresponding threads from the last days.> > Unlike Lilypond, Frescobaldi3 is already more prepared for Python3.Frescobaldi is not "more prepared" for Python3. Frescobaldi is fully ported to Python3 and hasn't even worked with Python2 anymore for some years now.Urs___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
tweaking the position of multi-voiced piano chords
Hi all, In the snippet, below, I’m trying to tweak the position of the last chord. (In my real-world score, the spacing is really bad, because of lyrics above.) I can’t seem to find any way to move the whole column (X-offset, extra-offset, force-hshift, etc.). I can move (extra-offset) some individual items (NoteHead, Stem), but then not others (ledger lines, beams). What am I missing? Thanks, Kieren. %%% SNIPPET BEGINS \version "2.19.83" \language "english" \layout { line-width = 3\in ragged-right = ##f } << { \voiceOne 4. 16 } \\ \new Voice { \voiceTwo 4. 16 \tweak NoteColumn.force-hshift #-3 } >> %%% SNIPPET ENDS Kieren MacMillan, composer (he/him/his) ‣ 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: tweaking the position of multi-voiced piano chords
Hi Kieren, Form some reason, the tweak command does not have any effect on NoteColumn. Try to once override and it'll work. Cheers, Pierre Le lun. 23 sept. 2019 à 15:26, Kieren MacMillan < kieren_macmil...@sympatico.ca> a écrit : > Hi all, > > In the snippet, below, I’m trying to tweak the position of the last chord. > (In my real-world score, the spacing is really bad, because of lyrics > above.) > > I can’t seem to find any way to move the whole column (X-offset, > extra-offset, force-hshift, etc.). > I can move (extra-offset) some individual items (NoteHead, Stem), but then > not others (ledger lines, beams). > > What am I missing? > > Thanks, > Kieren. > > %%% SNIPPET BEGINS > \version "2.19.83" > \language "english" > > \layout { line-width = 3\in ragged-right = ##f } > > << > { \voiceOne 4. 16 > } \\ > \new Voice { \voiceTwo 4. 16 \tweak > NoteColumn.force-hshift #-3 } > >> > %%% SNIPPET ENDS > > > Kieren MacMillan, composer (he/him/his) > ‣ website: 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: tweaking the position of multi-voiced piano chords
Kieren MacMillan writes: > Hi all, > > In the snippet, below, I’m trying to tweak the position of the last > chord. (In my real-world score, the spacing is really bad, because of > lyrics above.) > > I can’t seem to find any way to move the whole column (X-offset, > extra-offset, force-hshift, etc.). > I can move (extra-offset) some individual items (NoteHead, Stem), but > then not others (ledger lines, beams). > > What am I missing? > > Thanks, > Kieren. > > %%% SNIPPET BEGINS > \version "2.19.83" > \language "english" > > \layout { line-width = 3\in ragged-right = ##f } > > << > { \voiceOne 4. 16 } > \\ > \new Voice { \voiceTwo 4. 16 \tweak > NoteColumn.force-hshift #-3 } >>> > %%% SNIPPET ENDS Works fine here but it's a rather recent development version where tweaking chords actually tweaks the notes inside. If you want to have this work with earlier versions, you need to tweak the particular note that the NoteColumn grob happens to be created from. I don't know which one this would be. The current code in the development version would just tweak all notes so you'd actually reach the NoteColumn. This will be in 2.21.0 but not 2.20. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Triplet within triplet, omitting and undoing TupletNumbers
On Sun, Sep 22, 2019 at 6:35 PM Kieren MacMillan < kieren_macmil...@sympatico.ca> wrote: > Hi all, > > > \tweak stencil #point-stencil > > \tuplet 3/2 4 { > > af''8 g8. f16 f8 ef8. df16 > > \tweak color #red > > \tuplet 3/2 { > > df16[ ef df > > } c8 r16 bf] > > } > > } > > Similar, with similarly successful results: > > \version "2.19.83" > \include "english.ly" > > \relative { >\tweak stencil ##f \tuplet 3/2 4 { > af''8 g8. f16 f8 ef8. df16 > \tuplet 3/2 { df16[ ef df } c8 r16 bf] > } > } > > Cheers, > Kieren. > > > Kieren MacMillan, composer (he/him/his) > ‣ website: www.kierenmacmillan.info > ‣ email: i...@kierenmacmillan.info Thank you all. Yes, those examples work well for me. --- Knute Snortum (via Gmail) ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Installing missing Guile modules in order to
Attempting to follow the instructions here for setting a breakpoint http://lilypond.org/doc/v2.19/Documentation/contributor/debugging-scheme-code gets me several errors: /Applications/LilyPond.app/Contents/Resources/share/lilypond/current/ly/guile-debugger.ly:39:2: error: GUILE signaled an error for the expression beginning here # (use-modules (ice-9 readline)) no code for module (ice-9 readline) /Applications/LilyPond.app/Contents/Resources/share/lilypond/current/ly/guile-debugger.ly:40:2: error: GUILE signaled an error for the expression beginning here # (activate-readline) Unbound variable: activate-readline Guile debugger for Lilypond For help enter (debug-help) /Applications/LilyPond.app/Contents/Resources/share/lilypond/current/ly/guile-debugger.ly:46:2: error: GUILE signaled an error for the expression beginning here # (use-modules (scm guile-debugger)) no code for module (ice-9 debugger command-loop) This seems to mean I should install Guile modules that Lilypond doesn't install by default, but I haven't been able to work out from the doc *where* to install them so that Lilypond will be able to find them. Any suggestions on how to get started with this? Thanks, LV ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Installing missing Guile modules in order to
Am Mo., 23. Sept. 2019 um 18:45 Uhr schrieb Leah Velleman : > > Attempting to follow the instructions here for setting a breakpoint > > > http://lilypond.org/doc/v2.19/Documentation/contributor/debugging-scheme-code > > > gets me several errors: > > /Applications/LilyPond.app/Contents/Resources/share/lilypond/current/ly/guile-debugger.ly:39:2: > error: GUILE signaled an error for the expression beginning here > # > (use-modules (ice-9 readline)) > no code for module (ice-9 readline) > /Applications/LilyPond.app/Contents/Resources/share/lilypond/current/ly/guile-debugger.ly:40:2: > error: GUILE signaled an error for the expression beginning here > # > (activate-readline) > Unbound variable: activate-readline > > Guile debugger for Lilypond > For help enter (debug-help) > /Applications/LilyPond.app/Contents/Resources/share/lilypond/current/ly/guile-debugger.ly:46:2: > error: GUILE signaled an error for the expression beginning here > # > (use-modules (scm guile-debugger)) > no code for module (ice-9 debugger command-loop) > > > This seems to mean I should install Guile modules that Lilypond doesn't > install by default, but I haven't been able to work out from the doc where to > install them so that Lilypond will be able to find them. Any suggestions on > how to get started with this? > > Thanks, > LV There was a long thread about a related issue: http://lilypond.1069038.n5.nabble.com/No-readline-in-scheme-sandbox-td195372i20.html regrettable without real good sollution. It looks like the wrapper-script which is created while installing LilyPond does not find what's wished. You could invoke lilypond without the wrapper, like path/to/lilypond/usr/bin/lilypond my-file.ly or Find the relevant line in the wrapper. For me this line reads: export LD_LIBRARY_PATH="/home/harm/lilypond/usr/lib" Comment it. Both, works for me. Cheers, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Installing missing Guile modules in order to
>> no code for module (ice-9 readline) >> >> [...] >> >> This seems to mean I should install Guile modules that Lilypond >> doesn't install by default, but I haven't been able to work out >> from the doc where to install them so that Lilypond will be able to >> find them. Any suggestions on how to get started with this? > > There was a long thread about a related issue: > http://lilypond.1069038.n5.nabble.com/No-readline-in-scheme-sandbox-td195372i20.html > regrettable without real good solution. It looks like the > wrapper-script which is created while installing LilyPond does not > find what's wished. Please read the section `Relocation files' in lilypond's usage guide. It seems as if the setup in file /Applications/LilyPond.app/Contents/Resources/etc/relocate/guile.reloc (or something similar) is not sufficient for debugging. Werner ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: old school style of parenthesised ties or slurs possible ?.
Am Mo., 23. Sept. 2019 um 18:56 Uhr schrieb Eby Mani via lilypond-user : > > > examples, the ties float within the parenthesis, slightly above the notes. > Lillypond ties almost touch both notes. > > eby > On Monday, 23 September, 2019, 9:03:58 AM IST, Andrew Bernard > wrote: > > > Provide an example picture. > > Andrew > > On Mon., 23 Sep. 2019, 12:36 pm Eby Mani via lilypond-user, > wrote: > > Is there a snippet for "2.18.2" to add old school style of parenthesised ties > or slurs as found on old 19th century editions ?. > > Thanks, > eby How about below? After http://lsr.di.unimi.it/LSR/Item?id=771 \version "2.18.2" #(define (parenthesize-bow shorten-padding-y) (lambda (grob) (let* ((cps (ly:grob-property grob 'control-points)) ;; `val´ shortens the Tie at left and right side (val (car shorten-padding-y)) ;; `pad´ is the amount of padding betnween Tie and the ;; text-brackets (pad (cadr shorten-padding-y)) ;; `y´ moves the entire Tie (y (last shorten-padding-y)) (new-cps (map coord-translate cps (list (cons val y)(cons val y)(cons (- val) y)(cons (- val) y (basic-props (ly:grob-basic-properties grob)) (stil-proc (assoc-get 'stencil basic-props)) ;; compensate font-size of Tie ;; mmh, hard-coded :( (font-size (if (grob::has-interface grob 'tie-interface) 0 -6))) (ly:grob-set-property! grob 'control-points new-cps) (ly:grob-set-property! grob 'stencil (ly:stencil-add (stil-proc grob) (ly:stencil-translate (centered-stencil (grob-interpret-markup grob #{ \markup \fontsize #font-size "(" #})) (coord-translate (car new-cps) `(,(- pad) . 0))) (ly:stencil-translate (centered-stencil (grob-interpret-markup grob #{ \markup \fontsize #font-size ")" #})) (coord-translate (last new-cps) `(,pad . 0 parBow = #(define-music-function (parser location shorten-padding-y bow mus) (list? string? ly:music?) #{ \once \override $bow . after-line-breaking = #(parenthesize-bow shorten-padding-y) $mus #}) \relative c' { \parBow #'(0.2 0.2 0) Tie b1~ b \parBow #'(0.2 0.2 0.5) Tie b'1~ b \parBow #'(0.2 0.2 -0.3) Slur b,( f') \parBow #'(0.2 0.2 -0.3) PhrasingSlur f\( b,\) \parBow #'(0.2 0.2 0) Tie b1~ \break b } Cheers, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Translating stencils
Am Mo., 23. Sept. 2019 um 18:04 Uhr schrieb Michael Käppler : > > Hi all, > I'm trying to understand the way one can translate / stack stencils in > LilyPond. > Consider the following code: > > #(define-markup-command (draw-line-mod layout props startpos endpos) > (number-pair? number-pair?) > #:properties ((thickness 1)) > >(let ((th (* (ly:output-def-lookup layout 'line-thickness) > thickness)) > (startx (car startpos)) > (starty (cdr startpos)) > (endx (car endpos)) > (endy (cdr endpos))) > (make-line-stencil th startx starty endx endy))) > > #(define hlineone (markup #:draw-line-mod '(0 . 0) '(10 . 0))) > #(define hlinetwo (markup #:draw-line-mod '(0 . 10) '(10 . 10))) > > #(define vlineone (markup #:draw-line-mod '(0 . 0) '(0 . 10))) > #(define vlinetwo (markup #:draw-line-mod '(10 . 0) '(10 . 10))) > > \markup \hlineone > % \markup \hlinetwo > % \markup \vlineone > % \markup \vlinetwo > > The ordinary draw-line markup function calls (make-line-stencil) with > startx/starty 0 0. > So I wrote the custom draw-line-mod function to figure out what happens > when I set the startx / starty to different values. > What I understand is that these values do not specify "absolute > coordinates" somewhere on the paper, but are somehow relative > to each other. But how exactly? > > \markup \hlinetwo gives a line positioned exactly like \hlineone, though > the stencil has different starty. > \markup \vlinetwo, however, gives a line starting at a different > vertical position than \vlineone. > > Eventually I want to draw a kind of grid with horizontal and vertical > lines, placing little "scores" in them. > Attached is an example of what I want to achieve. But I do not want a > quick solution, instead I would be glad to understand > the stencil positioning better than now. > > Kind regards, > Michael If I understand correctly: If you place a bunch of stencils on a page, then lilyponds spacing-engine will drop in and white space may be disregarded. See: \paper { markup-markup-spacing.padding = 5 } \markup \hlineone \markup \hlinetwo \markup \vlineone \markup \vlinetwo And compare with: \markup { \hlineone \hlinetwo \vlineone \vlinetwo } With the latter you can observe all the different settings (relative to the previous stencil) For your final goal, checkout the table-markup-list-command. No lines implemented there, but probably a starting point. Cheers, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Installing missing Guile modules in order to
Am Mo., 23. Sept. 2019 um 22:48 Uhr schrieb Werner LEMBERG : > > > >> no code for module (ice-9 readline) > >> > >> [...] > >> > >> This seems to mean I should install Guile modules that Lilypond > >> doesn't install by default, but I haven't been able to work out > >> from the doc where to install them so that Lilypond will be able to > >> find them. Any suggestions on how to get started with this? > > > > There was a long thread about a related issue: > > http://lilypond.1069038.n5.nabble.com/No-readline-in-scheme-sandbox-td195372i20.html > > regrettable without real good solution. It looks like the > > wrapper-script which is created while installing LilyPond does not > > find what's wished. > > Please read the section `Relocation files' in lilypond's usage guide. I had only a very quick glance over it, looks like you heavily extended and improved it. Alas, currently only people self-compiling docs from git can read it. > It seems as if the setup in file > > /Applications/LilyPond.app/Contents/Resources/etc/relocate/guile.reloc > > (or something similar) is not sufficient for debugging. Well, unfortunately this is beyond my depth. Thanks, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Installing missing Guile modules in order to
I'm afraid the information I see at https://github.com/lilypond/lilypond/blob/master/Documentation/usage/running.itely , or at http://partitura.org/wp-content/uploads/lilypond/html/Documentation/usage/command_002dline-usage.html#relocation-files which appears to be a compiled version, isn't enough for me to guess what particular lines to add to the relocation file to solve this problem. On Mon, Sep 23, 2019 at 5:48 PM Thomas Morley wrote: > Am Mo., 23. Sept. 2019 um 22:48 Uhr schrieb Werner LEMBERG : > > > > > > >> no code for module (ice-9 readline) > > >> > > >> [...] > > >> > > >> This seems to mean I should install Guile modules that Lilypond > > >> doesn't install by default, but I haven't been able to work out > > >> from the doc where to install them so that Lilypond will be able to > > >> find them. Any suggestions on how to get started with this? > > > > > > There was a long thread about a related issue: > > > > http://lilypond.1069038.n5.nabble.com/No-readline-in-scheme-sandbox-td195372i20.html > > > regrettable without real good solution. It looks like the > > > wrapper-script which is created while installing LilyPond does not > > > find what's wished. > > > > Please read the section `Relocation files' in lilypond's usage guide. > > I had only a very quick glance over it, looks like you heavily > extended and improved it. > Alas, currently only people self-compiling docs from git can read it. > > > It seems as if the setup in file > > > > /Applications/LilyPond.app/Contents/Resources/etc/relocate/guile.reloc > > > > (or something similar) is not sufficient for debugging. > > Well, unfortunately this is beyond my depth. > > Thanks, > Harm > ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: old school style of parenthesised ties or slurs possible ?.
>How about below? >After http://lsr.di.unimi.it/LSR/Item?id=771 >\version "2.18.2" >... >... >\parBow #'(0.2 0.2 0.5) Tie b'1~ b Brilliant !!!, Many thanks Harm. My understanding of the above values as follows, correct me if wrong. \parBow #'(starting/ending-space-from-the-note | spacing-between-tie&parenthesis | vertical-spacing-of-tie&parenthesis) eby On Tuesday, 24 September, 2019, 2:29:44 AM IST, Thomas Morley wrote: Am Mo., 23. Sept. 2019 um 18:56 Uhr schrieb Eby Mani via lilypond-user : > > > examples, the ties float within the parenthesis, slightly above the notes. > Lillypond ties almost touch both notes. > > eby > On Monday, 23 September, 2019, 9:03:58 AM IST, Andrew Bernard > wrote: > > > Provide an example picture. > > Andrew > > On Mon., 23 Sep. 2019, 12:36 pm Eby Mani via lilypond-user, > wrote: > > Is there a snippet for "2.18.2" to add old school style of parenthesised ties > or slurs as found on old 19th century editions ?. > > Thanks, > eby How about below? After http://lsr.di.unimi.it/LSR/Item?id=771 \version "2.18.2" #(define (parenthesize-bow shorten-padding-y) (lambda (grob) (let* ((cps (ly:grob-property grob 'control-points)) ;; `val´ shortens the Tie at left and right side (val (car shorten-padding-y)) ;; `pad´ is the amount of padding betnween Tie and the ;; text-brackets (pad (cadr shorten-padding-y)) ;; `y´ moves the entire Tie (y (last shorten-padding-y)) (new-cps (map coord-translate cps (list (cons val y)(cons val y)(cons (- val) y)(cons (- val) y (basic-props (ly:grob-basic-properties grob)) (stil-proc (assoc-get 'stencil basic-props)) ;; compensate font-size of Tie ;; mmh, hard-coded :( (font-size (if (grob::has-interface grob 'tie-interface) 0 -6))) (ly:grob-set-property! grob 'control-points new-cps) (ly:grob-set-property! grob 'stencil (ly:stencil-add (stil-proc grob) (ly:stencil-translate (centered-stencil (grob-interpret-markup grob #{ \markup \fontsize #font-size "(" #})) (coord-translate (car new-cps) `(,(- pad) . 0))) (ly:stencil-translate (centered-stencil (grob-interpret-markup grob #{ \markup \fontsize #font-size ")" #})) (coord-translate (last new-cps) `(,pad . 0 parBow = #(define-music-function (parser location shorten-padding-y bow mus) (list? string? ly:music?) #{ \once \override $bow . after-line-breaking = #(parenthesize-bow shorten-padding-y) $mus #}) \relative c' { \parBow #'(0.2 0.2 0) Tie b1~ b \parBow #'(0.2 0.2 0.5) Tie b'1~ b \parBow #'(0.2 0.2 -0.3) Slur b,( f') \parBow #'(0.2 0.2 -0.3) PhrasingSlur f\( b,\) \parBow #'(0.2 0.2 0) Tie b1~ \break b } Cheers, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user