Re: \bookpart question

2019-09-18 Thread foxfanfare
Jacques Menu Muzhic wrote
> What is the logic behind that being rejected, and the need to use a \paper
> block instead, which does what I want actually?

I Jacques. I think the page-count should be in a \paper block instead, and
at the end. Ex:

  \bookpart {
\new Staff = "HautboisDeux"
\with {
  instrumentName = "Hautbois 2"
  shortInstrumentName = "Hbs 2"
}
<<
  \context Voice = "HautboisDeux" <<
\HautboisDeux
  >>
>>
\paper {
  page-count = 1
}
  } 



--
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: \bookpart question

2019-09-18 Thread Thomas Morley
Am Mi., 18. Sept. 2019 um 08:22 Uhr schrieb Jacques Menu
:
>
> Hello folks,
>
> I naturally tend to specify a number of pages in a bookpart this way:
>
>   \bookpart {
> \layout {
>   page-count = 1
> }
  [...]
>   }
>
> What is the logic behind that being rejected, and the need to use a \paper 
> block instead, which does what I want actually?

As far as I remember David K once wrote current implementation of
\book and \bookpart is strange and it's even hard to tell how they are
supposed to work.
For now one can't do better then code what actually works and forget
about the logic, imho ...


Cheers,
  Harm

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


Re: \bookpart question

2019-09-18 Thread Jacques Menu
Thanks guys!

JM

> Le 18 sept. 2019 à 10:05, Thomas Morley  a écrit :
> 
> Am Mi., 18. Sept. 2019 um 08:22 Uhr schrieb Jacques Menu
> :
>> 
>> Hello folks,
>> 
>> I naturally tend to specify a number of pages in a bookpart this way:
>> 
>>  \bookpart {
>>\layout {
>>  page-count = 1
>>}
>  [...]
>>  }
>> 
>> What is the logic behind that being rejected, and the need to use a \paper 
>> block instead, which does what I want actually?
> 
> As far as I remember David K once wrote current implementation of
> \book and \bookpart is strange and it's even hard to tell how they are
> supposed to work.
> For now one can't do better then code what actually works and forget
> about the logic, imho ...
> 
> 
> Cheers,
>  Harm


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


Re: Drinking song symbols

2019-09-18 Thread Hans Åberg

> On 17 Sep 2019, at 22:01, k...@aspodata.se wrote:
> 
> As an idea a saw somewhere, I made a little wineglass symbol
> where in the song you are to take a drink, as in bar 14 in:
> http://aspodata.se/choir/ud/k%C3%A4y_metsolan_halki/k%C3%A4y_metsolan_halki.pdf
> source code in 
> http://aspodata.se/git/musik/Eduard_Hermes/k%C3%A4y_metsolan_halki/

The title seems misspelt: Metsämiehen juomalaulu, "A hunter's drinking song”.



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


Fwd: Re: drinking song symbols

2019-09-18 Thread Malte Meyn

Forgot the list …

Am 17.09.19 um 22:01 schrieb k...@aspodata.se:

  As an idea a saw somewhere, I made a little wineglass symbol
  where in the song you are to take a drink, as in bar 14 in:
http://aspodata.se/choir/ud/k%C3%A4y_metsolan_halki/k%C3%A4y_metsolan_halki.pdf
  source code in
http://aspodata.se/git/musik/Eduard_Hermes/k%C3%A4y_metsolan_halki/

Perhaps someone would be interested in improving the design, currently
it is a simple postscript markup:


You could search for a font containing the wine emoji and include that as

\markup \override #'(font-name . "my font") \char ##x1f377

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


Custom Markup Command

2019-09-18 Thread sir.teddy.the.first
Hi all,

I'm trying to create a custom markup command to display text (in my case a
chord name, but it could be any text) over a note. 

This is what I have so far: 

 

%%

\version "2.19.83"

 

#(define-markup-command (chord layout props text)

   (markup?)

   (interpret-markup layout props

 #{

\markup {

\fontsize #-1

\override #'(font-name . "Georgia Bold")

#text } 

 #}))

 

\relative c' {

c4^\markup \chord "Am" d e f

}

 

%%

 

And it's working as expected, but my question is: Is it possible to shorten
this command any further?

I'd like to be able to call it with a single command (\chord "Am") instead
of " \markup \chord 'Am' " .

Is this possible?

 

Thanks

 

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


Re: Drinking song symbols

2019-09-18 Thread David Kastrup
Brian Barker via lilypond-user  writes:

> At 22:01 17/09/2019 +0200, Karl Hammar wrote:
>> ... I made a little wineglass symbol where in the song you are to
>> take a drink, as in bar 14 in:
>> http://aspodata.se/choir/ud/k%C3%A4y_metsolan_halki/k%C3%A4y_metsolan_halki.pdf
>> ...
>
> The first basses won't get much drinking done during a vivace
> crotchet, especially as they have to squeeze a breath in as well! Why
> do the other voices get five times as long to get tipsy? I think we
> should be told ...

Because they are still sober when starting to sing.

-- 
David Kastrup

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


Re: Custom Markup Command

2019-09-18 Thread Leo Correia de Verdier
You know there is a better way of writing chords, right?

Anyway, I think this does what you want:

\version "2.19.82"
 
#(define-markup-command (formatchord layout props text)
   (markup?)
   (interpret-markup layout props
 #{
\markup {
\fontsize #-1
\override #'(font-name . "Georgia Bold")
#text }
 #}))

chord = ^\markup \formatchord \etc
 
\relative c' {
c4 \chord "Am" d e f
}


> 18 sep. 2019 kl. 12:39 skrev  
> :
> 
> Hi all,
> I’m trying to create a custom markup command to display text (in my case a 
> chord name, but it could be any text) over a note. 
> This is what I have so far: 
>  
> %%
> \version "2.19.83"
>  
> #(define-markup-command (chord layout props text)
>(markup?)
>(interpret-markup layout props
>  #{
> \markup {
> \fontsize #-1
> \override #'(font-name . "Georgia Bold")
> #text } 
>  #}))
>  
> \relative c' {
> c4^\markup \chord "Am" d e f
> }
>  
> %%
>  
> And it’s working as expected, but my question is: Is it possible to shorten 
> this command any further?
> I’d like to be able to call it with a single command (\chord “Am”) instead of 
> “ \markup \chord ‘Am’ “ .
> Is this possible?
>  
> Thanks
>  
> ___
> 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


AW: Custom Markup Command

2019-09-18 Thread Aron Hanowski
Yeah, I know that there is a better way.
I added the chords to the melody with the "normal" method, but I need this if I 
just want to add one single chord to another instrument, without the need to 
set up a new chordstaff.

But thanks, that is what I was looking for.

> -Ursprüngliche Nachricht-
> Von: Leo Correia de Verdier 
> Gesendet: Mittwoch, 18. September 2019 13:22
> An: sir.teddy.the.fi...@gmail.com
> Cc: lilypond-user 
> Betreff: Re: Custom Markup Command
> 
> You know there is a better way of writing chords, right?
> 
> Anyway, I think this does what you want:
> 
> \version "2.19.82"
> 
> #(define-markup-command (formatchord layout props text)
>(markup?)
>(interpret-markup layout props
>  #{
> \markup {
> \fontsize #-1
> \override #'(font-name . "Georgia Bold")
> #text }
>  #}))
> 
> chord = ^\markup \formatchord \etc
> 
> \relative c' {
> c4 \chord "Am" d e f
> }
> 
> 
> > 18 sep. 2019 kl. 12:39 skrev 
> :
> >
> > Hi all,
> > I’m trying to create a custom markup command to display text (in my case a
> chord name, but it could be any text) over a note.
> > This is what I have so far:
> >
> > %%
> > \version "2.19.83"
> >
> > #(define-markup-command (chord layout props text)
> >(markup?)
> >(interpret-markup layout props
> >  #{
> > \markup {
> > \fontsize #-1
> > \override #'(font-name . "Georgia Bold")
> > #text }
> >  #}))
> >
> > \relative c' {
> > c4^\markup \chord "Am" d e f
> > }
> >
> > %%
> >
> > And it’s working as expected, but my question is: Is it possible to shorten 
> > this
> command any further?
> > I’d like to be able to call it with a single command (\chord “Am”) instead 
> > of “
> \markup \chord ‘Am’ “ .
> > Is this possible?
> >
> > Thanks
> >
> > ___
> > 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: Fwd: Re: drinking song symbols

2019-09-18 Thread karl
Malte Meyn:
> Am 17.09.19 um 22:01 schrieb k...@aspodata.se:
...
> > http://aspodata.se/git/musik/Eduard_Hermes/k%C3%A4y_metsolan_halki/
...
> You could search for a font containing the wine emoji and include that as
> 
> \markup \override #'(font-name . "my font") \char ##x1f377

Good suggestion, but it is kind of too much detail, I think. And it 
makes the score take up 3 pages instead of 2, guess that can be solved 
by makeing it smaller.

Regards,
/Karl Hammar


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


Re: drinking song symbols

2019-09-18 Thread karl
Peirre Perol-Schneider:
> #(define-markup-command (wineGlass layout props)()
>   (interpret-markup layout props
>(markup
> (#:stencil
>  (make-path-stencil
>'(M 0.2 5 C -.5 3.8 0 2.2 1 2.2
>  L .95 0.2 L 0 0 L 2.2 0 L 1.2 .2
>  L 1.2 2.2 C 2.2 2.2 2.7 3.8 2 5 Z
>  M -.1 3.6 L 2.3 3.6)
>.1 .6 .6 #f)
> {
>   c'^\markup\wineGlass
> }

It is nice, but it makes the score take 3 pages instead of 2. Perhaps 
it goes back to 2 pages if one make it smaller. I like your rendition 
of the foot.

Though I guess a glass with straight sides are more appropriate at 
thoose singing and drinking games.

I think I'll settle with

kippis = \markup {
  \postscript "
newpath
1   1.5 moveto
0.58 2.4 lineto
1.42 2.4 lineto
closepath
0.7 setgray fill
stroke

0 setgray
1   0.7 moveto
0.3 0.5 lineto
1.7 0.5 lineto
1   0.7 lineto

1   1.5 lineto
0.3 3   lineto
1.7 3   lineto
1   1.5 lineto
stroke
"
}


Regards,
/Karl Hammar


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


Re: Drinking song symbols

2019-09-18 Thread karl
Hans Åberg:
> > On 17 Sep 2019, at 22:01, k...@aspodata.se wrote:
...
> > http://aspodata.se/git/musik/Eduard_Hermes/k%C3%A4y_metsolan_halki/
...
> The title seems misspelt: Metsämiehen juomalaulu, "A hunter's drinking 
> song”.

Well, it's just the dir/filename, I probably should change that.

Regards,
/Karl Hammar


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


Re: drinking song symbols

2019-09-18 Thread Jacques Menu
Very interesting! Now, how about a full 12xn table service?

JM

> Le 18 sept. 2019 à 13:39, k...@aspodata.se a écrit :
> 
> Peirre Perol-Schneider:
>> #(define-markup-command (wineGlass layout props)()
>>  (interpret-markup layout props
>>   (markup
>>(#:stencil
>> (make-path-stencil
>>   '(M 0.2 5 C -.5 3.8 0 2.2 1 2.2
>> L .95 0.2 L 0 0 L 2.2 0 L 1.2 .2
>> L 1.2 2.2 C 2.2 2.2 2.7 3.8 2 5 Z
>> M -.1 3.6 L 2.3 3.6)
>>   .1 .6 .6 #f)
>> {
>>  c'^\markup\wineGlass
>> }
> 
> It is nice, but it makes the score take 3 pages instead of 2. Perhaps 
> it goes back to 2 pages if one make it smaller. I like your rendition 
> of the foot.
> 
> Though I guess a glass with straight sides are more appropriate at 
> thoose singing and drinking games.
> 
> I think I'll settle with
> 
> kippis = \markup {
>  \postscript "
> newpath
> 1   1.5 moveto
> 0.58 2.4 lineto
> 1.42 2.4 lineto
> closepath
> 0.7 setgray fill
> stroke
> 
> 0 setgray
> 1   0.7 moveto
> 0.3 0.5 lineto
> 1.7 0.5 lineto
> 1   0.7 lineto
> 
> 1   1.5 lineto
> 0.3 3   lineto
> 1.7 3   lineto
> 1   1.5 lineto
> stroke
> "
> }
> 
> 
> Regards,
> /Karl Hammar
> 
> 
> ___
> 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: drinking song symbols

2019-09-18 Thread Pierre Perol-Schneider
Hi Karl

Le mer. 18 sept. 2019 à 13:41,  a écrit :


> It is nice, but it makes the score take 3 pages instead of 2. Perhaps
> it goes back to 2 pages if one make it smaller. I like your rendition
> of the foot.
>

Just for info, you can change the scale according to your will:

#(define-markup-command (wineGlass layout props)()
  (interpret-markup layout props
   (markup
(#:stencil
 (make-path-stencil
   '(M 0.2 5 C -.5 3.8 0 2.2 1 2.2
 L .95 0.2 L 0 0 L 2.2 0 L 1.2 .2
 L 1.2 2.2 C 2.2 2.2 2.7 3.8 2 5 Z
 M -.1 3.6 L 2.3 3.6)
   .1
   ;.6 .6  ;; <= change scale here, e.g.:
   .5 .5
   #f)

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


Re: drinking song symbols

2019-09-18 Thread karl
Jacques Menu:
...
> Now, how about a full 12xn table service?
...

What is that ?

Regards,
/Karl Hammar


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


Re: drinking song symbols

2019-09-18 Thread David Kastrup
k...@aspodata.se writes:

> Jacques Menu:
> ...
>> Now, how about a full 12xn table service?
> ...
>
> What is that ?

I'd assume a set for 12 persons consisting of n items for each.

-- 
David Kastrup

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


Re: drinking song symbols

2019-09-18 Thread karl
Pierre:
> Le mer. 18 sept. 2019 à 13:41,  a écrit :
> > It is nice, but it makes the score take 3 pages instead of 2. Perhaps
> > it goes back to 2 pages if one make it smaller. I like your rendition
> > of the foot.
> Just for info, you can change the scale according to your will:
> #(define-markup-command (wineGlass layout props)()
>   (interpret-markup layout props
>(markup
> (#:stencil
>  (make-path-stencil
>'(M 0.2 5 C -.5 3.8 0 2.2 1 2.2
>  L .95 0.2 L 0 0 L 2.2 0 L 1.2 .2
>  L 1.2 2.2 C 2.2 2.2 2.7 3.8 2 5 Z
>  M -.1 3.6 L 2.3 3.6)
>.1
>;.6 .6  ;; <= change scale here, e.g.:
>.5 .5
>#f)

I have to go down to .2 .2 scaling to get the score on 2 pages, but 
then the wine glass is too small.

Regards,
/karl Hammar



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


Re: Drinking song symbols

2019-09-18 Thread Hans Åberg

> On 18 Sep 2019, at 04:56, Brian Barker via lilypond-user 
>  wrote:
> 
> At 22:01 17/09/2019 +0200, Karl Hammar wrote:
>> ... I made a little wineglass symbol where in the song you are to take a 
>> drink, as in bar 14 in: 
>> http://aspodata.se/choir/ud/k%C3%A4y_metsolan_halki/k%C3%A4y_metsolan_halki.pdf
>>  ...
> 
> The first basses won't get much drinking done during a vivace crotchet, 
> especially as they have to squeeze a breath in as well! Why do the other 
> voices get five times as long to get tipsy? I think we should be told …

In the Swedish song “Helan går” (which sounds as “Hell and Gore” in English), 
one makes a hold where the lyrics at [1] mark “Drink”, so it should be a 
fermata there, cf. [2] times 1:45 and hold at 1:58. In the stage performance of 
"Metsämiehen juomalaulu" at [3], the choir does not bother about that, though.


1. https://en.wikipedia.org/wiki/Helan_Går
2. https://www.youtube.com/watch?v=wjcGAKU23Qc
3. https://www.youtube.com/watch?v=pS7Q2GI2gjM



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


Re: drinking song symbols

2019-09-18 Thread Pierre Perol-Schneider
Hum, weird. Maybe you could change the dimension, e.g.:

#(define-markup-command (wineGlass layout props)()
  (interpret-markup layout props
   (markup
(#:with-dimensions (cons 0.2 1.1) (cons 0.3 2.7) ;; <= Set dimensions
 (#:stencil
  (make-path-stencil
   '(M .2 5 C -.5 3.8 0 2.2 1 2.2 L .95 0.2
 L 0 0 L 2.2 0 L 1.2 .2 L 1.2 2.2 C 2.2
 2.2 2.7 3.8 2 5 Z M -.1 3.6 L 2.3 3.6)
   .1 .6 .6 #f))

Cheers,
Pierre

Le mer. 18 sept. 2019 à 22:13,  a écrit :

> Pierre:
> > Le mer. 18 sept. 2019 à 13:41,  a écrit :
> > > It is nice, but it makes the score take 3 pages instead of 2. Perhaps
> > > it goes back to 2 pages if one make it smaller. I like your rendition
> > > of the foot.
> > Just for info, you can change the scale according to your will:
> > #(define-markup-command (wineGlass layout props)()
> >   (interpret-markup layout props
> >(markup
> > (#:stencil
> >  (make-path-stencil
> >'(M 0.2 5 C -.5 3.8 0 2.2 1 2.2
> >  L .95 0.2 L 0 0 L 2.2 0 L 1.2 .2
> >  L 1.2 2.2 C 2.2 2.2 2.7 3.8 2 5 Z
> >  M -.1 3.6 L 2.3 3.6)
> >.1
> >;.6 .6  ;; <= change scale here, e.g.:
> >.5 .5
> >#f)
>
> I have to go down to .2 .2 scaling to get the score on 2 pages, but
> then the wine glass is too small.
>
> Regards,
> /karl Hammar
>
>
>
> ___
> 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: drinking song symbols

2019-09-18 Thread Jacques Menu


> Le 18 sept. 2019 à 22:02, David Kastrup  a écrit :
> 
> k...@aspodata.se writes:
> 
>> Jacques Menu:
>> ...
>>> Now, how about a full 12xn table service?
>> ...
>> 
>> What is that ?
> 
> I'd assume a set for 12 persons consisting of n items for each.

Right, didn’t know the english name for such a table set…

> 
> -- 
> David Kastrup
> 
> ___
> 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