Re: replace a notehead with a centered text

2019-11-27 Thread Pierre Perol-Schneider
Hi Paolo, Try: \override NoteHead.stem-attachment = #'(0 . 0) Cheers, Pierre Le jeu. 28 nov. 2019 à 03:05, Paolo Prete a écrit : > Hello, > > how can I replace a notehead with "some text" centered on the stem? > > If I use: > > customNotehead = { > \once \override NoteHead.stencil = #ly:text-

replace a notehead with a centered text

2019-11-27 Thread Paolo Prete
Hello, how can I replace a notehead with "some text" centered on the stem? If I use: customNotehead  = {\once \override NoteHead.stencil = #ly:text-interface::print  \once \override NoteHead.text = \markup {  \fontsize #6 "some text" }} the notehead is always at the left or at the right of its ste

Re: make text span a specified musical interval?

2019-11-27 Thread Kieren MacMillan
Hi Jace, > On Tuesday, November 26, 2019, 1:05:41 AM UTC, Kieren MacMillan > wrote: >> While slightly more verbose, perhaps it’s more semantically correct >> to do something like this? > > Thanks, Kieren. This solution seems to regard the "last time only" note as a > rehearsal mark, which the

Re: Identifying non-chord notes in Scheme

2019-11-27 Thread Aaron Hill
Hi Steve, Sorry for the delay in responding to your original query. But as some say, "better late, than never." (: \version "2.19.83" colorNonChordNotes = #(define-music-function (color music) (color? ly:music?) (define (color-stop? mus) (if (music-is-of-type? mus 'note-event)

Re: if procedure

2019-11-27 Thread Freeman Gilmore
On Wed, Nov 27, 2019 at 10:32 AM Anders Eriksson wrote: > > > On 2019-11-27 14:20, Freeman Gilmore wrote: > > From Extending Lilypond: > > guile> (define a 3) > guile> (define b 5) > guile> (if (> a b) "a is greater than b" "a is not greater than b") > "a is not greater than b" > > Note missing ")

RE: Identifying non-chord notes in Scheme

2019-11-27 Thread lilypond
Steve, I'm not familiar with music-map, but I know you can modify music using music-map. How about doing it twice: First time you add a (ly:music-set-property! note 'my-chord 'yes) to the notes inside the EventChord, and the second time you can identify the notes from the chords using the mus

Re: Can \markuplist prduce uneven width columns?

2019-11-27 Thread Peter Toye
Phil, Good idea. But in terms of the extra work involved it's about the same, and IMHO less transparent, so I'll stick with altering the property for each wordwrap. I can probably put it into a function if I get bored. Best regards, Peter mailto:lilyp...@ptoye.com www.ptoye.com --

Re: Identifying non-chord notes in Scheme

2019-11-27 Thread Steve Cummings
Jaap, thank you for taking this up but I'm not sure whether your answer helps--yes, I can find notes within chords because they are branches of EventChord, but those same notes also occur as individual NoteEvent events *before* the EventChord event. If I'm trying to extract or otherwise process

RE: Identifying non-chord notes in Scheme

2019-11-27 Thread lilypond
Steve, When you see the music expression as a tree, then the NoteEvent's belonging to a chord are branches of an EventChord. This is for all chords including 4 etc. And as an extra bonus: When you have chords like "c:7+" the EventChord's are branches (or sub-branches) of an ContextSpeccedMusic

Re: Can \markuplist prduce uneven width columns?

2019-11-27 Thread Phil Holmes
Re: Can \markuplist prduce uneven width columns? If you don't want to alter baseline-skip, you could use combine and vspace: \version "2.19.52" \language "english" \markuplist { \override #'(line-width . 80) \override #'(padding . 5) \override #'(baseline-skip . 2.5) \table #'(

Re: Scheme function to return pitchnames as markup/text

2019-11-27 Thread Stephen Cummings
David, a follow-up-- I came across a post of yours from some years back in response to a sort-of-similar question, in which you suggested a more direct/more succinct way to access LilyPond's music-to-string functionality, via "value->lilystring." (More succinct, that is, if don't count the nec

Re: Can \markuplist prduce uneven width columns?

2019-11-27 Thread Peter Toye
Phil, Thanks - I've just found that out. There's an unwelcome interaction between \table and \wordwrap in that the same property - baseline-skip - is used to control both the distance between the lines of wordwrapped text and the distance between the table rows. The defaults give horrible resul

exercises on the same line but detached

2019-11-27 Thread marco massobrio
Hello everybody, I'm a drummer and I should write the exercises. At the same height I should write two exercises separated by a space how can I do? Examples of drums are welcome Thank you all

Re: if procedure

2019-11-27 Thread Anders Eriksson
On 2019-11-27 14:20, Freeman Gilmore wrote: From Extending Lilypond: guile> (define a 3) guile> (define b 5) guile> (if (> a b) "a is greater than b" "a is not greater than b") "a is not greater than b" Note missing ")". No, it's not missing any ")" In Frescobaldi i tried: \version "2.19.

Re: Can \markuplist prduce uneven width columns?

2019-11-27 Thread Phil Holmes
Can \markuplist prduce uneven width columns? According to the NR, \wordwrap does what you have described: http://lilypond.org/doc/v2.19/Documentation/notation/formatting-text#text-alignment -- Phil Holmes - Original Message - From: Peter Toye To: lilypond-user@gnu.org Se

Re: Can \markuplist prduce uneven width columns?

2019-11-27 Thread Peter Toye
Marc, Sorry, I was wrong - it seems that the column widths are adjusted to fit the text. Maybe a documentation issue. Best regards, Peter mailto:lilyp...@ptoye.com www.ptoye.com - Wednesday, November 27, 2019, 1:50:01 PM, Marc Mouries wrote: you can obtain something c

Re: Can \markuplist prduce uneven width columns?

2019-11-27 Thread Peter Toye
Thanks. I'd already found that, but there's no information on how to vary the width of the columns. It looks as if they're equally spaced, which is not useful here. Best regards, Peter mailto:lilyp...@ptoye.com www.ptoye.com - Wednesday, November 27, 2019, 1:50:01 PM, M

Re: Can \markuplist prduce uneven width columns?

2019-11-27 Thread Marc Mouries
you can obtain something close with the new \table markup-list command http://lilypond.org/doc/v2.19/Documentation/notation/text-markup-list-commands On Wed, Nov 27, 2019 at 7:10 AM Peter Toye wrote: > I'm trying to write some editorial notes for a score, and would like to > have the references

Fwd: if procedure correction

2019-11-27 Thread Freeman Gilmore
-- Forwarded message - From: Freeman Gilmore Date: Wed, Nov 27, 2019 at 8:20 AM Subject: if procedure To: Lilypond-User Mailing List >From Extending Lilypond: guile> (define a 3) guile> (define b 5) guile> (if (> a b) "a is greater than b" "a is not greater than b") "a is not g

if procedure

2019-11-27 Thread Freeman Gilmore
>From Extending Lilypond: guile> (define a 3) guile> (define b 5) guile> (if (> a b) "a is greater than b" "a is not greater than b") "a is not greater than b" Note missing ")". In Frescobaldi i tried: \version "2.19.83" #(define a 3) #(define b 5) #(display (if (> a b) "a is greater than b" "a

Re: Availability of music notation font in LibreOffice (Malte Meyn)

2019-11-27 Thread Peter Toye
- Wednesday, November 27, 2019, 12:52:52 PM, Malte Meyn wrote: > I agree, it’s not easy to find. I have it > installed though (on Linux) > and I’m pretty sure that I downloaded it from the Steinberg website > without installers … Why would you even want an > executable (?

Re: Availability of music notation font in LibreOffice (Malte Meyn)

2019-11-27 Thread Malte Meyn
Am 27.11.19 um 13:52 schrieb Malte Meyn: Am 27.11.19 um 12:58 schrieb Peter Toye: Bravura sounds like a good idea, except that I'm trying to work out how to get it. It seems that I have to download something (but the readme file doesn't exactly say what) from github and then install it us

Re: Availability of music notation font in LibreOffice (Malte Meyn)

2019-11-27 Thread Malte Meyn
Am 27.11.19 um 12:58 schrieb Peter Toye: Bravura sounds like a good idea, except that I'm trying to work out how to get it. It seems that I have to download something (but the readme file doesn't exactly say what) from github and then install it using a proprietary installer which I've had t

Can \markuplist prduce uneven width columns?

2019-11-27 Thread Peter Toye
I'm trying to write some editorial notes for a score, and would like to have the references in uneven-width word-wrapped columns. The effect I want is something like: Bar 27 This text is hopelessly garbled in the sources, which are also mutually inconsistent. The editor has produced wha

Re: Availability of music notation font in LibreOffice (Malte Meyn)

2019-11-27 Thread Peter Toye
- Tuesday, November 26, 2019, 2:36:16 PM, lilypond-user-requ...@gnu.org wrote: > Message: 3 > Date: Tue, 26 Nov 2019 12:54:46 +0100 > From: Malte Meyn > To: lilypond-user@gnu.org > Subject: Re: Availability of music notation font in LibreOffice > Message-ID: > <82b8ed86-f