Re: Apply a music-function script to all elements of a list

2017-02-20 Thread Thomas Morley
2017-02-20 16:31 GMT+01:00 zaord :
> Hello,
>
> I coded a script that adds markup. This function \ diag allows me to display
> a customized diagram (here left hand "button board" of an accordion) and I
> would like to apply it to all the elements of a chordmode {}.
> The script below works very well but only for a chordmode with 1 element.

I have my doubts. Usually TextScript is not allowed in
ChordNames-context, unless you include the relevant engraver.

> If
> the Chordmode have two elements, then the diagram is writing over himself
> but don't follow the score !
>
> In another hand, lilypond does not recreate new diagrams and the diagrams
> are superpozed ...

You need to iterate your function over the argument applying it to
every event-chord found.

Something at the lines of

diag=
#(define-music-function (parser location music)
  (ly:music?)
  (music-map
(lambda (m)
 (if (music-is-of-type? m 'event-chord)
  #{ <>^\markup \complete #m $m #}
  m))
music))

And later:

\new ChordNames \with { \consists "Text_engraver" } \diag \chordNames


HTH,
  Harm

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


Re: Chord diagrams

2017-02-20 Thread Thomas Morley
2017-02-20 22:59 GMT+01:00 Johan Vromans :
>> \storePredefinedDiagram #default-fret-table \chordmode {c/g}
>> #guitar-tuning
>> #"3-4;3-3;2-2;o;1-1;o;"
>
> I'd like to see someone playing this as shown :) .
>
> (Try swapping the 3rd and 4th fingers)

I've noticed the fingering and considered to change it as you propose.
But it is indeed a possibility. I use it sometimes myself for situations like

\new Voice { \clef "G_8" << 1 \\ { c4-3 g,-4 e, g,-4 } >> }

Best,
  Harm

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


Re: Chord diagrams

2017-02-20 Thread Johan Vromans
> \storePredefinedDiagram #default-fret-table \chordmode {c/g}
> #guitar-tuning
> #"3-4;3-3;2-2;o;1-1;o;"

I'd like to see someone playing this as shown :) .

(Try swapping the 3rd and 4th fingers)

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


Re: Chord diagrams

2017-02-20 Thread Thomas Morley
2017-02-20 11:51 GMT+01:00 Don Gingrich :
> A simple problem, I hope
>
> I have a local copy of predefined-guitar-fretboards.ly

For which purpose?

>
> I used a C chord with G bass and noticed
> that I got a three string chord
>
> open G 1st fret B and open E
>
> This * is* a C with the bottom note a G
>
> But every guitar player I know would play that as
>
> G on the low E string
> C on the A string
> E on the D string
> G string open
> C on the B string
> and Open High E

Well, being a guitar player myself, I'd say it's the most common, yes,
but ofcourse not the only possibility.

>
> What do I need to hack in the predefined-guitar-fretboards.ly
> to get the chord diagram that I want?
>
> I tried the following without success
>
> \storePredefinedDiagram #default-fret-table \chordmode {c:/g}
> #guitar-tuning
> #"3-4;3-3;2-2;o;1-1;o;"
>
> But it didn't break everything else, so I may be close

\version "2.19.52"

\include "predefined-guitar-fretboards.ly"

\storePredefinedDiagram #default-fret-table \chordmode {c/g}
#guitar-tuning
#"3-4;3-3;2-2;o;1-1;o;"

\new FretBoards \chordmode { c/g }

works here.


HTH,
  Harm

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


Re: Melisma with manual syllable durations

2017-02-20 Thread David Wright
On Mon 20 Feb 2017 at 18:37:15 (+), David Sumbler wrote:
> On Sun, 2017-02-19 at 14:49 +, David Sumbler wrote:
> > In 2 of the set of 6 songs I have (rather slowly) been setting, I
> > want
> > 2 sets of words: the original, and an English version.  In each of
> > the
> > other 4 songs there is just one set of words.
> > 
> > After much experimentation and a lot of failures, I found a way of
> > doing what I wanted, which is to use manual durations.  This may very
> > well not be the best nor the simplest way of doing it, but it is the
> > only way I found that works.
> > 
> > The only trouble is, I cannot work out how to produce a melisma mark
> > when using manual durations.  The following snippet illustrates the
> > problem:
> > 
> > %%
> > \version "2.19.48"
> > 
> > \paper { ragged-right = ##f }
> > 
> > voice = { \time 3/4 \partial 8
> >   e'8 | e' d' d'4( ~ d'16 c') b8 | c'4 c'4. r8 \bar "|."
> > }
> > 
> > words = \lyricmode { Ac er -- aill yn __ ei fe -- di. }
> > 
> > trans = \lyricmode { An8 -- oth -- er reaps4. __ the8 har4 -- vest.4.
> > }
> > 
> > <<
> >   \new Staff { \voice }
> >   \addlyrics { \words }
> >   \new Lyrics { \override LyricText.font-shape = #'italic
> > \trans }
> > > 
> > > > 
> > > > 
> > %%
> > 
> > The melisma appears as required in the upper set of words, but not in
> > the lower.  I have tried various ways to get what I want, but so far
> > without any success.
> > 
> > Can it be done?
> 
> Thank you for the responses to my question.
> 
> Unfortunately, I now realise that the question was not clearly
> expressed.  It was not intended to be "is there a way to get melisma in
> upper and lower voices", but "is there a way to get melisma marks when
> using manual syllable durations?"

Um, that's what I did in my response. Perhaps you were distracted by
my aside. Anyway, here's an edited version of your example, complete
with a screenshot of the output.

\version "2.19.48"

\paper { ragged-right = ##f }

voice = { \time 3/4 \partial 8
  e'8 | e' d' d'4( ~ d'16 c') b8 | c'4 c'4. r8 \bar "|."
}

words = \lyricmode { Ac er -- aill yn __ ei fe -- di. }

trans = \lyricmode { Du8 -- ra -- tions are4. __ all8 pre4 -- served.4. }

<<
  \new Staff { \voice }
  \addlyrics { \words }
  \addlyrics { \override LyricText.font-shape = #'italic
\trans }
>>

Writing \addlyrics means that it uses the voice above for the
melisma information. You wrote \new, which has no such built-in
assumption.

> As I said in my original post, I had tried various other ways of
> setting the second set of words, including the obvious one of creating
> a \new Voice at the relevant point of the vocal staff and using
> \lyricsto.  Unfortunately there was a problem with this, which was that
> the words were set one note late, try as I might to get around the
> problem.  So instead of spending possibly hours trying to get to the
> root of this, I decided to try manual durations, which appeared to work
> perfectly - until I ran into this melisma problem in the second of the
> relevant songs.  (There is no melisma in the first of the 2 songs.)
> 
> In view of the fact that manual durations are the first to be shown in
> the Notation Reference, it seems surprising if such a standard part of
> musical notation is not supported.

AFAICT it's the best supported of all lyric input methods. A shame
it's so tedious to write, and gives rise to a side effect, ie making
digits reserved characters.

> So - can anyone tell me if melisma markings be produced when using
> manual durations with lyrics?  And if so, how?

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


Re: Switching X-axis placement of a grace note and arpeggio spanner

2017-02-20 Thread Knute Snortum
I love this solution, because it abstracts the complexity into a function
so I can keep the music part relatively clean.  Thanks!


---
Knute Snortum
(via Gmail)

On Sun, Feb 19, 2017 at 7:40 AM, Robin Bannister  wrote:

> Knute Snortum wrote:
>
>> That's it, thanks!
>>
>> Here's what I did, just for people searching the mailing list:
>>
>>
> Which in turn, reminded me of easyChArp:
>
>
> {
>\easyChArp #-6 \grace e''4  2
> }
>
>
> Cheers,
> Robin
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Melisma with manual syllable durations

2017-02-20 Thread David Kastrup
David Sumbler  writes:

> On Sun, 2017-02-19 at 14:49 +, David Sumbler wrote:
>
> Thank you for the responses to my question.
>
> Unfortunately, I now realise that the question was not clearly
> expressed.  It was not intended to be "is there a way to get melisma in
> upper and lower voices", but "is there a way to get melisma marks when
> using manual syllable durations?"
>
> As I said in my original post, I had tried various other ways of
> setting the second set of words, including the obvious one of creating
> a \new Voice at the relevant point of the vocal staff and using
> \lyricsto.  Unfortunately there was a problem with this, which was that
> the words were set one note late, try as I might to get around the
> problem.  So instead of spending possibly hours trying to get to the
> root of this, I decided to try manual durations, which appeared to work
> perfectly - until I ran into this melisma problem in the second of the
> relevant songs.  (There is no melisma in the first of the 2 songs.)
>
> In view of the fact that manual durations are the first to be shown in
> the Notation Reference, it seems surprising if such a standard part of
> musical notation is not supported.
>
> So - can anyone tell me if melisma markings be produced when using
> manual durations with lyrics?  And if so, how?

Again: set associatedVoice accordingly.  Why ask for advice if you are
going to ignore it?

%%
\version "2.19.48"

\paper { ragged-right = ##f }

voice = { \time 3/4 \partial 8
	  e'8 | e' d' d'4( ~ d'16 c') b8 | c'4 c'4. r8 \bar "|."
	}

words = \lyricmode { Ac er -- aill yn __ ei fe -- di. }

trans = \lyricmode { An8 -- oth -- er reaps4. __ the8 har4 -- vest.4. }

<<
  \new Staff = "up" { \voice }
  \addlyrics { \words }
  \new Lyrics \with { associatedVoice = "up"
		  \override LyricText.font-shape = #'italic }
  { \trans }
>>
%%


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


Re: Melisma with manual syllable durations

2017-02-20 Thread David Sumbler
On Sun, 2017-02-19 at 14:49 +, David Sumbler wrote:
> In 2 of the set of 6 songs I have (rather slowly) been setting, I
> want
> 2 sets of words: the original, and an English version.  In each of
> the
> other 4 songs there is just one set of words.
> 
> After much experimentation and a lot of failures, I found a way of
> doing what I wanted, which is to use manual durations.  This may very
> well not be the best nor the simplest way of doing it, but it is the
> only way I found that works.
> 
> The only trouble is, I cannot work out how to produce a melisma mark
> when using manual durations.  The following snippet illustrates the
> problem:
> 
> %%
> \version "2.19.48"
> 
> \paper { ragged-right = ##f }
> 
> voice = { \time 3/4 \partial 8
>     e'8 | e' d' d'4( ~ d'16 c') b8 | c'4 c'4. r8 \bar "|."
>   }
> 
> words = \lyricmode { Ac er -- aill yn __ ei fe -- di. }
> 
> trans = \lyricmode { An8 -- oth -- er reaps4. __ the8 har4 -- vest.4.
> }
> 
> <<
>   \new Staff { \voice }
>   \addlyrics { \words }
>   \new Lyrics { \override LyricText.font-shape = #'italic
>   \trans }
> > 
> > > 
> > > 
> %%
> 
> The melisma appears as required in the upper set of words, but not in
> the lower.  I have tried various ways to get what I want, but so far
> without any success.
> 
> Can it be done?

Thank you for the responses to my question.

Unfortunately, I now realise that the question was not clearly
expressed.  It was not intended to be "is there a way to get melisma in
upper and lower voices", but "is there a way to get melisma marks when
using manual syllable durations?"

As I said in my original post, I had tried various other ways of
setting the second set of words, including the obvious one of creating
a \new Voice at the relevant point of the vocal staff and using
\lyricsto.  Unfortunately there was a problem with this, which was that
the words were set one note late, try as I might to get around the
problem.  So instead of spending possibly hours trying to get to the
root of this, I decided to try manual durations, which appeared to work
perfectly - until I ran into this melisma problem in the second of the
relevant songs.  (There is no melisma in the first of the 2 songs.)

In view of the fact that manual durations are the first to be shown in
the Notation Reference, it seems surprising if such a standard part of
musical notation is not supported.

So - can anyone tell me if melisma markings be produced when using
manual durations with lyrics?  And if so, how?

David

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


Re: Frescobaldi 3.0

2017-02-20 Thread Federico Bruni
Il giorno lun 20 feb 2017 alle 17:00, bmgxc9  ha 
scritto:
Any linux users out there? Is Frescobaldi 3.0 pretty bug free? I do 
not want to make the hop until I know for sure, and do not 
necessarily want to run it in VM if I do not have to...


I use Fedora (currently version 25).
I'm using Frescobaldi 3 since master switched to it and it always 
worked fine for me.
Sometimes I had to recompile python-poppler-qt5. Here you can find some 
information in case you cannot compile it:

https://github.com/wbsoft/python-poppler-qt5/issues/8

As soon as the main distros will distribute python-poppler-qt5, things 
should be easier.

Fedora maintainer, here in Cc, is working on it:
https://bugzilla.redhat.com/show_bug.cgi?id=1370721#c22

Jon, any news about this package?

Thanks in advance
Federico




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


Re: LilyBin embedded [WAS: New LilyPond website]

2017-02-20 Thread Phil Holmes
Lilypond.org gets around 700 sessions per day, according to Google analytics.

--
Phil Holmes


  - Original Message - 
  From: Trevor 
  To: Federico Bruni ; David Kastrup 
  Cc: Timothy Gu ; LilyPond-User list 
  Sent: Monday, February 20, 2017 3:58 PM
  Subject: Re: LilyBin embedded [WAS: New LilyPond website]


  I'm primarily responsible for LilyBin. A year or so ago, Timothy Gu (copied) 
and I got LilyPond running in AWS Lambda, which should be able to handle plenty 
of traffic. I get 266,667 seconds of free computation time per month from 
Amazon. We used 38,094 seconds in January for 18,398 requests, meaning we 
should be able to handle—very roughly estimating—100,000 more requests per 
month. How many visitors does lilypond.org get?


  The LilyBin UI isn't made to be embeddable, but could be made so. I'd 
probably recommend just wiring up CodeMirror and PDF.js yourself rather than 
trying to show LilyBin in an iframe.


  I'll be happy to work with you if you want a LilyBin-powered demo on the home 
page!


  On Mon, Feb 13, 2017 at 4:52 PM Federico Bruni  wrote:



Il giorno lun 13 feb 2017 alle 8:59, David Kastrup  ha
scritto:
> John Roper  writes:
>
>>  For this to work can someone tell me if it is possible to embed
>>  lilybin? If not I am not going to bother to try.
>
> Maybe crosscheck with the lilybin site owner?  I seem to vaguely
> remember that we don't link to it from the current LilyPond page
> because
> the site owner was worried about his traffic/hosting limits.
>
> Embedding lilybin would seem like even more of a traffic generator.
> Make no mistake: offering that facility would be nice, I am just not
> sure that the current hoster is prepared to deal with it.
>
>

I think that the problem was solved when Scott Miller offered a new
server for LilyBin:
https://plus.google.com/+ScottMiller1/posts/e4bAEUjvw36

I hope that Scott read this thread and can confirm (can't find his
personal email right now).




___
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
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Frescobaldi 3.0

2017-02-20 Thread bmgxc9

Hey all,


Any linux users out there? Is Frescobaldi 3.0 pretty bug free? I do 
not want to make the hop until I know for sure, and do not necessarily 
want to run it in VM if I do not have to...



Ty.


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


Re: LilyBin embedded [WAS: New LilyPond website]

2017-02-20 Thread Trevor
I'm primarily responsible for LilyBin. A year or so ago, Timothy Gu
(copied) and I got LilyPond running in AWS Lambda, which should be able to
handle plenty of traffic. I get 266,667 seconds of free computation time
per month from Amazon. We used 38,094 seconds in January for 18,398
requests, meaning we should be able to handle—very roughly
estimating—100,000 more requests per month. How many visitors does
lilypond.org get?

The LilyBin UI isn't made to be embeddable, but could be made so. I'd
probably recommend just wiring up CodeMirror  and
PDF.js  yourself rather than trying to
show LilyBin in an iframe.

I'll be happy to work with you if you want a LilyBin-powered demo on the
home page!

On Mon, Feb 13, 2017 at 4:52 PM Federico Bruni  wrote:

>
>
> Il giorno lun 13 feb 2017 alle 8:59, David Kastrup  ha
> scritto:
> > John Roper  writes:
> >
> >>  For this to work can someone tell me if it is possible to embed
> >>  lilybin? If not I am not going to bother to try.
> >
> > Maybe crosscheck with the lilybin site owner?  I seem to vaguely
> > remember that we don't link to it from the current LilyPond page
> > because
> > the site owner was worried about his traffic/hosting limits.
> >
> > Embedding lilybin would seem like even more of a traffic generator.
> > Make no mistake: offering that facility would be nice, I am just not
> > sure that the current hoster is prepared to deal with it.
> >
> >
>
> I think that the problem was solved when Scott Miller offered a new
> server for LilyBin:
> https://plus.google.com/+ScottMiller1/posts/e4bAEUjvw36
>
> I hope that Scott read this thread and can confirm (can't find his
> personal email right now).
>
>
>
>
> ___
> 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


Apply a music-function script to all elements of a list

2017-02-20 Thread zaord
Hello,

I coded a script that adds markup. This function \ diag allows me to display
a customized diagram (here left hand "button board" of an accordion) and I
would like to apply it to all the elements of a chordmode {}.
The script below works very well but only for a chordmode with 1 element. If
the Chordmode have two elements, then the diagram is writing over himself
but don't follow the score !

In another hand, lilypond does not recreate new diagrams and the diagrams
are superpozed ...

My code  bellow is inspired by  : http://lsr.di.unimi.it/LSR/Item?id=1042  





%-- 

% ici on défini les points qu'on fait sur le piano 
#(define (make-dot-list l1) 
   (if (null? l1) 
   empty-stencil 
   (ly:stencil-add 
  (make-dot (ly:pitch-semitones (car l1))) 
  (make-dot-list (cdr l1) 


% ici on défini i on fait des ronds noirs ou blancs 
#(define (make-dot key) 
(let ((test (cons (key-to-pos key) ( key-to-pos key) )))   
 (ly:stencil-in-color(ly:stencil-translate (make-circle-stencil  0.25
0.1 #f) (  key-to-pos key  )) (car(  key-to-color key ) )(car(  key-to-color
key ) )(car(  key-to-color key ) ) ) ))  % pour les ronds noirs 
  

% ici on défini les couleurs R V B associés à chaque notes 
#(define (key-to-color key ) 
  (let ((keycolor (caddr(assq key Color-KEY-LIST 
   (if (not keycolor) 
(ly:error (_ "Color diagram error - unkown note '~a'") key) 
( caddr (assq key Color-KEY-LIST)  



#(define KEY-POS-LIST'(   
   (-8   .  '( 0  . 0)) 
   (-7   .  '( 0  . 1)) 
   (-6   .  '( 0  . 2)) 
   (-5   .  '( 0  . 3)) 
   (-4   .  '( 1  . 0)) 
   (-3   .  '( 1  . 1)) 
   (-2   .  '( 1  . 2)) 
   (-1   .  '( 1  . 3)) 
   (0   .  '( 0  . 0)) 
   (1   .  '( 0  . 1)) 
   (2   .  '( 0  . 2)) 
   (3   .  '( 0  . 3)) 
   (4   .  '( 1  . 0)) 
   (5   .  '( 1  . 1)) 
   (6   .  '( 1  . 2)) 
   (7   .  '( 1  . 3)) 
   (8   .  '( 0.71  . 1)) 
   (9   .  '( 0.71  . 1)) 
   (10  .  '( 0.71  . 1)) 
   (11  .  '( 0.71  . 1)) 
   (12  .  '( 0.71  . 1)) 
   (13  .  '( 0.71  . 1)) 
   (14  .  '( 0.71  . 1)) 
   (15  .  '( 0.71  . 1)) 
   (16  .  '( 0.71  . 1)) 
   (17  .  '( 0.71  . 1)) 
   (18  .  '( 0.71  . 1)) 
   (19  .  '( 0.71  . 1)) 
   (20  .  '( 0.71  . 1)) 
   (21  .  '( 0.71  . 1)) 
   (22  .  '( 0.71  . 1)) 
   (23  .  '( 0.71  . 1)) 
   )) 


#(define Color-KEY-LIST'(   
   (-11 .  '( 0.71 11)) 
   (-10 .  '( 0.71 11)) 
   (-9  .  '( 0.71 11)) 
   (-8  .  '( 0.71 11)) 
   (-7  .  '( 0.71 11)) 
   (-6  .  '( 0.71   0.2   1)) 
   (-5  .  '( 0.71   0.2   1)) 
   (-4  .  '( 0.71   0.2   1)) 
   (-3  .  '( 0.71   0.2   1)) 
   (-2  .  '( 0.71   0.2   1)) 
   (-1  .  '( 0.71   0.2   1)) 
   (0   .  '( 0.71 11)) 
   (1   .  '( 0.71 11)) 
   (2   .  '( 0.71 11)) 
   (3   .  '( 0.71 11)) 
   (4   .  '( 0.71 11)) 
   (5   .  '( 0.71   0.2   1)) 
   (6   .  '( 0.71   0.2   1)) 
   (7   .  '( 0.71   0.2   1)) 
   (8   .  '( 0.71   0.2   1)) 
   (9   .  '( 0.71   0.2   1)) 
   (10  .  '( 0.71   0.2   1)) 
   (11  .  '( 0.71   0.2   1)) 
   (12  .  '( 0.71   0.2   1)) 
   (13  .  '( 0.71   0.2   1)) 
   (14  .  '( 0.71   0.2   1)) 
   (15  .  '( 0.71   0.2   1)) 
   (16  .  '( 0.71   0.2   1)) 
   (17  .  '( 0.71   0.2   1)) 
   (18  .  '( 0.71   0.2   1)) 
   (19  .  '( 0.71   0.2   1)) 
   (20  .  '( 0.71   0.2   1)) 
   (21  .  '( 0.71   0.2   1)) 
   (22  .  '( 0.71   0.2   1)) 
   (23  .  '( 0.71   0.2   1)) 
   )) 


% ici on défini les positions des points du clavier en y 
#(define (key-to-pos key ) 
  (let ((keypos (assq key KEY-POS-LIST))) 
   (if (not keypos) 
(ly:error (_ "keyboard diagram error - unkown note '~a'") key) 
(caddr (assq key KEY-POS-LIST)  



#(define-markup-command (complete layout props the-chord) 
  (ly:music?) 
  (ly:stencil-scale 
   (ly:stencil-add   
(ly:stencil-in-color(ly:stencil-translate (make-circle-stencil 0.4 0 #f)
(cons 0 0)) 0 0 0 ) 
  (ly:stencil-in-color(ly:stencil-translate (make-circle-stencil 0.4 0
#f) (cons 0 1)) 0 0 0 ) 
  (ly:stencil-in-color(ly:stencil-translate (make-circle-stencil 0.4 0
#f) (cons 0 2)) 0 0 0 )   
  (ly:stencil-in-color(ly:stencil-translate (make-circle-stencil 0.4 0
#f) (cons 0 3)) 0 0 0 ) 
  (ly:stencil-in-color(ly:stencil-translate (make-circle-stencil 0.4 0
#f) (cons 1 0)) 0 0 0 ) 
  (ly:stencil-in-color(ly:stencil-translate (make-circle-stencil 0.4 0
#f) (cons 1 1)) 0 0 0 ) 
  (ly:stencil-in-color(ly:stencil-translate (make-circle-stencil 0.4 0
#f) (cons 1 2)) 0 0 0 )   
  (ly:stencil-in-color(ly:stencil-translate (make-circle-stencil 0.4 0
#f) (cons 1 3)) 0 0 0 )   
(make-dot-list 
  (map 
(lambda (m) (ly:music-property m 'pitch)) 
(extract-named-music the-chord 'NoteEvent 
1 1)) 

diag= 
#(define-music-function (parser location the-chord) 
  (ly:music?) 
  #{ <>^\markup \complete 

Re: ANN: Frescobaldi 2.20.0, Frescobaldi 3.0.0, python-ly 0.9.5

2017-02-20 Thread SoundsFromSound
Larry Kent-2 wrote
> Is 2.20 the latest stable version we should all be using now?

Yes, I believe that 2.20 is considered the most recent "stable" version.



-
composer | sound designer | asmr artist 
LilyPond Tutorials (for beginners) --> http://bit.ly/bcl-lilypond
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/ANN-Frescobaldi-2-20-0-Frescobaldi-3-0-0-python-ly-0-9-5-tp200225p200310.html
Sent from the User mailing list archive at Nabble.com.

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


Solved ; multiple scores and scores plus text

2017-02-20 Thread Don Gingrich
I've had two related problems that have bugged me for a while

I frequently want to create scores with multiple tunes as a dance
set

and 

on the more recent occasion I wanted to have a mix of text and
scores so that I could present the score of a song with chords 
and lyrics and talk about the song's origins and historical context.

The long-standing problem of multiple tunes was solved by
multiple note and chord blocks each with a unique name,
markup blocks and score blocks:

as in:

\version "2.18.2"

\header {
  title = "A Set Name"
  subtitle = "  " % for space before first tune title
  tagline = "engraved 19 Feb 2017 -- DEG"
}


#(set-global-staff-size 20.0762645669)
\paper {
  paper-width = 21.0\cm
  paper-height = 29.7\cm
  top-margin = 1.0\cm
  bottom-margin = 1.5\cm
  left-margin = 1.0\cm
  right-margin = 1.0\cm
  indent = 0.0\mm
}

PartOne = \relative c' {
  \clef "treble" \key g \major \time 2/4
  c4
}
PartOneChords =  \chordmode {
}

PartTwo =  \relative c' {
  \clef "treble" \key g \major \time 2/4
  c4
}

PartTwoChords =  \chordmode {
  
}

PartThree =  \relative c' {
  \clef "treble" \key g \major \time 2/4
  c4
}


PartThreeChords =  \chordmode {
 
}

\markup{
  \fill-line { 
 \line { " " }
\center-column { \huge \bold "Tune One Title"} % Title
\line { \box {"Play AABB" }} % instructions
  }
  
}
% The score definition
\score {
  <<
\context ChordNames = "Chords" \PartOneChords
\new Staff <<
  \context Staff <<
\context Voice = "Part" { \PartOne }
  >>
>>
  >>
  \layout {}
  \midi {}
}

\markup{
  \fill-line { 
\line { " " }
\center-column { \huge \bold "Tune Two Title"} % Title
\line { \box { "Play ABAB" }} % instructions
  }
}
% The score definition
\score { 
  <<
\context ChordNames = "Chords" \PartTwoChords
\new Staff <<
  \context Staff <<
\context Voice = "Tune" { \PartTwo }
  >>
>>
  >>
  \layout {}
  \midi {}
}

\markup{
  \fill-line { 
\line { " " }
\center-column { \huge \bold "Tune Three Title"}  % Title
  \line { \box { "Play AAABB" }} % instructions
  }
}
% The score definition
\score { 
  <<
\context ChordNames = "Chords" \PartThreeChords
\new Staff <<
  \context Staff <<
\context Voice = "PartThree" { \PartThree }
  >>
>>
  >>
  \layout {}
  \midi {}
}

The inclusion of scores in LaTeX was simple:

Header stuff:
\documentclass[titlepage,12pt,a4paper]{article}
\setlength{\oddsidemargin}{-0.25in}
\setlength{\textwidth}{6.25in}
\setlength{\topmargin}{-0.75 in}
\setlength{\textheight}{9.25in}

\usepackage{fancyhdr}


% following block allows for page number to be visible
% and easily modified
\fancypagestyle{plain}{%
\fancyhf{} % clear all header and footer fields 
\fancyfoot[RE,LO]{\Large\thepage} % except the center
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\textheight}{740pt}
\renewcommand{\footrulewidth}{2pt}}
\renewcommand{\abstractname}{}% clear the title
% \renewcommand{\absnamepos}{empty} % originally center
\pagestyle{plain}

Some of this was to have an un-numbered title page, but the rest
moved the page number down to give more room for the score

and then to include the score:

\includepdf[pages=-, scale=0.90,  pagecommand={}]{broken-down-squatter.pdf}

Your mileage may vary, but I found that using the scaling meant that
the page number did not clash with the bottom of the score.

Hope this is useful to someone out there.

Cheers,

-Don
-- 
Don Gingrich

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


Chord diagrams

2017-02-20 Thread Don Gingrich
A simple problem, I hope

I have a local copy of predefined-guitar-fretboards.ly

I used a C chord with G bass and noticed
that I got a three string chord

open G 1st fret B and open E 

This * is* a C with the bottom note a G

But every guitar player I know would play that as

G on the low E string
C on the A string
E on the D string
G string open
C on the B string 
and Open High E 

What do I need to hack in the predefined-guitar-fretboards.ly
to get the chord diagram that I want?

I tried the following without success

\storePredefinedDiagram #default-fret-table \chordmode {c:/g}
#guitar-tuning
#"3-4;3-3;2-2;o;1-1;o;"

But it didn't break everything else, so I may be close



Cheers,

-Don
-- 
Don Gingrich


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


Re: extenders over bar lines in 2.19.55 [was: Automatic Lyric Extenders]

2017-02-20 Thread Gerdau, Michael
> `extendersOverRest` is a context property (not a grob property). In a 
> case, where I faced this bug, I used successfully:
> 
> %%%
> \layout {
>\context {
>  \Lyrics
>  extendersOverRests = ##t
>}
> }
> %%%

Thank you, that's what I was looking for :)

Kind regards,
Michael
--
Michael Gerdau   email: m...@qata.de
GPG-keys available on request or at public keyserver

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