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-interface::print
>   \once \override NoteHead.text = \markup {  \fontsize #6 "some text" }
> }
>
> the notehead is always at the left or at the right of its stem...
>
> thank you
> P
>


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 stem...
thank youP

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 then affects the way actual rehearsal marks are 
> displayed (and also prevents the text from being below the staff).
> 
> You were the one asking about this (in a different context) back in that 2008 
> thread.  I take it you never found a general-purpose solution, perhaps 
> involving TextSpanners, as Carl had suggested?

Have you been following the "MeasureAttachedSpanner" thread(s)?
That would solve your problem, of course!

Cheers,
Kieren.






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)
  (let* ((curr (ly:music-property mus 'tweaks '()))
 (new `((color . ,color)
((Accidental . color) . ,color)))
 (tweaks (append curr new)))
(set! (ly:music-property mus 'tweaks) tweaks))
  ;; Stop recursion on chords.
  (music-is-of-type? mus 'event-chord)))
  (for-some-music color-stop? music) music)

soprano = \fixed c' { 4 b8 d' 2 }
alto = \fixed c' { e8 d 4 dis2 }
tenor = \fixed c { 4  b2 }
bass = \fixed c { c4 d 2 }

\score {
  \colorNonChordNotes #(x11-color 'tomato)
  \new ChoirStaff <<
\new Staff \voices 1,2 << \clef "treble" \soprano \\ \alto >>
\new Staff \voices 1,2 << \clef "bass" \tenor \\ \bass >>
  >>
}


Not knowing *what* you intended to do with non-chord notes, I just 
simply appended a few \tweaks to those notes to demonstrate the 
technique of using for-some-music with a custom stop? procedure.



-- Aaron Hill

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 ")".
>
> No, it's not missing any ")"
>
> In Frescobaldi i tried:
>
> \version "2.19.83"
> #(define a 3)
> #(define b 5)
> #(display (if (> a b) "a is greater than b" "a is not greater than b")
> "a is not greater than b"))
>
>
> What is the code suppose to do?
> You define two variables, a and b, and give them a value.
> You then compare a and b and if a is greater than b then you write out a text 
> "a is greater than b" if not then you write out a different text "a is not 
> greater than b".
>
> Scheme is a Lisp based language and uses parentheses to group statements.
> The number of left parentheses should be the same as the number of right 
> parentheses!!!
>
> Your problem is the line
>
> #(display (if (> a b) "a is greater than b" "a is not greater than b")
>
> It has 3 left parentheses and 2 right parentheses.
> Frescobaldi is helpful and shows the matched parentheses when you put the 
> cursor on a a parentheses.
> Using this help you soon will find the the first left parentheses has no 
> right parentheses.
>
> The error will disappear if you add a right parentheses last on the line
> #(display (if (> a b) "a is greater than b" "a is not greater than b"))
>
> // Anders
That got it, i was reading the book wrong; i  was trying to include
the results as one of the choices.   I do not see the ")" in the book
but it does copy and past it ok.   Probably have the print to large.
Al is well.

Thank you,
fg



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 music property my-chord

 

Jaap

 

Van: lilypond-user 
Namens Steve Cummings
Verzonden: Wednesday, November 27, 2019 6:22 PM
Aan: lilyp...@de-wolff.org; lilypond-user@gnu.org
Onderwerp: Re: Identifying non-chord notes in Scheme

 

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
only notes that *don't* belong to any chord, waiting for the ChordEvent that
follows and then backtracking would be complicated.  

I should think I could check some property of a NoteEvent ("parent" or
"chord" would be nice).  So is there any way to tell that a note is *not* a
branch (a leaf?) on any EventChord  event?

Notice that I'm using "music-map" to get a list of the events, and the list
it generates includes chord notes twice: first as separate NoteEvents and
then again as members of the Chord of which they are branches/members. If
there's no simple way to look at a NoteEvent and tell whether it is part of
a chord,  maybe there's a different way to get a list of music events that
doesn't have this duplication of chord notes. Or maybe there's a different
way entirely to approach the problem of processing/extracting non-chord
notes. 

Thanks for pointing out ContextSpeccedMusic. 

lilyp...@de-wolff.org   wrote on 11/27/2019
8:45 AM:

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 event with the music-attribute
'context-type' = "ChordsName"

 

Jaap 

 

Van: lilypond-user

 Namens Steve Cummings
Verzonden: Tuesday, November 26, 2019 7:31 PM
Aan: lilypond-user@gnu.org  
Onderwerp: Identifying non-chord notes in Scheme

 

What's the test for differentiating between non-chord notes and notes within
a chord, when iterating through events in music? I can examine the notes
within a chord individually, but I can't been able to find the way to
capture notes that don't belong to a chord (or alternatively, to discard
note events do belong to a chord).

Leaning heavily on code from Giles T, here's a simple routine that displays
pitches of note events when they are encountered as such, and also when they
occur within a chord. If the goal is to process non-chord notes only, how
can I pick them out? In the listing below I've marked relevant places with
"<<--" 

Thanks,
Steve

\version "2.19"

#(use-modules (ice-9 receive)) %% so 'receive' can be used

#(define (noteEvent? music)
(eq? (name-of music) 'NoteEvent))

#(define (name-of music) 
" (display-scheme-music (ly:music-property music 'name))"
   (ly:music-property music 'name)
   )

#(define* (music-to-console music #:optional (strict-comp? #t))
  (music-map
(lambda(mus)
 (display (name-of mus))
 (newline)
 (cond 
  ((eq? 'EventChord (name-of mus))
   (display "Chord")(newline)
(receive (notes others)
  (partition noteEvent? (ly:music-property mus 'elements))
<<--Examine different music property?
  (map(lambda(note)(display (ly:music-property note 'pitch))) notes)
(newline)))
  ((eq? 'NoteEvent (name-of mus))
<<- Test here?
(display "A note event, but does it stand alone, or is it part of a
chord?") <<- or here?
(newline) (display (ly:music-property mus 'pitch))(newline))
  (else (display "(Not a note or a chord)")(newline)) 
 )
 (newline)
#{
  #mus
#})
music))

showNotesAndChords = #(define-music-function (music) (ly:music?)
(music-to-console music #t))

someNotes = \transpose c f { 4 c'4 d'4 \transpose f c {2
c'}}
\showNotesAndChords \someNotes



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

-
Wednesday, November 27, 2019, 4:02:24 PM, Phil Holmes wrote:


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 #'(-1 -1)
   {
 \wordwrap {Bar 27}
 \wordwrap {This text is hopelessly garbled in the sources, which are also 
mutually inconsistent.
The editor has produced what he hopes is a performable 
version.} 
 \wordwrap {Bar 29}
 \combine \wordwrap { "in tempo" aligned but probably best on 6/16 (in 
neither of the primary sources).
 On experiment this has been found to work best} \vspace #1
   }
 }
 

--
Phil Holmes
 
 

- Original Message -
From: Peter Toye
To: Phil Holmes; lilypond-user@gnu.org
Sent: Wednesday, November 27, 2019 3:31 PM
Subject: Re: Can \markuplist prduce uneven width columns?

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 results. So I have 
to keep on adjusting the value of the property which is a pain :(

\version "2.19.52"

\language "english"

\markuplist {
  \override #'(line-width . 80)
  \override #'(padding . 5)
  \override #'(baseline-skip .  5)
  \table #'(-1 -1)
  {
\wordwrap {Bar 27}
\override #'(baseline-skip . 2)
\wordwrap {This text is hopelessly garbled in the sources, which are also 
mutually inconsistent.
   The editor has produced what he hopes is a performable version.}
\wordwrap {Bar 29}
\override #'(baseline-skip . 2)
\wordwrap { "in tempo" aligned but probably best on 6/16 (in neither of the 
primary sources).
On experiment this has been found to work best}
  }
}

Best regards,

Peter
mailto:lilyp...@ptoye.com
www.ptoye.com

-
Wednesday, November 27, 2019, 3:14:27 PM, Phil Holmes wrote:


According to the NR, \wordwrap does what you have described: 
http://lilypond.org/doc/v2.19/Documentation/notation/formatting-text#text-alignment

--
Phil Holmes
 

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 only notes that *don't* belong to any chord, waiting 
for the ChordEvent that follows and then backtracking would be complicated.


I should think I could check some property of a NoteEvent ("parent" or 
"chord" would be nice).  So is there any way to tell that a note is 
*not* a branch (a leaf?) on any EventChord  event?


Notice that I'm using "music-map" to get a list of the events, and the 
list it generates includes chord notes twice: first as separate 
NoteEvents and then again as members of the Chord of which they are 
branches/members. If there's no simple way to look at a NoteEvent and 
tell whether it is part of a chord,  maybe there's a different way to 
get a list of music events that doesn't have this duplication of chord 
notes. Or maybe there's a different way entirely to approach the problem 
of processing/extracting non-chord notes.


Thanks for pointing out ContextSpeccedMusic.

lilyp...@de-wolff.org wrote on 11/27/2019 8:45 AM:


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 event with the music-attribute 
‘context-type’ = “ChordsName”


Jaap

*Van:*lilypond-user 
 *Namens *Steve 
Cummings

*Verzonden:* Tuesday, November 26, 2019 7:31 PM
*Aan:* lilypond-user@gnu.org
*Onderwerp:* Identifying non-chord notes in Scheme

What's the test for differentiating between non-chord notes and notes 
within a chord, when iterating through events in music? I can examine 
the notes within a chord individually, but I can't been able to find 
the way to capture notes that don't belong to a chord (or 
alternatively, to discard note events do belong to a chord).


Leaning heavily on code from Giles T, here's a simple routine that 
displays pitches of note events when they are encountered as such, and 
also when they occur within a chord. If the goal is to process 
non-chord notes only, how can I pick them out? In the listing below 
I've marked relevant places with "<<--"


Thanks,
Steve

\version "2.19"

#(use-modules (ice-9 receive)) %% so 'receive' can be used

#(define (noteEvent? music)
(eq? (name-of music) 'NoteEvent))

#(define (name-of music)
" (display-scheme-music (ly:music-property music 'name))"
   (ly:music-property music 'name)
   )

#(define* (music-to-console music #:optional (strict-comp? #t))
  (music-map
    (lambda(mus)
 (display (name-of mus))
 (newline)
 (cond
  ((eq? 'EventChord (name-of mus))
   (display "Chord")(newline)
    (receive (notes others)
  (partition noteEvent? (ly:music-property mus 'elements)) 
<<--Examine different music property?
  (map(lambda(note)(display (ly:music-property note 'pitch))) 
notes) (newline)))

  ((eq? 'NoteEvent (name-of mus))         <<- Test here?
    (display "A note event, but does it stand alone, or is it part 
of a chord?") <<- or here?

    (newline) (display (ly:music-property mus 'pitch))(newline))
  (else (display "(Not a note or a chord)")(newline))
 )
 (newline)
    #{
  #mus
    #})
    music))

showNotesAndChords = #(define-music-function (music) (ly:music?)
    (music-to-console music #t))

someNotes = \transpose c f { 4 c'4 d'4 \transpose f c {c''>2 c'}}

\showNotesAndChords \someNotes



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 event with the music-attribute
'context-type' = "ChordsName"

 

Jaap 

 

Van: lilypond-user 
Namens Steve Cummings
Verzonden: Tuesday, November 26, 2019 7:31 PM
Aan: lilypond-user@gnu.org
Onderwerp: Identifying non-chord notes in Scheme

 

What's the test for differentiating between non-chord notes and notes within
a chord, when iterating through events in music? I can examine the notes
within a chord individually, but I can't been able to find the way to
capture notes that don't belong to a chord (or alternatively, to discard
note events do belong to a chord).

Leaning heavily on code from Giles T, here's a simple routine that displays
pitches of note events when they are encountered as such, and also when they
occur within a chord. If the goal is to process non-chord notes only, how
can I pick them out? In the listing below I've marked relevant places with
"<<--" 

Thanks,
Steve

\version "2.19"

#(use-modules (ice-9 receive)) %% so 'receive' can be used

#(define (noteEvent? music)
(eq? (name-of music) 'NoteEvent))

#(define (name-of music) 
" (display-scheme-music (ly:music-property music 'name))"
   (ly:music-property music 'name)
   )

#(define* (music-to-console music #:optional (strict-comp? #t))
  (music-map
(lambda(mus)
 (display (name-of mus))
 (newline)
 (cond 
  ((eq? 'EventChord (name-of mus))
   (display "Chord")(newline)
(receive (notes others)
  (partition noteEvent? (ly:music-property mus 'elements))
<<--Examine different music property?
  (map(lambda(note)(display (ly:music-property note 'pitch))) notes)
(newline)))
  ((eq? 'NoteEvent (name-of mus))
<<- Test here?
(display "A note event, but does it stand alone, or is it part of a
chord?") <<- or here?
(newline) (display (ly:music-property mus 'pitch))(newline))
  (else (display "(Not a note or a chord)")(newline)) 
 )
 (newline)
#{
  #mus
#})
music))

showNotesAndChords = #(define-music-function (music) (ly:music?)
(music-to-console music #t))

someNotes = \transpose c f { 4 c'4 d'4 \transpose f c {2
c'}}
\showNotesAndChords \someNotes



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 #'(-1 -1)
   {
 \wordwrap {Bar 27}
 \wordwrap {This text is hopelessly garbled in the sources, which are also 
mutually inconsistent.
The editor has produced what he hopes is a performable 
version.} 
 \wordwrap {Bar 29}
 \combine \wordwrap { "in tempo" aligned but probably best on 6/16 (in 
neither of the primary sources).
 On experiment this has been found to work best} \vspace #1
   }
 }
 


--
Phil Holmes




 - Original Message - 

From: Peter Toye 



To: Phil Holmes ; lilypond-user@gnu.org 



Sent: Wednesday, November 27, 2019 3:31 PM

 Subject: Re: Can \markuplist prduce uneven width columns?
 


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 results. So I have 
to keep on adjusting the value of the property which is a pain :(
 
\version "2.19.52"
 
\language "english"
 
\markuplist {
   \override #'(line-width . 80)
   \override #'(padding . 5)
   \override #'(baseline-skip .  5)
   \table #'(-1 -1)
   {
 \wordwrap {Bar 27}
 \override #'(baseline-skip . 2)
 \wordwrap {This text is hopelessly garbled in the sources, which are also 
mutually inconsistent.
The editor has produced what he hopes is a performable version.}
 \wordwrap {Bar 29}
 \override #'(baseline-skip . 2)
 \wordwrap { "in tempo" aligned but probably best on 6/16 (in neither of 
the primary sources).
 On experiment this has been found to work best}
   }
 }
 
Best regards,
 
Peter
 mailto:lilyp...@ptoye.com
 www.ptoye.com
 
-
 Wednesday, November 27, 2019, 3:14:27 PM, Phil Holmes wrote:
 


  

  
  
  According to the NR, \wordwrap does what you have described: 
http://lilypond.org/doc/v2.19/Documentation/notation/formatting-text#text-alignment
   
  --
   Phil Holmes

   


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 
necessary "use-modules" line).


So this:

   #(use-modules (scm display-lily))

   musmarkA = ^\tweak self-alignment-X #CENTER
    -$(define-scheme-function (music) (ly:music?)
   (value->lily-string music)) \etc
 {
    c'\musmarkA { c' }
 }

...is equivalent, I think, to this:

   musmarkA = ^\tweak self-alignment-X #CENTER
    -$(define-scheme-function (music) (ly:music?)
   (with-output-to-string (lambda () (displayLilyMusic
   music \etc
 {
    c'\musmarkA { c' }
 }

...the suggestion you made to me.

David Kastrup wrote on 11/20/2019 3:40 AM:

Stephen Cummings  writes: .
I would be skeptical anyway that \displayLilyMusic would be the best 
approach for your purpose but I did want to point out that catching 
output in a string is always an option in Scheme's port model.

David Kastrup wrote on 11/19/2019 3:43 PM:

Stephen Cummings  writes:
Am I missing a basic LilyPond command/directive--something built-in 
that takes music as input and returns note names as text? Such a 
functionality would seem to be useful in all kinds of 
annotations/quotations. I know about \displayMusic but its output 
only goes to the console/output stream and can't be routed to 
markup, correct?
Hm? musmark = ^\tweak self-alignment-X #CENTER 
-$(define-scheme-function (music) (ly:music?) (with-output-to-string 
(lambda () (displayLilyMusic music \etc { c'\musmark { c' } } 
Though it's probably a bit cheeky to $\etc the scheme function in 
anonymously. But you could give a name to the define-scheme-function 
call as usual.


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 results. So I have 
to keep on adjusting the value of the property which is a pain :(

\version "2.19.52"

\language "english"

\markuplist {
  \override #'(line-width . 80)
  \override #'(padding . 5)
  \override #'(baseline-skip .  5)
  \table #'(-1 -1)
  {
\wordwrap {Bar 27}
\override #'(baseline-skip . 2)
\wordwrap {This text is hopelessly garbled in the sources, which are also 
mutually inconsistent.
   The editor has produced what he hopes is a performable version.}
\wordwrap {Bar 29}
\override #'(baseline-skip . 2)
\wordwrap { "in tempo" aligned but probably best on 6/16 (in neither of the 
primary sources). 
On experiment this has been found to work best}
  }
}

Best regards,

Peter
mailto:lilyp...@ptoye.com
www.ptoye.com

-
Wednesday, November 27, 2019, 3:14:27 PM, Phil Holmes wrote:


According to the NR, \wordwrap does what you have described: 
http://lilypond.org/doc/v2.19/Documentation/notation/formatting-text#text-alignment

--
Phil Holmes
 

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.83"
#(define a 3)
#(define b 5)
#(display (if (> a b) "a is greater than b" "a is not greater than b")
"a is not greater than b"))



What is the code suppose to do?
You define two variables, a and b, and give them a value.
You then compare a and b and if a is greater than b then you write out a 
text "a is greater than b" if not then you write out a different text "a 
is not greater than b".


Scheme is a Lisp based language and uses parentheses to group statements.
The number of left parentheses should be the same as the number of right 
parentheses!!!


Your problem is the line

#(display (if (> a b) "a is greater than b" "a is not greater than b")

It has 3 left parentheses and 2 right parentheses.
Frescobaldi is helpful and shows the matched parentheses when you put 
the cursor on a a parentheses.
Using this help you soon will find the the first left parentheses has no 
right parentheses.


The error will disappear if you add a right parentheses last on the line
#(display (if (> a b) "a is greater than b" "a is not greater than b"))

// Anders


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 



Sent: Wednesday, November 27, 2019 12:08 PM

 Subject: Can \markuplist prduce uneven width columns?
 


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 27This text is hopelessly garbled in the sources, which are also 
mutually
inconsistent. The editor has produced what he hopes is a performable
version.
 
Bar 28"in tempo" aligned but probably best on 6/16 (in neither  of the 
primary
sources
 
As fas as I can see, neither \markup nor \markuptext have this facility.
  
 Regards,
 
Peter
 mailto:lilyp...@ptoye.com
 www.ptoye.com

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 close with the new \table markup-list command
http://lilypond.org/doc/v2.19/Documentation/notation/text-markup-list-commands
 
-- Marc

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, Marc Mouries wrote:


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 in uneven-width word-wrapped columns. The effect I want is 
something like:

Bar 27This text is hopelessly garbled in the sources, which are also 
mutually
   inconsistent. The editor has produced what he hopes is a performable
   version.

Bar 28"in tempo" aligned but probably best on 6/16 (in neither  of the 
primary
   sources

As fas as I can see, neither \markup nor \markuptext have this facility.
 
Regards,

Peter
mailto:lilyp...@ptoye.com
www.ptoye.com


-- 
-- Marc

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 in uneven-width word-wrapped columns. The effect I want
> is something like:
>
> Bar 27This text is hopelessly garbled in the sources, which are
> also mutually
>inconsistent. The editor has produced what he hopes is a performable
>version.
>
> Bar 28"in tempo" aligned but probably best on 6/16 (in neither  of
> the primary
>sources
>
> As fas as I can see, neither \markup nor \markuptext have this facility.
>
> Regards,
>
> Peter
> mailto:lilyp...@ptoye.com 
> www.ptoye.com
>


-- 
-- Marc


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 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 is not greater than b")
"a is not greater than b"))

Correction:
\version "2.19.83"
#(define a 3)
#(define b 5)
#(display (if (> a b) "a is greater than b" "a is not greater than b"
"a is not greater than b"))


What did I do wrong?

Thank you.;
fg



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 is not greater than b")
"a is not greater than b"))

What did I do wrong?

Thank you.;
fg



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 (?) installer 
> for something as simple as a font?

Don't ask me - I just went to the download link at http://www.smufl.org/fonts/ 
:)
I'll try the Steinberg site - thanks for the pointer.

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 
using a proprietary installer which I've had to search for. Not very 
good marketing here!


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 (?) installer 
for something as simple as a font?




Shortly after writing this I realised that the font files can be found 
in the github repository, but in the subdirectory redist.




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 to search for. Not very good 
marketing here!


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 (?) installer 
for something as simple as a font?




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 what he hopes is a performable
version.

Bar 28  "in tempo" aligned but probably best on 6/16 (in neither  of the primary
sources

As fas as I can see, neither \markup nor \markuptext have this facility.
 
Regards,

Peter
mailto:lilyp...@ptoye.com
www.ptoye.com

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-fa6c-19bc-1188-17aff7a02...@maltemeyn.de>
> Content-Type: text/plain; charset=UTF-8; format=flowed

> Am 26.11.19 um 12:45 schrieb Peter Toye:
>> I want to write some editorial notes which will be mostly free-form test 
>> but will include some musical symbols (dynamics, notes). A word 
>> processor (I use Libre office) is easiest for the text, but how do I 
>> include the musical symbols? Is the Feta font available to use - it 
>> doesn't appear in my Windows font list?

> You could try “Bravura Text”. It has the same
> symbols as the notation 
> font “Bravura” but with metrics suitable for
> including symbols in text.
> --
Sorry for the late reply - I didn't see it as I wasn't on the recipients list!

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 to search for. Not very good marketing here!

I may try to use \markuplist instead, but that raises further issues - for 
another mailing list request for help.

Thanks for the help.

Peter