Scheme version of ly:ledger-line-spanner::print

2015-08-18 Thread Paul Morris
Recently I looked into trying to rewrite ly:ledger-line-spanner::print in Scheme, in order to do some customization of ledger lines. I didn’t get very far... I then tried to wrap it in my own function in order to post-process the stencil it produced. But I found it produces one stencil per mu

Re: Coloring of key signature accidentals based on their pitch

2015-08-18 Thread Paul Morris
> On Aug 18, 2015, at 9:31 PM, David Nalesnik wrote: > > (Not long ago I was looking at the C++ function that draws ledger lines > (ly:ledger-line-spanner::print in ledger-line-spanner.cc > ), thinking about overriding it with a custom > function. Well, I didn’

Re: Mutable and immutable

2015-08-18 Thread PMA
Andrew Bernard wrote: Greetings All, Since immutable as an adjective applied to an object in most programming languages, and in normal English usage means unchanging over time, or unable to be changed, how is it that the value of immutable objects can then be changed with \override and \rever

Re: Coloring of key signature accidentals based on their pitch

2015-08-18 Thread David Nalesnik
On Tue, Aug 18, 2015 at 8:11 PM, Paul Morris wrote: > > On Aug 18, 2015, at 7:13 PM, Thomas Morley > wrote: > > > >> I wonder if this function would better be defined in Scheme than C++. > If > >> someone wanted to do something like you're doing, it wouldn't be a > trivial > >> matter to first r

Re: Coloring of key signature accidentals based on their pitch

2015-08-18 Thread Paul Morris
> On Aug 18, 2015, at 7:13 PM, Thomas Morley wrote: > >> I wonder if this function would better be defined in Scheme than C++. If >> someone wanted to do something like you're doing, it wouldn't be a trivial >> matter to first redo the function in Scheme to make the necessary changes. > > I'd l

Mutable and immutable

2015-08-18 Thread Andrew Bernard
Greetings All, Since immutable as an adjective applied to an object in most programming languages, and in normal English usage means unchanging over time, or unable to be changed, how is it that the value of immutable objects can then be changed with \override and \revert? From the Technical Gl

Re: Guitar Fret Diagram - scale degree below string

2015-08-18 Thread Thomas Morley
2015-08-18 2:05 GMT+02:00 Klaus Blum : > Hi Harm, > > your code allows using markup where only numbers are allowed - exacly what I > was looking for. > Thanks a lot for this great discovery. It allows "abusing" LilyPond's > \fret-diagram-verbose for crazy things like this: >

Re: Coloring of key signature accidentals based on their pitch

2015-08-18 Thread Thomas Morley
2015-08-19 1:13 GMT+02:00 Thomas Morley : > 2015-08-19 0:34 GMT+02:00 David Nalesnik : >> Hi, >> >> On Tue, Aug 18, 2015 at 3:43 PM, Heikki Junes >> wrote: >>> >>> Thanks David! >>> >>> Yes, it provides the exactly the desired result! >> >> >> Glad I could help! See the attached for a completed a

Re: Coloring of key signature accidentals based on their pitch

2015-08-18 Thread Thomas Morley
2015-08-19 0:34 GMT+02:00 David Nalesnik : > Hi, > > On Tue, Aug 18, 2015 at 3:43 PM, Heikki Junes > wrote: >> >> Thanks David! >> >> Yes, it provides the exactly the desired result! > > > Glad I could help! See the attached for a completed adaptation. > > I wonder if this function would better b

Re: guile-question: how to do (apply ly:stencil-combine-at-edge args)?

2015-08-18 Thread Thomas Morley
2015-08-18 13:37 GMT+02:00 David Nalesnik : > Not sure, but why not something like this? > > \markup > \stencil > #(reduce-right > (lambda (f s) > (ly:stencil-combine-at-edge f X RIGHT s 0)) > empty-stencil > (stils 3)) > > HTH, > David 2015-08-18 23:57 GMT+02:00 Gilles THIB

Re: Coloring of key signature accidentals based on their pitch

2015-08-18 Thread David Nalesnik
Hi, On Tue, Aug 18, 2015 at 3:43 PM, Heikki Junes wrote: > Thanks David! > > Yes, it provides the exactly the desired result! > Glad I could help! See the attached for a completed adaptation. I wonder if this function would better be defined in Scheme than C++. If someone wanted to do someth

Re: guile-question: how to do (apply ly:stencil-combine-at-edge args)?

2015-08-18 Thread Gilles THIBAULT
Le mardi 18 août 2015, 23:57:36 Gilles THIBAULT a écrit : > > > I wasn't able to find the correct syntax how to do: > > > (apply ly:stencil-combine-at-edge ) > > > > > > Any hints? > > Perhaps you need to redefine ly:stencil-combine-at-edge > according to your needs . > Perhaps something like tha

Re: guile-question: how to do (apply ly:stencil-combine-at-edge args)?

2015-08-18 Thread Gilles THIBAULT
> > I wasn't able to find the correct syntax how to do: > > (apply ly:stencil-combine-at-edge ) > > > > Any hints? Perhaps you need to redefine ly:stencil-combine-at-edge according to your needs . Perhaps something like that : #(define (my-stencil-combine-at-edge stil1 stil2 . args) (let ((res

Re: Coloring of key signature accidentals based on their pitch

2015-08-18 Thread Heikki Junes
Thanks David! Yes, it provides the exactly the desired result! With this kind of approach, where the note height in the staff is being used instead of the pitch of the note, the Staff.keySignature.stencil needs to be redefined on each clef change: \override Staff.KeySignature.stencil = #

Re: Fontmap Ghostscript error

2015-08-18 Thread Blöchl Bernhard
A ghostmail? Where is the problem? Am 18.08.2015 18:49, schrieb jasonsilver: Did you ever solve this problem? I'm having it on a fresh install as well. -- View this message in context: http://lilypond.1069038.n5.nabble.com/Fontmap-Ghostscript-error-tp152710p179775.html Sent from the User mai

Re: bug in german manual

2015-08-18 Thread Jacques Menu
Hello Simon, Answered by mistake, sorry for the noise! JM > Le 18 août 2015 à 18:53, Simon Albrecht a écrit : > > Hello Jacques, > > seems there has been some kind of error – did you forget to insert your > actual replay text? > > Yours, Simon > > Am 18.08.2015 um 18:30 schrieb Jacques Men

Re: Fontmap Ghostscript error

2015-08-18 Thread jasonsilver
Did you ever solve this problem? I'm having it on a fresh install as well. -- View this message in context: http://lilypond.1069038.n5.nabble.com/Fontmap-Ghostscript-error-tp152710p179775.html Sent from the User mailing list archive at Nabble.com. __

Re: bug in german manual

2015-08-18 Thread Jacques Menu
> Le 18 août 2015 à 17:50, David Kastrup a écrit : > > BB writes: > >> A compromise may be to keep \times for "old" lilypond users but omit >> it from the new german versions of the manual in favor of >> \tuplet. There are some good reasons to use \tuplet - at least for >> me. I do not want to

Re: Tuplet Bracket and \fermataMarkup

2015-08-18 Thread jeremyvanb
Kieren, This looks great thank you for posting it. It looks like it's exactly what I need. Jeremy -- View this message in context: http://lilypond.1069038.n5.nabble.com/Tuplet-Bracket-and-fermataMarkup-tp179574p179773.html Sent from the User mailing list archive at Nabble.com. ___

Guitar Chord Chart - Align Fret Diagram with Chord Names and Notes

2015-08-18 Thread tone
I would like to fix the spacing in my guitar chord chart. The Chord Names are aligned with the Notes correctly. However, the Fret Diagram is misaligned due to the space occupied by the fret number. Here is a picture I edited with an external program. A vertical color-inverted strip is used to v

Re: bug in german manual

2015-08-18 Thread David Kastrup
BB writes: > A compromise may be to keep \times for "old" lilypond users but omit > it from the new german versions of the manual in favor of > \tuplet. There are some good reasons to use \tuplet - at least for > me. I do not want to stress the ethymology of the meaning of "times" > in this conte

Re: bug in german manual

2015-08-18 Thread BB
Add on: I forgot to add https://en.wikipedia.org/wiki/Tuplet as I planned in my last posting. Sorry. On 18.08.2015 17:36, BB wrote: A compromise ... ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypon

Re: bug in german manual

2015-08-18 Thread BB
A compromise may be to keep \times for "old" lilypond users but omit it from the new german versions of the manual in favor of \tuplet. There are some good reasons to use \tuplet - at least for me. I do not want to stress the ethymology of the meaning of "times" in this context. The (excellent

Re: bug in german manual

2015-08-18 Thread David Kastrup
Wols Lists writes: > On 18/08/15 14:56, David Kastrup wrote: >> Malte Meyn writes: >> >>> > Am 18.08.2015 um 09:01 schrieb Blöchl Bernhard: >>> >>> > (3) As Berndhard said ‘time’ and ‘times’ are indeed very similar words >>> > and ‘tuplet’ describes the functionality better. > > (3) Did I say I

Re: bug in german manual

2015-08-18 Thread Wols Lists
On 18/08/15 14:56, David Kastrup wrote: > Malte Meyn writes: > >> > Am 18.08.2015 um 09:01 schrieb Blöchl Bernhard: >>> >> Thanks for clarifying my confusion. As long as I used lilypond I always >>> >> used \tuplet and argue that I did not even know that \times was/is a >>> >> possible alternativ

Re: bug in german manual

2015-08-18 Thread David Kastrup
Malte Meyn writes: > Am 18.08.2015 um 09:01 schrieb Blöchl Bernhard: >> Thanks for clarifying my confusion. As long as I used lilypond I always >> used \tuplet and argue that I did not even know that \times was/is a >> possible alternative. >> >> \time and \times are very close and so - I think -

Re: hide bar lines

2015-08-18 Thread Robert Schmaus
Have you tried \cadenzaOn and \cadenzaOff? Best, Rob > On 18 Aug 2015, at 14:08, BB wrote: > > I tried to hide the bar lines and was very successful with two methods that > work. (If that are good ones a cannot decide.) > > I found that > \hide BarLine > \hide SpanBar > hide but let the s

Re: bug in german manual

2015-08-18 Thread Malte Meyn
Am 18.08.2015 um 09:01 schrieb Blöchl Bernhard: Thanks for clarifying my confusion. As long as I used lilypond I always used \tuplet and argue that I did not even know that \times was/is a possible alternative. \time and \times are very close and so - I think - dangerous and error-prone. I thi

Re: hide bar lines

2015-08-18 Thread BB
Works perfect as expected! Thanks! On 18.08.2015 15:00, Toine Schreurs wrote: Thank you, tried it, but the space is still visible. { \repeat unfold 4 { a4 a a a } \bar "||" } \layout { \context { \Score defaultBarType = "" } } Toine Schreurs

Re: Guitar Chord Fret Diagram - "T" above string fretted with thumb

2015-08-18 Thread tone
*Solved*: Option to include thumb indicator ("T") above string fretted with thumb in guitar chord fret diagram Some chords require five fingers. Other chords are more conveniently played with the thumb on the low E string. Here is one method of placing a thumb indicator above a string fretted

Re: Coloring of key signature accidentals based on their pitch

2015-08-18 Thread David Nalesnik
Hi Heikki, On Mon, Aug 17, 2015 at 7:47 AM, Heikki Junes wrote: > > 2015-08-17 15:34 GMT+03:00 David Kastrup : >> >> >> Key signature is a single grob. Your best bet probably is recoding the >> print routine in lily/key-signature-interface.cc in Scheme (it appears >> rather straightforward) and

Re: Can't find right hand fingering without string #'s

2015-08-18 Thread David Raleigh Arnold
On Sun, 16 Aug 2015 14:02:12 +0200 Thomas Morley wrote: > 2015-08-16 12:58 GMT+02:00 BB : > > \version "2.18.0" > > #(set-global-staff-size 25) > > > > { > > \override TextScript.color = #red > > c4^p c4-p c-2 c-3 c-4 > > c^\markup { \finger "2 - 3" } > > } > > > > > > I think I u

Re: hide bar lines

2015-08-18 Thread Toine Schreurs
> Thank you, tried it, but the space is still visible. { \repeat unfold 4 { a4 a a a } \bar "||" } \layout { \context { \Score defaultBarType = "" } } Toine Schreurs ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.o

Re: Guitar Chord Fret Diagram - "T" above string fretted with thumb

2015-08-18 Thread Klaus Blum
Hi Tone, that's not a big problem: You can insert another markup above the fingering chart. Its contents is passed as another parameter. If the thumb isn't used, just pass an empty string "" instead of a "T". Cheers, Klaus %--

Re: hide bar lines

2015-08-18 Thread BB
Thank you, tried it, but the space is still visible. \repeat unfold 4 { a4 a a a } \bar "||" \layout { \context { \Score \omit BarLine %\omit SpanBar } } On 18.08.2015 14:24, Urs Liska wrote: \hide makes objects transparent so tey \omit instead. HTH Urs Am 18. August 2015 14:08:

Re: bug in german manual

2015-08-18 Thread David Kastrup
Blöchl Bernhard writes: > Am 17.08.2015 20:20, schrieb David Kastrup: >> Federico Bruni writes: >> >>> >>> Il giorno lun 17 ago 2015 alle 18:16, BB >>> ha scritto: http://www.lilypond.org/doc/v2.19/Documentation/notation-big-page.de.html#retrograde in Chapter 1.2 Rhythmus >>

Re: hide bar lines

2015-08-18 Thread Urs Liska
\hide makes objects transparent so tey \omit instead. HTH Urs Am 18. August 2015 14:08:52 MESZ, schrieb BB : >I tried to hide the bar lines and was very successful with two methods >that work. (If that are good ones a cannot decide.) > >I found that > >\hide BarLine > >\hide SpanBar >hide but le

hide bar lines

2015-08-18 Thread BB
I tried to hide the bar lines and was very successful with two methods that work. (If that are good ones a cannot decide.) I found that \hide BarLine \hide SpanBar hide but let the space untouched. A problem is I am not happy, as I cannot force bars. I wanted no bars, but a double bar at th

Guitar Chord Fret Diagram - "T" above string fretted with thumb

2015-08-18 Thread tone
I would like to place the letter "T" above the strings fretted with my thumb. This is usually only the low E string. Some chords require five fingers. Other chords are more conveniently played with the thumb on the low E. Here is a picture I edited with an external program to include the letter

Re: Guitar Fret Diagram - scale degree below string

2015-08-18 Thread Klaus Blum
Hi Harm, your code allows using markup where only numbers are allowed - exacly what I was looking for. Thanks a lot for this great discovery. It allows "abusing" LilyPond's \fret-diagram-verbose for crazy things like this:

Re: guile-question: how to do (apply ly:stencil-combine-at-edge args)?

2015-08-18 Thread David Nalesnik
Hi Harm, On Mon, Aug 17, 2015 at 6:44 PM, Thomas Morley wrote: > Hi all, > > I want to "put together" an arbitrary number of stencils, > pseudo-code: > (apply > some-put-together-procedure > stil-list) > > While using `ly:stencil-add', it's quite simple: > > #(define (stils n) > (map >

autochange with multiple voices

2015-08-18 Thread Nik Repka
> I'm not top posting. I am following the syntax of this snippet: http://www.lilypond.org/doc/v2.15/Documentation/snippets-big-page#keyboards-using-autochange-with-more-than-one-voice. But in my file, autochange is only applied to the top voice, and it drags the other voice with it to the "up" s

Re: bug in german manual

2015-08-18 Thread Blöchl Bernhard
Am 17.08.2015 22:59, schrieb Urs Liska: Am 17.08.2015 um 20:50 schrieb Blöchl Bernhard: Am 17.08.2015 20:20, schrieb David Kastrup: Federico Bruni writes: Il giorno lun 17 ago 2015 alle 18:16, BB ha scritto: http://www.lilypond.org/doc/v2.19/Documentation/notation-big-page.de.html#retro