Re: Right way to make a function for a set of articulations on a note

2019-01-15 Thread Kieren MacMillan
Hi Andrew,

> I often need use a tenuoto with a parenthesised accent, but I only just 
> figured out how to achieve that. Now ti would be convenient have a function 
> of some sort as a shorthand.
> 
> Is this the right way to do it that I came up with? I feel a bit 
> uncomfortable about the <>, and maybe this should be some sort of post event, 
> like articulations themselves?

Yes. Maybe something like this?

%%%  SNIPPET BEGINS
tenu =
  -\tweak stencil #ly:text-interface::print
  -\tweak text
  \markup
\override #'(baseline-skip . 1.375)
\center-column {
  \parenthesize \musicglyph #"scripts.sforzato"
  \fontsize #1.1 \musicglyph #"scripts.tenuto"
}
  -\tenuto

{
  c'' d''-\tenu e''
}
%%%  SNIPPET ENDS

Adjust parameters, spacing, etc., as you see fit.

Hope that helps!
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


Right way to make a function for a set of articulations on a note

2019-01-15 Thread Andrew Bernard
I often need use a tenuoto with a parenthesised accent, but I only just
figured out how to achieve that. Now ti would be convenient have a function
of some sort as a shorthand.

Is this the right way to do it that I came up with? I feel a bit
uncomfortable about the <>, and maybe this should be some sort of post
event, like articulations themselves?

%==
\version "2.19.82"

artic = { <> ^- -\parenthesize ^> }
{
  \artic c'' d'' \artic e''
}

%==


Andrew
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: System spacing for Certain

2019-01-15 Thread Reggie
Andrew Bernard wrote
> Hi Reggie,
> 
> If I understand you aright, you want explicit positioning of a system.
> This
> is in the NR at Section 4.4.2 Explicit staff an system positions.
> (2.19.82).
> 
> Andrew
> 
> ___
> lilypond-user mailing list

> lilypond-user@

> https://lists.gnu.org/mailman/listinfo/lilypond-user

Yes but the problem is nothing works. I've tried all choices. No breaks.
Nothing works. I cannot move according to my image attached earlier. Why is
this so frustrating. The documentation I wish was more direct in stating how
to move a single system = one statement. Too much overload I am sorry.
Thanks for helping.

\overrideProperty NonMusicalPaperColumn.line-break-system-details
  #'((X-offset . 20))

\overrideProperty NonMusicalPaperColumn.line-break-system-details
  #'((Y-offset . 40))

\overrideProperty NonMusicalPaperColumn.line-break-system-details
  #'((X-offset . 20)
 (Y-offset . 40))

\overrideProperty NonMusicalPaperColumn.line-break-system-details
  #'((alignment-distances . (15)))

\overrideProperty NonMusicalPaperColumn.line-break-system-details
  #'((X-offset . 20)
 (Y-offset . 40)
 (alignment-distances . (15)))



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: System spacing for Certain

2019-01-15 Thread Andrew Bernard
Hi Reggie,

If I understand you aright, you want explicit positioning of a system. This
is in the NR at Section 4.4.2 Explicit staff an system positions. (2.19.82).

Andrew
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Scheme function returning \book

2019-01-15 Thread Aaron Hill

On 2019-01-15 4:40 pm, Aaron Hill wrote:

Here's an oddity:


\version "2.19.82"
test = #(define-scheme-function (suffix) (string?) #{
  \book { \bookOutputSuffix $suffix \score { b'4 } } #} )
foo = \test "foo"
bar = \test "bar"
\foo \bar



Oops.  Probably shouldn't go around redefining \bar which is an actual 
thing.  Pretend I said "baz" instead.  ;-)


-- Aaron Hill

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Scheme function returning \book

2019-01-15 Thread Thomas Morley
Am Mi., 16. Jan. 2019 um 00:14 Uhr schrieb David Kastrup :
>
> Lukas-Fabian Moser  writes:
>
> > Hi David,
> >> \test apparently expects a string argument.
> >
> > Aaargh, sorry, stupid me, and stupid copy'n'paste error. So, another try:
> >
> > \version "2.19.82"
> >
> > test = #(define-scheme-function (suffix) (string?)  #{
> >   \book {
> > \bookOutputSuffix #suffix
> > \score {
> >   d4
> > }
> >   }
> > #} )
> >
> > \test "surname"
> >
> > (still) causes a "Bad expression type" error.
>
> Ah, well.  Turns out that copying the code for \xxx here where \xxx was
> a book identifier was not really a good idea before anybody figures out
> and defines the difference between a book and a bookpart.  Currently it
> is not viable to distinguish them.
>
> \book { \test "surname" }
>
> could conceivably just close its eyes and say "ok, let's treat it as a
> book rather than a bookpart" but doesn't.  Does anybody have an idea
> what is supposed to distinguish a book from a bookpart outside of actual
>
> \book {
>   \bookpart { ... } }
>
> usage?

For layout vs paper we have is-layout vs is-paper.
Couldn't we set some variable/property like is-book/is-bookpart for
book vs bookpart
?

Cheers,
  Harm

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Scheme function returning \book

2019-01-15 Thread Aaron Hill

Here's an oddity:


\version "2.19.82"
test = #(define-scheme-function (suffix) (string?) #{
  \book { \bookOutputSuffix $suffix \score { b'4 } } #} )
foo = \test "foo"
bar = \test "bar"
\foo \bar


This works.

-- Aaron Hill

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Scheme function returning \book

2019-01-15 Thread Aaron Hill

On 2019-01-15 4:11 pm, Kieren MacMillan wrote:

Hi David,


Does anybody have an idea what is supposed to distinguish
a book from a bookpart outside of actual

\book {
 \bookpart { ... } }

usage?


You can’t have multiple book parts in a single output file?
That’s the way I understand it.


Is that so?

I thought it was that each book generates its own output unit.  A book 
can contain any number of scores, but does not need to contain any book 
parts.  Scores are then optionally organized into book parts if desired. 
 Multiple scores in a book part can exist on the same page, however each 
book part starts its own page.


(A book without any book parts stores the scores within itself.  Once a 
book part is explicitly added to the book, any "loose" scores are moved 
to the book part.  At least, that's what the code seems to say.)


---

Going back to the original function posted, if the output is meant to be 
a book that is more-or-less immutable and ready for printing, one could 
just do the following instead:



\version "2.19.82"

test = #(define-void-function (suffix) (string?)
  (print-book-with-defaults #{
\book {
  \bookOutputSuffix #suffix
  \score { d4 }
} #}))

\test "surname"


Am I missing a subtlety that the original function is trying to address?

-- Aaron Hill

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Scheme function returning \book

2019-01-15 Thread David Kastrup
Kieren MacMillan  writes:

> Hi David,
>
>> Does anybody have an idea what is supposed to distinguish
>> a book from a bookpart outside of actual
>> 
>> \book {
>>  \bookpart { ... } }
>> 
>> usage?
>
> You can’t have multiple book parts in a single output file?
> That’s the way I understand it.

"outside of actual".  The problem is not how to interpret \book {
\bookpart { ... } }.  The problem is what the difference between a
stored book and a stored bookpart is and how the association between a
bookpart and its book is supposed to be made when the bookpart is
defined independently of the book.

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Scheme function returning \book

2019-01-15 Thread Kieren MacMillan
Hi David,

> Does anybody have an idea what is supposed to distinguish
> a book from a bookpart outside of actual
> 
> \book {
>  \bookpart { ... } }
> 
> usage?

You can’t have multiple book parts in a single output file?
That’s the way I understand it.

K.


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: Scheme function returning \book

2019-01-15 Thread David Kastrup
Lukas-Fabian Moser  writes:

>>> \version "2.19.82"
>>>
>>> test = #(define-scheme-function (suffix) (string?)  #{
>>>    \book {
>>>      \bookOutputSuffix #suffix
>>>      \score {
>>>    d4
>>>      }
>>>    }
>>> #} )
>>>
>>> \test "surname"
>>>
>>> (still) causes a "Bad expression type" error.
>> Ah, well.  Turns out that copying the code for \xxx here where \xxx was
>> a book identifier was not really a good idea before anybody figures out
>> and defines the difference between a book and a bookpart.  Currently it
>> is not viable to distinguish them.
>>
>> \book { \test "surname" }
>>
>> could conceivably just close its eyes and say "ok, let's treat it as a
>> book rather than a bookpart" but doesn't.  Does anybody have an idea
>> what is supposed to distinguish a book from a bookpart outside of actual
>>
>> \book {
>>\bookpart { ... } }
>>
>> usage?
>
> I suspect that I do not understand the question correctly; at least I
> certainly do not understand the technicalities involved.
>
> For me, as a user, the point is just that a book generates a
> stand-alone file whose filename can be defined indepentently of
> everything else. (Also, I noticed that whereas bookparts can have
> their own \paper blocks, it seems that the generated pdf has one paper
> size for all which is filled to varying degrees?)
>
> But am I right in thinking that your question pertains to inherent
> structural properties of the generated expressions so they can be
> distinguished to be of one type or the other in an internal
> representation that does not sport a label 'book'?

As long as we don't come up with a satisfactory explanation what it
means to store a book or a bookpart in an expression and use it in one
or more locations, there is no way to sensibly handle the storage and
processing of bookparts independently from their use.

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Scheme function returning \book

2019-01-15 Thread Lukas-Fabian Moser



\version "2.19.82"

test = #(define-scheme-function (suffix) (string?)  #{
   \book {
     \bookOutputSuffix #suffix
     \score {
   d4
     }
   }
#} )

\test "surname"

(still) causes a "Bad expression type" error.

Ah, well.  Turns out that copying the code for \xxx here where \xxx was
a book identifier was not really a good idea before anybody figures out
and defines the difference between a book and a bookpart.  Currently it
is not viable to distinguish them.

\book { \test "surname" }

could conceivably just close its eyes and say "ok, let's treat it as a
book rather than a bookpart" but doesn't.  Does anybody have an idea
what is supposed to distinguish a book from a bookpart outside of actual

\book {
   \bookpart { ... } }

usage?


I suspect that I do not understand the question correctly; at least I 
certainly do not understand the technicalities involved.


For me, as a user, the point is just that a book generates a stand-alone 
file whose filename can be defined indepentently of everything else. 
(Also, I noticed that whereas bookparts can have their own \paper 
blocks, it seems that the generated pdf has one paper size for all which 
is filled to varying degrees?)


But am I right in thinking that your question pertains to inherent 
structural properties of the generated expressions so they can be 
distinguished to be of one type or the other in an internal 
representation that does not sport a label 'book'?



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: select a note in a chord

2019-01-15 Thread David Kastrup
Valentin Villenave  writes:

> On 1/15/19, Davide Bonetti  wrote:
>> I modified
>> (if (and (music-is-of-type? music 'event-chord)
>>  (> l n))
>> with
>> (if (and (music-is-of-type? music 'event-chord)
>>  (>= l n))
>
> Nice catch! I’ve updated the snippet as well.
>
> Additionally, beware that the LSR version uses
> #(define-music-function (parser location music)
> whereas the syntax for LilyPond 2.19 would be
> #(define-music-function (music)

Not much to beware here since convert-ly knows its way around this and
2.19 will do argument counting in order to provide backwards
compatibility.

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Scheme function returning \book

2019-01-15 Thread David Kastrup
Lukas-Fabian Moser  writes:

> Hi David,
>> \test apparently expects a string argument.
>
> Aaargh, sorry, stupid me, and stupid copy'n'paste error. So, another try:
>
> \version "2.19.82"
>
> test = #(define-scheme-function (suffix) (string?)  #{
>   \book {
>     \bookOutputSuffix #suffix
>     \score {
>   d4
>     }
>   }
> #} )
>
> \test "surname"
>
> (still) causes a "Bad expression type" error.

Ah, well.  Turns out that copying the code for \xxx here where \xxx was
a book identifier was not really a good idea before anybody figures out
and defines the difference between a book and a bookpart.  Currently it
is not viable to distinguish them.

\book { \test "surname" }

could conceivably just close its eyes and say "ok, let's treat it as a
book rather than a bookpart" but doesn't.  Does anybody have an idea
what is supposed to distinguish a book from a bookpart outside of actual

\book {
  \bookpart { ... } }

usage?

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: select a note in a chord

2019-01-15 Thread Valentin Villenave
On 1/15/19, Davide Bonetti  wrote:
> I modified
> (if (and (music-is-of-type? music 'event-chord)
>  (> l n))
> with
> (if (and (music-is-of-type? music 'event-chord)
>  (>= l n))

Nice catch! I’ve updated the snippet as well.

Additionally, beware that the LSR version uses
#(define-music-function (parser location music)
whereas the syntax for LilyPond 2.19 would be
#(define-music-function (music)

That being said, one can also use
\musicMap #(drop-n ) { … }
without an additional wrapper.

Cheers,
V.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Scheme function returning \book

2019-01-15 Thread Lukas-Fabian Moser

Hi David,

\test apparently expects a string argument.


Aaargh, sorry, stupid me, and stupid copy'n'paste error. So, another try:

\version "2.19.82"

test = #(define-scheme-function (suffix) (string?)  #{
  \book {
    \bookOutputSuffix #suffix
    \score {
  d4
    }
  }
#} )

\test "surname"

(still) causes a "Bad expression type" error.


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Scheme function returning \book

2019-01-15 Thread David Kastrup
Lukas-Fabian Moser  writes:

> Folks,
>
> is it possible for a scheme function to return a whole \book ?
>
> test = #(define-scheme-function (suffix) (string?)  #{
>   \book {
>     \bookOutputSuffix #suffix
>     \score {
>   d4
>     }
>   }
> #} )
>
> \test
>
> causes a "Bad expression type" error.

\test apparently expects a string argument.

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Scheme function returning \book

2019-01-15 Thread Lukas-Fabian Moser

Folks,

is it possible for a scheme function to return a whole \book ?

test = #(define-scheme-function (suffix) (string?)  #{
  \book {
    \bookOutputSuffix #suffix
    \score {
  d4
    }
  }
#} )

\test

causes a "Bad expression type" error.

In 
http://lilypond.1069038.n5.nabble.com/Dynamically-outputting-books-td196463.html 
David K. seems to imply it should work (but isn't sure which Lilypond 
version is needed) - I tried 2.19.82 and current Master.


Best
Lukas


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


setting fretboard diagrams at the top of the page

2019-01-15 Thread Evan Levine
Good afternoon! I've got a few things I'm brewing right now, but the 
most pressing is that I'm looking to set all of the chord diagrams for a 
lead sheet at the top of the page under the title, and modify the 
spacing of the diagrams to be centered on the page and have padding 
between each diagram.


Here are the other things I've been struggling to find documentation on:

Changing the size of the chord names above the fretboard diagrams
Inserting markup between the diagrams to indicate that they are 
different options of the same chord with the word "or"


Thanks so much! Here's my code:


\storePredefinedDiagram #default-fret-table
    \chordmode { e' }
    #ukulele-tuning
    #"4-3-(;4-3;4-3-);x;"

\storePredefinedDiagram #default-fret-table
    \chordmode { e'' }
    #ukulele-tuning
    #"x;4-2;4-3;2-1;"
chord_diagrams = \chordmode { c e e' e'' f f:m }


\header {
  title = "Steven Universe Theme"
  composer = "Rebecca Sugar, Aivi & Surasshu"
  tagline = ##t
}


%these are the chord diagrams at the top of the page
<<
  \new ChordNames { \chord_diagrams }
  \new FretBoards {
  \set Staff.stringTunings = #ukulele-tuning
  \override FretBoard.fret-diagram-details.fret-count = #3
  \override FretBoard.fret-diagram-details.finger-code = #'in-dot
  \override FretBoard.fret-diagram-details.open-string = "ܘ"
  \override FretBoard.fret-diagram-details.dot-radius = #.37
  \override FretBoard.fret-diagram-details.top-fret-thickness = #3.6
  \override FretBoard.fret-diagram-details.dot-label-font-mag = #.76
  \override FretBoard.size = #3.6
  \chord_diagrams
    }
>>
%end of chord diagrams

\score {
  <<
    \new ChordNames {
  \SUchords
    }
  \new Staff {
    \new Voice = "melody" {
    \melody }
  }
    \new Lyrics {
  \lyricsto "melody" {
  \SUlyrics
  }
    }
  >>
}

Please forgive me for any oversight of the protocol here, as this is my 
first interaction with the mailing list.


Thanks again!

On 1/15/19 12:00 PM, lilypond-user-requ...@gnu.org wrote:

Send lilypond-user mailing list submissions to
lilypond-user@gnu.org

To subscribe or unsubscribe via the World Wide Web, visit
https://lists.gnu.org/mailman/listinfo/lilypond-user
or, via email, send a message with subject or body 'help' to
lilypond-user-requ...@gnu.org

You can reach the person managing the list at
lilypond-user-ow...@gnu.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of lilypond-user digest..."


Today's Topics:

1. Re:fingering color (David Kastrup)
2. Re:Ambitus per voice and Ez_numbers_engraver (Gloops)
3. Re:[newbie] Some \markup stuff (Kieren MacMillan)
4. Re:[newbie] Some \markup stuff (Kieren MacMillan)
5. Re:[newbie] Some \markup stuff (David Kastrup)
6. Re:select a note in a chord (Davide Bonetti)
7. Increasing space between staves - how to? (po_...@yahoo.fr)
8. Re:Increasing space between staves - how to? (Malte Meyn)
9. System spacing for Certain (Reggie)


--

Message: 1
Date: Tue, 15 Jan 2019 14:30:52 +0100
From: David Kastrup 
To: Gianmaria Lari 
Cc: lilypond-user 
Subject: Re: fingering color
Message-ID: <87imyqkpyr@fencepost.gnu.org>
Content-Type: text/plain

Gianmaria Lari  writes:


First time I try to change color of lilypond elements.

This is what I did to change fingering color:

\version "2.19.82"
{ c' \finger \markup { \with-color #red 1 }}

Is there a better way?

{ c' -\tweak color #red -1 }



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: System spacing for Certain

2019-01-15 Thread Reggie
Karlin High wrote
> On 1/15/2019 10:46 AM, Reggie wrote:
>> How can LilyPond allow me to adjust various spacing between systems in a
>> piece without causing movement to any others
> 
> The Joram Berger LilyPond spacing map often clarifies things for me:
> http://joramberger.de/files/LilypondSpacing.pdf;
> -- 
> Karlin High
> Missouri, USA
> 
> ___
> lilypond-user mailing list

> lilypond-user@

> https://lists.gnu.org/mailman/listinfo/lilypond-user

Right. But it doesn't with my problem presented here. So I asked. I don't
want any changes in all but only the one system involved in specific
mentioned. How is that code inserted inline as I need it?




--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: System spacing for Certain

2019-01-15 Thread Karlin High

On 1/15/2019 10:46 AM, Reggie wrote:

How can LilyPond allow me to adjust various spacing between systems in a
piece without causing movement to any others


The Joram Berger LilyPond spacing map often clarifies things for me:

--
Karlin High
Missouri, USA

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


System spacing for Certain

2019-01-15 Thread Reggie
How can LilyPond allow me to adjust various spacing between systems in a
piece without causing movement to any others since I already created staves
correctly using override in with command? I am not undertanding. Somewhere
in all my c's?

\version "2.19.82"
<<
  \relative c'
  \new Staff  { \repeat unfold 25 { c1 } e e e e e e e e e e e e e  }
  \relative c'
  \new Staff \with {
\override VerticalAxisGroup.staff-staff-spacing.basic-distance = 20
  }
  { \repeat unfold 25 { c1 } c c c c c c c c c c c c c }
  \relative c'
  \new Staff  { \repeat unfold 25 { c1 } c c c c c c c c c c c c c }
>>

% so on

filehelp.png   



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Increasing space between staves - how to?

2019-01-15 Thread Malte Meyn




Am 15.01.19 um 11:46 schrieb po_...@yahoo.fr:

Hi,

I have written a score with 4 staves (please see below) and I want to increase 
the space between the 3rd and the 4th stave, and *only* between the 3rd and the 
4th stave.

How could I do that ?

Thanks.


Hi,

please always give a minimal *working* code example. In your case, the 
definition of global, Clarino, etc. is missing. Instead you could use 
simple rests:


\version "2.19.82"

\score {
  \new StaffGroup <<
\new Staff << R1 >>
\new Staff << R1 >>
\new Staff \with {
  \override VerticalAxisGroup.staff-staff-spacing.basic-distance = 20
} << R1 >>
\new Staff << R1 >>
  >>
  \layout { }
}

HTH,
Malte

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Increasing space between staves - how to?

2019-01-15 Thread po_ubl
Hi,

I have written a score with 4 staves (please see below) and I want to increase 
the space between the 3rd and the 4th stave, and *only* between the 3rd and the 
4th stave.

How could I do that ?

Thanks.

\score {
\new StaffGroup <<
\new Staff << \global \Clarino >>
\new Staff << \global \Quinta >>
\new Staff << \global \Alto >>
\new Staff << \global \VulganoEtBasso >>
>>
\layout { }
%\midi { }
}


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: [newbie] Some \markup stuff

2019-01-15 Thread David Kastrup
Kieren MacMillan  writes:

> Hi David,
>
>> That's a lowercase math gamma.
>
> LOL
>
> Yes, I’m so used to using that in my number theory papers, I wasn’t
> thinking about the OP’s likely use. Thanks for clarifying!

ἐν ἀρχῇ ἦν ὁ λόγος or "text first".

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: select a note in a chord

2019-01-15 Thread Davide Bonetti

Hello!

Il 15/01/2019 11:46, Davide Bonetti ha scritto:
But I noticed that it doesn't work on the lowest pitch of a chord 
(drop 4 on a four note chord, drop 3 on a three note chord)



I modified

   (if (and (music-is-of-type? music 'event-chord)
    (> l n))

with

   (if (and (music-is-of-type? music 'event-chord)
    (>= l n))

and now it works even on the lowest pitch.

Here the complete code:

%%

#(define (drop-n n)

   (lambda (music)
 (let* ((elts (ly:music-property music 'elements))
    (l (length elts))
    ;; The user may not have entered the notes
    ;; from the lowest to the uppermost;
    ;; let’s extract the pitches…
    (pitches (map (lambda (x) (ly:music-property x 'pitch))
   (filter
    (lambda (y)
  (music-is-of-type? y 'note-event))
    elts)))
    ;; … and put them in order.
    (sorted (sort pitches ly:pitch= l n))
   (begin
    ;; first apply the sorted pitches
    ;; to the actual notes.
    (map
 (lambda (e p)
   (ly:music-set-property! e 'pitch p))
 elts sorted)
    ;; then transpose the specified note
    ;; (strangely, jazzmen tend to
    ;; count from the top note downward).
    (list-set! elts (- l n)
  (ly:music-transpose
   (list-ref elts (- l n))
   (ly:make-pitch -1 0)

   music)))

%

cheers

Davide


---
Questa e-mail è stata controllata per individuare virus con Avast antivirus.
https://www.avast.com/antivirus


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: [newbie] Some \markup stuff

2019-01-15 Thread Kieren MacMillan
Hi Mark,

On Jan 14, 2019, at 11:58 PM, Mark Probert  wrote:
> it comes out just the way I am after!

Yay! Onward and upward.  =)
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: [newbie] Some \markup stuff

2019-01-15 Thread Kieren MacMillan
Hi David,

> That's a lowercase math gamma.

LOL

Yes, I’m so used to using that in my number theory papers, I wasn’t thinking 
about the OP’s likely use. Thanks for clarifying!

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: Ambitus per voice and Ez_numbers_engraver

2019-01-15 Thread Gloops
Thank you Harm!
It's perfect ...
Still sorry for my poor English, luckily the pictures spoke for me.
Regards, Gilles



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: fingering color

2019-01-15 Thread David Kastrup
Gianmaria Lari  writes:

> First time I try to change color of lilypond elements.
>
> This is what I did to change fingering color:
>
> \version "2.19.82"
> { c' \finger \markup { \with-color #red 1 }}
>
> Is there a better way?

{ c' -\tweak color #red -1 }

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: fingering color

2019-01-15 Thread Urs Liska


Am 15.01.19 um 13:43 schrieb Gianmaria Lari:

First time I try to change color of lilypond elements.

This is what I did to change fingering color:

\version "2.19.82"
{ c' \finger \markup { \with-color #red 1 }}


{
  \override Fingering.color = #red
  c' -1
}



Is there a better way?

Thank you, g.

___
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


fingering color

2019-01-15 Thread Gianmaria Lari
First time I try to change color of lilypond elements.

This is what I did to change fingering color:

\version "2.19.82"
{ c' \finger \markup { \with-color #red 1 }}

Is there a better way?

Thank you, g.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: select a note in a chord

2019-01-15 Thread Davide Bonetti

Now it sorts the pitches too!

It can be easily converted to transpose a pitch an octave up changing 
(ly:make-pitch -1 0) to (ly:make-pitch +1 0)


But I noticed that it doesn't work on the lowest pitch of a chord (drop 
4 on a four note chord, drop 3 on a three note chord)


Cheers

Davide

Il 15/01/2019 10:35, Valentin Villenave ha scritto:

On 1/15/19, Valentin Villenave  wrote:

(It would be possible to first re-order the notes
automatically and then apply the transformation, but I’m too lazy to
add it right now :-)

OK, here’s an improved version:
http://lsr.di.unimi.it/LSR/Item?id=1082

Cheers,
V.


---
Questa e-mail è stata controllata per individuare virus con Avast antivirus.
https://www.avast.com/antivirus


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Rakefile

2019-01-15 Thread Craig Dabelstein
Thanks Malte, much appreciated.

On Mon., 14 Jan. 2019, 10:12 pm Malte Meyn 
>
> Am 14.01.19 um 11:33 schrieb Craig Dabelstein:
> > Hi lilyponders,
> >
> > Does anyone use a Rakefile for automating their lilypond engraving and
> > would be willing to share an example file that I could follow?
>
> Hi Craig,
>
> I don’t know anything about Ruby and Rakefiles but I’ve used Makefiles
> some times. Attached you can find a Makefile that can build the full
> score, single movements of full score, all parts, midis, and even audios
> (.wav) from those midis using fluidsynth. The project contains the
> following files:
>
> % all .ily files are included in other files
> global.ily % global definitions
> global_partitur.ily % global definitions for full score
> III.ily % definitions for the four movements
> II.ily
> I.ily
> IV.ily
>
> % .ly files are compiled
> midiIII.ly
> midiII.ly
> midiI.ly
> midiIV.ly
> PartiturIII.ly % full score, third movement
> PartiturII.ly
> PartiturI.ly
> PartiturIV.ly
> Partitur.ly % full score, complete
> Stimmen.ly % all parts, complete, uses \bookOutputName to make oboeI.pdf
> etc.
>
> Probably that setup and the Makefile are far from perfect but it works
> for me ;)
>
> HTH
> Malte
>
> ___
> 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: select a note in a chord

2019-01-15 Thread Valentin Villenave
On 1/15/19, Valentin Villenave  wrote:
> (It would be possible to first re-order the notes
> automatically and then apply the transformation, but I’m too lazy to
> add it right now :-)

OK, here’s an improved version:
http://lsr.di.unimi.it/LSR/Item?id=1082

Cheers,
V.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Appoggiatura slur not crossing beam

2019-01-15 Thread Urs Liska

Hi Mark and Aaron,

thanks for your suggestions. I'll go with Aaron's because a) it does'n't 
rely on changing an unrelated element (the stem direction) and forces me 
to deviate from the source and b) because it seems to surgically remove 
the layout constraint that caused the issue.


Thanks
Urs

Am 14.01.19 um 13:08 schrieb Urs Liska:
In an appoggiatura with the main note having the stem downwards the 
appoggiatura's slur will cross the stem, see the first of the two 
instances in this example:


{
  \appoggiatura d''4 c''
  \appoggiatura d'4 c'
}

A client requests me to shorten the slurs so not to cross the stem. Is 
there a more convenient and consistent solution to this short of 
\shape-ing each slur individually?


Thanks
Urs


___
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: Emmentaler & friends

2019-01-15 Thread Urs Liska


Am 15.01.19 um 01:06 schrieb Andrew Bernard:

Hi Massimiliano,

Do use 2.19.82. Although it's modestly termed 'unstable', it is 
actually very very stable. This use of the term unstable is an open 
source development convention more than anything in the context of 
lilypond. The lilypodndreleases are remarkably stable in the last 
couple of years. Invariably when I post such a comment the development 
team will jump in say but they are unstable. Yes, but they are also 
publicly available on the website and practice and experience shows 
that you are pretty safe using them. I hammer 2.19.82 hard all day and 
can't break it. It has many advantages over 2.18 especially if you are 
doing the sort of work I imagine you are. Just my A$2 worth.



But these people also point out that the most "unstable" thing about the 
development releases is the syntax. If you use them you have to be ready 
to *occasionally* change minor things in the input files, but only in 
the relatively rare cases where you stumble over them and the really 
rare cases where convert-ly may not be able to fix them.


From my experience this has no real practical penalty, the only area 
where I would consider this important would be if you provide some sort 
of infrastructure where you might want to rely on long-term stability of 
the syntax, like a web service or an editing infrastructure (and yes, we 
do have this as an issue in Frescobaldi development that officially 
supports the "latest stable release" of LilyPond.


Urs




Andrew


___
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: [newbie] Some \markup stuff

2019-01-15 Thread David Kastrup
Kieren MacMillan  writes:

> Hi Mark,
>
> [Welcome to the 'Pond!]
>
>> I want to get the verbb text to show as italic.  
>
> The easiest way is probably:
>
> verbb = \lyricmode {
>   \override LyricText.font-shape = #'italic
>   ut re mi fa sol la
> }
>
>> Second question: I want to replace the "G" in verba with a Greek Upper 
>> Gamma ( doesn't work). Is there a simple way of doing this?
>
> Make sure your file is being saved with Unicode (UTF-8) encoding, and
> simply put the gamma (휸) in there directly.

That's a lowercase math gamma.  You mean Γ instead (the normal uppercase
text gamma) which of course is also available in a lowercase variant γ.
You really really don't want to use math fonts for text.

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user