Re: trill spanner

2015-05-04 Thread Pierre Perol-Schneider
Hi Craig,

Try:

\version "2.18.2"

\relative {
  c'
  -\tweak bound-details.left.text \markup\null
  \startTrillSpan
  d e f
  \stopTrillSpan
}

Cheers,
Pierre

2015-05-05 7:19 GMT+02:00 Craig Dabelstein :

> Dear Lilyponders,
>
> Could anyone tell me how to produce a trill spanner without the "tr"
> symbol at the beginning?
>
> I'm trying to a produce a wavy trill line above a bar of music, but
> without the "tr" symbol at the start.
>
> Craig
>
>
>   *Craig Dabelstein*
>  e:craig.dabelst...@gmail.com
>  
> 
>
> ___
> 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


trill spanner

2015-05-04 Thread Craig Dabelstein
Dear Lilyponders,

Could anyone tell me how to produce a trill spanner without the "tr" symbol
at the beginning?

I'm trying to a produce a wavy trill line above a bar of music, but without
the "tr" symbol at the start.

Craig


  *Craig Dabelstein*
 e:craig.dabelst...@gmail.com
 

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


Re: Can't compile after upgrade to 2.19.19

2015-05-04 Thread Keith OHara
Stan Mulder  earthlink.net> writes:

> I'm getting errors that I cannot fix after upgrading to 2.19.19. These
> errors seem to show that lily is not recognizing my english pitch names like
> "eflat" even though I've included english.ly near the top of the file. 
> 
At version 2.19.16, the name changed from 'eflat' to 'e-flat'
The convert-ly program will change existing files for you.
I first saw it suggested here


If it was a bad idea to change, say why at bug-lilyp...@gnu.org.
I'm not sure myself: the '-' is awkard to type, but easier to read, 
and we have short forms like 'ef' for faster typing.



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


Re: Can't compile after upgrade to 2.19.19

2015-05-04 Thread Paul Scott
On Mon, May 04, 2015 at 09:56:30PM -0700, Paul Scott wrote:
> On Tue, May 05, 2015 at 03:59:45AM +, Stan Mulder wrote:
> > I'm getting errors that I cannot fix after upgrading to 2.19.19. These
> > errors seem to show that lily is not recognizing my english pitch names like
> > "eflat" even though I've included english.ly near the top of the file. 
> > 
> > I've also added \language "english" to no avail.
> > 
> > Help.
> > 
> > 
> > GNU LilyPond 2.19.19
> > Processing `When It's Sleepy Time Down South - Clar-Tbn1-Tbn2.ly'
> > Parsing...
> > When It's Sleepy Time Down South - Clar-Tbn1-Tbn2.ly:84:17: error: wrong
> > type for argument 1.  Expecting pitch, found "eflat"
> > KeyOne = { \key 
> > eflat \major }
> 
> Shouldn't that be ef, etc.

Oops!  Excuse that noise!  I see the manual should allow that.

Still I have had no trouble with 2.19.19 so far.

> Paul Scott
> 
> 
> > When It's Sleepy Time Down South - Clar-Tbn1-Tbn2.ly:193:31: error:
> > unrecognized string, not in text script or \lyricmode
> >   r8\f\fermata g \tuplet 3/2 {
> >   aflat8 c eflat} g f~ f4
> > When It's Sleepy Time Down South - Clar-Tbn1-Tbn2.ly:193:40: error:
> > unrecognized string, not in text script or \lyricmode
> >   r8\f\fermata g \tuplet 3/2 {aflat8 c 
> >eflat} g f~ f4
> > When It's Sleepy Time Down South - Clar-Tbn1-Tbn2.ly:195:53: error:
> > unrecognized string, not in text script or \lyricmode
> >   \tuplet 3/2 { r8\mf\fermata g8  f } \tuplet 3/2 { 
> > eflat b aflat } \tuplet
> > 3/2 { f eflat16 f eflat8 } b4
> > When It's Sleepy Time Down South - Clar-Tbn1-Tbn2.ly:195:61: error:
> > unrecognized string, not in text script or \lyricmode
> >   \tuplet 3/2 { r8\mf\fermata g8  f } \tuplet 3/2 { eflat b 
> > aflat } \tuplet
> > 3/2 { f eflat16 f eflat8 } b4
> > When It's Sleepy Time Down South - Clar-Tbn1-Tbn2.ly:195:85: error:
> > unrecognized string, not in text script or \lyricmode
> >   \tuplet 3/2 { r8\mf\fermata g8  f } \tuplet 3/2 { eflat b aflat } \tuplet
> > 3/2 { f 
> >
> > eflat16 f eflat8 } b4
> > When It's Sleepy Time Down South - Clar-Tbn1-Tbn2.ly:195:95: error:
> > unrecognized string, not in text script or \lyricmode
> >   \tuplet 3/2 { r8\mf\fermata g8  f } \tuplet 3/2 { eflat b aflat } \tuplet
> > 3/2 { f eflat16 f 
> >
> >   eflat8 } b4
> > 
> > 
> > 
> > ___
> > 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


Re: Can't compile after upgrade to 2.19.19

2015-05-04 Thread Paul Scott
On Tue, May 05, 2015 at 03:59:45AM +, Stan Mulder wrote:
> I'm getting errors that I cannot fix after upgrading to 2.19.19. These
> errors seem to show that lily is not recognizing my english pitch names like
> "eflat" even though I've included english.ly near the top of the file. 
> 
> I've also added \language "english" to no avail.
> 
> Help.
> 
> 
> GNU LilyPond 2.19.19
> Processing `When It's Sleepy Time Down South - Clar-Tbn1-Tbn2.ly'
> Parsing...
> When It's Sleepy Time Down South - Clar-Tbn1-Tbn2.ly:84:17: error: wrong
> type for argument 1.  Expecting pitch, found "eflat"
> KeyOne = { \key 
> eflat \major }

Shouldn't that be ef, etc.

Paul Scott


> When It's Sleepy Time Down South - Clar-Tbn1-Tbn2.ly:193:31: error:
> unrecognized string, not in text script or \lyricmode
>   r8\f\fermata g \tuplet 3/2 {
>   aflat8 c eflat} g f~ f4
> When It's Sleepy Time Down South - Clar-Tbn1-Tbn2.ly:193:40: error:
> unrecognized string, not in text script or \lyricmode
>   r8\f\fermata g \tuplet 3/2 {aflat8 c 
>eflat} g f~ f4
> When It's Sleepy Time Down South - Clar-Tbn1-Tbn2.ly:195:53: error:
> unrecognized string, not in text script or \lyricmode
>   \tuplet 3/2 { r8\mf\fermata g8  f } \tuplet 3/2 { 
> eflat b aflat } \tuplet
> 3/2 { f eflat16 f eflat8 } b4
> When It's Sleepy Time Down South - Clar-Tbn1-Tbn2.ly:195:61: error:
> unrecognized string, not in text script or \lyricmode
>   \tuplet 3/2 { r8\mf\fermata g8  f } \tuplet 3/2 { eflat b 
> aflat } \tuplet
> 3/2 { f eflat16 f eflat8 } b4
> When It's Sleepy Time Down South - Clar-Tbn1-Tbn2.ly:195:85: error:
> unrecognized string, not in text script or \lyricmode
>   \tuplet 3/2 { r8\mf\fermata g8  f } \tuplet 3/2 { eflat b aflat } \tuplet
> 3/2 { f 
>
> eflat16 f eflat8 } b4
> When It's Sleepy Time Down South - Clar-Tbn1-Tbn2.ly:195:95: error:
> unrecognized string, not in text script or \lyricmode
>   \tuplet 3/2 { r8\mf\fermata g8  f } \tuplet 3/2 { eflat b aflat } \tuplet
> 3/2 { f eflat16 f 
>
>   eflat8 } b4
> 
> 
> 
> ___
> 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: Can't compile after upgrade to 2.19.19

2015-05-04 Thread Stan Mulder
I might add I'm using the latest version of Linux Mint.


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


Can't compile after upgrade to 2.19.19

2015-05-04 Thread Stan Mulder
I'm getting errors that I cannot fix after upgrading to 2.19.19. These
errors seem to show that lily is not recognizing my english pitch names like
"eflat" even though I've included english.ly near the top of the file. 

I've also added \language "english" to no avail.

Help.


GNU LilyPond 2.19.19
Processing `When It's Sleepy Time Down South - Clar-Tbn1-Tbn2.ly'
Parsing...
When It's Sleepy Time Down South - Clar-Tbn1-Tbn2.ly:84:17: error: wrong
type for argument 1.  Expecting pitch, found "eflat"
KeyOne = { \key 
eflat \major }
When It's Sleepy Time Down South - Clar-Tbn1-Tbn2.ly:193:31: error:
unrecognized string, not in text script or \lyricmode
  r8\f\fermata g \tuplet 3/2 {
  aflat8 c eflat} g f~ f4
When It's Sleepy Time Down South - Clar-Tbn1-Tbn2.ly:193:40: error:
unrecognized string, not in text script or \lyricmode
  r8\f\fermata g \tuplet 3/2 {aflat8 c 
   eflat} g f~ f4
When It's Sleepy Time Down South - Clar-Tbn1-Tbn2.ly:195:53: error:
unrecognized string, not in text script or \lyricmode
  \tuplet 3/2 { r8\mf\fermata g8  f } \tuplet 3/2 { 
eflat b aflat } \tuplet
3/2 { f eflat16 f eflat8 } b4
When It's Sleepy Time Down South - Clar-Tbn1-Tbn2.ly:195:61: error:
unrecognized string, not in text script or \lyricmode
  \tuplet 3/2 { r8\mf\fermata g8  f } \tuplet 3/2 { eflat b 
aflat } \tuplet
3/2 { f eflat16 f eflat8 } b4
When It's Sleepy Time Down South - Clar-Tbn1-Tbn2.ly:195:85: error:
unrecognized string, not in text script or \lyricmode
  \tuplet 3/2 { r8\mf\fermata g8  f } \tuplet 3/2 { eflat b aflat } \tuplet
3/2 { f 
   
eflat16 f eflat8 } b4
When It's Sleepy Time Down South - Clar-Tbn1-Tbn2.ly:195:95: error:
unrecognized string, not in text script or \lyricmode
  \tuplet 3/2 { r8\mf\fermata g8  f } \tuplet 3/2 { eflat b aflat } \tuplet
3/2 { f eflat16 f 
   
  eflat8 } b4



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


Re: Color tweaks (edition engraver)

2015-05-04 Thread David Nalesnik
Hi Kieren,

On Sat, May 2, 2015 at 6:29 PM, Kieren MacMillan <
kieren_macmil...@sympatico.ca> wrote:

> Hi David,
>
> > > Out of curiosity, do you get results with color-tweaks2.ly (attached
> somewhere above)?
> > Same thing: the EE-added tweak gets executed, but doesn’t appear in the
> log output.
> > So it doesn't get colored?
>
> Sorry… let me be more clear. I \include-d the edition-engraver, and
> compiled twice: once with an \editionMod to move the [initial] Clef, and
> once without. The first time, the Clef moved (as expected) and was coloured
> (as hoped); the second time, the Clef was neither moved nor coloured (both
> as expected).


> HOWEVER, the console output was identical in both cases: the tweak was not
> recorded in the output (as I thought it should have been?).
>

OK, then the modifying actual grobs approach is proving to be more useful
on several counts.

The attached file contains some improvements over color-tweaks2.ly.  The
main difference is that it uses a simple Scheme engraver which must be
\consists-ed.

\voiceTwo and the like will result in colored objects (stems for example),
but I don't think there's any help for that.  Call it a feature :)

Best,
David
\version "2.19.17"

#(define (remove-first symbol alist)
   "Remove the first key-value pair of association list @var{alist}
whose key matches @var{symbol}."
   (let loop ((alist alist) (result '()))
 (cond
  ((null? alist) result)
  ((eq? (caar alist) symbol)
   (append result (cdr alist)))
  (else (loop (cdr alist)
  (append result (list (car alist

#(define (grob::has-default-prop grob prop)
   "Check all-grob-descriptions to see if symbol @var{grob} has
a default setting for symbol @var{prop}.  Either return the
setting or @code{#f}."
   (let ((description (assoc-get grob all-grob-descriptions)))
 (if description
 (assoc-get 'stencil description

#(define (mark-tweak grob)
   (let* ((default (assoc-get (grob::name grob) all-grob-descriptions)) 
  (props (ly:grob-basic-properties grob))
  ;; Our procedure has been added to the head of grob's basic
  ;; properties.  Let's not count it as a tweak!
  (props
   (remove
(lambda (p)
  (and (procedure? (cdr p))
   (eq? (procedure-name (cdr p)) 'mark-tweak)))
props))
  ;; We're using after-line-breaking to set color of stencil, but
  ;; let's preserve its last setting
  (after-line-return (assoc-get 'after-line-breaking props))
  ;; Clef.glyph doesn't appear in all-grob-descriptions, but it
  ;; is set at some point automatically.  Don't mark it unless
  ;; it genuinely is a user override.  There may be other
  ;; such grobs.
  (props
   (if (eq? (grob::name grob) 'Clef)
   (reverse (remove-first 'glyph (reverse props)))
   props))
  (diff (lset-difference eq? props default)))
 ;; Tweaks will not appear in the "basic properties" alist of our grob, but
 ;; we can find them through the music event which led to the grob.  This
 ;; is available through the stream-event which caused our grob.
 (if (null? diff)
 (let* ((cause (event-cause grob))
(tweaks (and cause
 (ly:music-property
  (ly:event-property cause 'music-cause)
  'tweaks
   (if (pair? tweaks)
   (set! (ly:grob-property grob 'color) red)))
 (set! (ly:grob-property grob 'color) green))
 
 ;; Return any default setting of after-line-breaking.
 after-line-return))

colorTweaksEngraver =
#(lambda (context)
   (make-engraver 
(acknowledgers
 ((grob-interface engraver grob source-engraver)
  (if (grob::has-default-prop grob 'stencil)
  (set! (ly:grob-property grob 'after-line-breaking)
(mark-tweak grob)))



%%

{ 
  \voiceOne
  \once \override Staff.Clef.extra-offset = #'(0 . 2)
  c^"hi"_1 \clef "bass_8" c,
  \oneVoice
  \key d \major
  c,
}

{
  \override NoteHead.X-extent = #'(-1 . 1)
  \override NoteHead.font-size = 3
  \override NoteHead.stencil = #ly:note-head::print
  c1
  \revert NoteHead.X-extent
  c1
  \revert NoteHead.font-size
  c1
  \revert NoteHead.stencil
  c1
}


{
  %\voiceTwo
  \tweak font-size 3
  c'1
  \tweak NoteHead.font-size 3
  \tweak Stem.thickness 5
  c'2
  
  <\tweak NoteHead.font-size 3 c' e'>1
  \override NoteHead.font-size = 4
  c'1
  \temporary \override NoteHead.font-size = 12
  c'1
  \revert NoteHead.font-size
  \revert Score.BarLine.X-extent
  \revert Staff.Clef.after-line-breaking
  \clef alto
  c'1
}

\layout {
  \context {
\Score {
  \override BarLine.X-extent = #'(-2 . 2)
}
  }
  \context {
\Staff
\override Clef.after-line-breaking =
#(lambda (grob)
   (set! (ly:grob-property grob 

Re: What is the problem with "\relative"? (Was: Do we really offer the future?)

2015-05-04 Thread Keith OHara
Federico Bruni  gmail.com> writes:

> 2015-04-23 9:21 GMT+02:00 Martin Tarenskeen  zonnet.nl>:
> 
> I often use LilyPond to quickly enter a very simple tune or small 
pianosheet needing just a simple texteditor (Vim). I use \relative all the 
time. c g c e g is soo much faster and easier than c''' g'' c''' e''' g''' 
g'''.
> And personally I find lilypond code in \relative mode easier to read.
> I agree that for complex scores with much music in variables \relative mode 
can have annoying side-effects.
> 
> I agree: relative mode is much easier to enter.

What if we compare relative mode to absolute mode with repeated 's removed?

Is  
  \relative c''' { c g c e g }
easier than
  \transpose c c''' { c g, c e g}
?

I find it easier to remember that a note is below the middle octave in 
the range of an instrument, than to remember whether the previous note was
more than three scale-steps away.

We can easily define a shorter way to express the transposition by octaves
  \absolute c''' { c g, c e g }
and it is not too hard to change the 460 examples in the manual that have
an implicit \relative c' {} or relative c'' {} to copy/paste-able music.


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


Moving Copyright Notice

2015-05-04 Thread Adam Michael Wood
I would like the copyright notice to appear just below the last system of
music, flush left.
(See for example,  the copyright notices under hymns in almost every
hymnal.)

Is there a way to move the copyright notice this way?



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Moving-Copyright-Notice-tp176081.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


Re: Thumb in fret-diagram

2015-05-04 Thread Thomas Morley
2015-05-04 8:43 GMT+02:00 pls :
> This looks like a regression to me. See
>
> https://codereview.appspot.com/4176056/ (allow non numeric fingers (e.g. for
> thumb))
> http://lilypond.org/doc/v2.19/input/regression/dd/lily-caf6e8f6.ly (the “P”
> is not printed)
>
> hth
> patrick



Hi Patrick,

thanks for your findings.

This (for me formerly unknown feature) has gone with my patch for issue 2752
https://code.google.com/p/lilypond/issues/detail?id=2752

It was never documented and the regtest for _exactly_ this was _not_
triggered, as you can read there.

So the first time it came up
http://lilypond.1069038.n5.nabble.com/2-19-14-lost-ability-to-add-note-name-in-fret-board-td166644.html
I wrote:
"
I wouldn't call it a regression, because adding and printing strings
in dots was not documented, not really supported (as far as scaling is
concerned) and not covered by a regtest, as far as I can tell.

Therefore I did not pay attention to keep this functionality while
creating the patch for
Issue 2752: Parenthesize dots in fretboards
[...]
"

Consequences:
First, I'll update Issue 4120
https://code.google.com/p/lilypond/issues/detail?id=4120
label it regression.

Second, provide a patch as soon I'll find some time.


Though, the main question(s):
Why was the regtest not trigered?
Leading to:
Can we trust our regression-tests anymore?


Cheers,
  Harm

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


Re: Thumb in fret-diagram

2015-05-04 Thread Stephen MacNeil
thanks again
Stephen

On Mon, May 4, 2015 at 4:09 PM, Stephen MacNeil 
wrote:

> I do have a workaround if needed for 2.19.. I created it when i couldn't
> get it to work
> thanks again
>
> Stephen
>
> On Mon, May 4, 2015 at 4:06 PM, pls  wrote:
>
>> Yes, it stills works in v2.18.2 but it’s  broken in v2.19.something. It
>> definitely doesn’t work in 2.19.15 and 2.19.19. I didn’t check any earlier
>> 2.19 versions.
>>
>> On 04.05.2015, at 21:11, Stephen MacNeil 
>> wrote:
>>
>> That worked actually thanks very much!!
>> I forgot the quotes silly mistakes drive me crazy !
>>
>> Thanks
>> Stephen
>>
>> On Mon, May 4, 2015 at 2:43 AM, pls  wrote:
>>
>>> This looks like a regression to me. See
>>>
>>> https://codereview.appspot.com/4176056/ (allow non numeric fingers
>>> (e.g. for thumb))
>>> http://lilypond.org/doc/v2.19/input/regression/dd/lily-caf6e8f6.ly (the
>>> “P” is not printed)
>>>
>>> hth
>>> patrick
>>>
>>> On 03.05.2015, at 17:35, Stephen MacNeil 
>>> wrote:
>>>
>>> Hi Harm
>>> Thanks for the reply
>>>
>>> This is the code and version
>>>
>>> \version "2.18.2"
>>> \markup
>>> \fill-line {
>>> \concat {
>>> {
>>> \override #'(size . .7)\override #'(fret-diagram-details . ((finger-code
>>> . below-string)
>>> (dot-radius . 0.35)
>>> (number-type . roman-lower)
>>> (finger-code . below-string)
>>> (fret-count . 3)))
>>> \halign #-.72
>>> \raise #0 \pad-around #.2 {
>>> \center-column\text {
>>> \halign #-13 \fontsize #-2.5 {
>>> \concat { F \super { maj7 } }
>>> }
>>> \vspace #-.6
>>> \fret-diagram #"6-1;5-3-3;4-3-4;3-2-2;2-1-1;1-o;"
>>> }
>>> }
>>> }
>>> }
>>> }
>>>
>>> I would assume \fret-diagram #"6-1-T;5-3-3;4-3-4;3-2-2;2-1-1;1-o;"
>>> should work... however no go.
>>>
>>> Thanks
>>> Stephen
>>>
>>> On Sun, May 3, 2015 at 11:14 AM, Thomas Morley >> > wrote:
>>>
 2015-05-03 16:26 GMT+02:00 Stephen MacNeil :
 > I found a way to do it.
 >
 > http://mglessons.com/lilypond/Score2.pdf
 >
 > but as I said i think this was added 4 years ago so if anyone has a
 proper
 > (faster way) that would be great.
 >
 > Thanks
 > Stephen


 Hi,

 this may or may not be due to issue 4120
 https://code.google.com/p/lilypond/issues/detail?id=4120

 Without version and example-code - no idea


 -Harm

>>>
>>> ___
>>> 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: Thumb in fret-diagram

2015-05-04 Thread pls
Yes, it stills works in v2.18.2 but it’s  broken in v2.19.something. It 
definitely doesn’t work in 2.19.15 and 2.19.19. I didn’t check any earlier 2.19 
versions.
On 04.05.2015, at 21:11, Stephen MacNeil  wrote:

> That worked actually thanks very much!! 
> I forgot the quotes silly mistakes drive me crazy !
> 
> Thanks 
> Stephen
> 
> On Mon, May 4, 2015 at 2:43 AM, pls  wrote:
> This looks like a regression to me. See 
> 
> https://codereview.appspot.com/4176056/ (allow non numeric fingers (e.g. for 
> thumb))
> http://lilypond.org/doc/v2.19/input/regression/dd/lily-caf6e8f6.ly (the “P” 
> is not printed)
> 
> hth
> patrick
> 
> On 03.05.2015, at 17:35, Stephen MacNeil  wrote:
> 
>> Hi Harm
>> Thanks for the reply
>> 
>> This is the code and version
>> 
>> \version "2.18.2"
>> \markup
>> \fill-line {
>> \concat {
>> {
>> \override #'(size . .7)\override #'(fret-diagram-details . ((finger-code . 
>> below-string)
>> (dot-radius . 0.35)
>> (number-type . roman-lower)
>> (finger-code . below-string)
>> (fret-count . 3)))
>> \halign #-.72
>> \raise #0 \pad-around #.2 {
>> \center-column\text {
>> \halign #-13 \fontsize #-2.5 {
>> \concat { F \super { maj7 } }
>> }
>> \vspace #-.6
>> \fret-diagram #"6-1;5-3-3;4-3-4;3-2-2;2-1-1;1-o;"
>> }
>> }
>> }
>> }
>> }
>> 
>> I would assume \fret-diagram #"6-1-T;5-3-3;4-3-4;3-2-2;2-1-1;1-o;" should 
>> work... however no go.
>> 
>> Thanks 
>> Stephen
>> 
>> On Sun, May 3, 2015 at 11:14 AM, Thomas Morley  
>> wrote:
>> 2015-05-03 16:26 GMT+02:00 Stephen MacNeil :
>> > I found a way to do it.
>> >
>> > http://mglessons.com/lilypond/Score2.pdf
>> >
>> > but as I said i think this was added 4 years ago so if anyone has a proper
>> > (faster way) that would be great.
>> >
>> > Thanks
>> > Stephen
>> 
>> 
>> Hi,
>> 
>> this may or may not be due to issue 4120
>> https://code.google.com/p/lilypond/issues/detail?id=4120
>> 
>> Without version and example-code - no idea
>> 
>> 
>> -Harm
>> 
>> ___
>> 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: Thumb in fret-diagram

2015-05-04 Thread Stephen MacNeil
That worked actually thanks very much!!
I forgot the quotes silly mistakes drive me crazy !

Thanks
Stephen

On Mon, May 4, 2015 at 2:43 AM, pls  wrote:

> This looks like a regression to me. See
>
> https://codereview.appspot.com/4176056/ (allow non numeric fingers (e.g.
> for thumb))
> http://lilypond.org/doc/v2.19/input/regression/dd/lily-caf6e8f6.ly (the
> “P” is not printed)
>
> hth
> patrick
>
> On 03.05.2015, at 17:35, Stephen MacNeil  wrote:
>
> Hi Harm
> Thanks for the reply
>
> This is the code and version
>
> \version "2.18.2"
> \markup
> \fill-line {
> \concat {
> {
> \override #'(size . .7)\override #'(fret-diagram-details . ((finger-code .
> below-string)
> (dot-radius . 0.35)
> (number-type . roman-lower)
> (finger-code . below-string)
> (fret-count . 3)))
> \halign #-.72
> \raise #0 \pad-around #.2 {
> \center-column\text {
> \halign #-13 \fontsize #-2.5 {
> \concat { F \super { maj7 } }
> }
> \vspace #-.6
> \fret-diagram #"6-1;5-3-3;4-3-4;3-2-2;2-1-1;1-o;"
> }
> }
> }
> }
> }
>
> I would assume \fret-diagram #"6-1-T;5-3-3;4-3-4;3-2-2;2-1-1;1-o;" should
> work... however no go.
>
> Thanks
> Stephen
>
> On Sun, May 3, 2015 at 11:14 AM, Thomas Morley 
> wrote:
>
>> 2015-05-03 16:26 GMT+02:00 Stephen MacNeil :
>> > I found a way to do it.
>> >
>> > http://mglessons.com/lilypond/Score2.pdf
>> >
>> > but as I said i think this was added 4 years ago so if anyone has a
>> proper
>> > (faster way) that would be great.
>> >
>> > Thanks
>> > Stephen
>>
>>
>> Hi,
>>
>> this may or may not be due to issue 4120
>> https://code.google.com/p/lilypond/issues/detail?id=4120
>>
>> Without version and example-code - no idea
>>
>>
>> -Harm
>>
>
> ___
> 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: my favorite bug :-)

2015-05-04 Thread Johan Vromans
On Mon, 4 May 2015 01:35:13 -0700 (MST)
ArnoldTheresius  wrote:

> 2. the PS file, because it's used for another postprocessing: I generate a
> booklet layout PDF from it (this PDF uses the double sheet size, e.g. A3)

You can do this from the PDF as well.

-- Johan

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


Re: Upper and Lower slurs in \partCombine

2015-05-04 Thread David B. Stocker

Thanks. Both this and Phil's suggestion are what I need.

For what it's worth, the 2.18 Notation Manual Index doesn't reference 
doubleSlur directly either under "doubleSlur" or "Slurs," although when 
you look up "Slur, simultaneous phrasing," it's in that general area if 
you scroll up on the resulting page, which I hadn't noticed before.


Best regards,

David

On 05/04/2015 12:52 PM, Simon Albrecht wrote:

You might check out doubleSlurs in the docs.

HTH, Simon

Am 04.05.2015 um 17:49 schrieb David B. Stocker:

Hello,

The 2.18 manuals seem to indicate that simultaneous slurs are a 
no-no, but I thought I'd check here to see if anyone knows of a trick 
I haven't thought of.


In my example, I would like to have a slur below the staff starting 
and ending in the same place as the slur above the staff. 
PrhasingSlur doesn't produce the desired result. I've also tried 
making a slur of a different length - the 1st two notes only - and 
then using \shape to lengthen the slur and make the arc look more 
natural.


This method works, but it is cumbersome.

Is there an easy way to do this?

David

%example.ly

\version "2.18.2"

partOne = \relative c'' { a4( bes c2 ) }

partTwo = \relative c' { f4( g a2 ) }

\score {

\partcombine \partOne \partTwo

}






___
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: Upper and Lower slurs in \partCombine

2015-05-04 Thread Simon Albrecht

You might check out doubleSlurs in the docs.

HTH, Simon

Am 04.05.2015 um 17:49 schrieb David B. Stocker:

Hello,

The 2.18 manuals seem to indicate that simultaneous slurs are a no-no, 
but I thought I'd check here to see if anyone knows of a trick I 
haven't thought of.


In my example, I would like to have a slur below the staff starting 
and ending in the same place as the slur above the staff. PrhasingSlur 
doesn't produce the desired result. I've also tried making a slur of a 
different length - the 1st two notes only - and then using \shape to 
lengthen the slur and make the arc look more natural.


This method works, but it is cumbersome.

Is there an easy way to do this?

David

%example.ly

\version "2.18.2"

partOne = \relative c'' { a4( bes c2 ) }

partTwo = \relative c' { f4( g a2 ) }

\score {

\partcombine \partOne \partTwo

}






___
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: Upper and Lower slurs in \partCombine

2015-05-04 Thread Phil Holmes

partOne = \relative c'' { a4 ^( bes c2 ^) }
partTwo = \relative c' { f4 _( g a2 _) }

seems to work.

--
Phil Holmes


- Original Message - 
From: David B. Stocker

To: lilypond-user@gnu.org
Sent: Monday, May 04, 2015 4:49 PM
Subject: Upper and Lower slurs in \partCombine


Hello,


The 2.18 manuals seem to indicate that simultaneous slurs are a no-no, but I 
thought I'd check here to see if anyone knows of a trick I haven't thought 
of.


In my example, I would like to have a slur below the staff starting and 
ending in the same place as the slur above the staff. PrhasingSlur doesn't 
produce the desired result. I've also tried making a slur of a different 
length - the 1st two notes only - and then using \shape to lengthen the slur 
and make the arc look more natural.


This method works, but it is cumbersome.

Is there an easy way to do this?

David


%example.ly


\version "2.18.2"


partOne = \relative c'' { a4( bes c2 ) }


partTwo = \relative c' { f4( g a2 ) }


\score {
\partcombine \partOne \partTwo
}








___
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: Suggest a condensed old style or transitional font for lyrics?

2015-05-04 Thread tisimst
Janek,

On Sat, May 2, 2015 at 4:41 PM, Janek Warchoł [via Lilypond] <
ml-node+s1069038n175931...@n5.nabble.com> wrote:

> 2015-04-30 17:51 GMT+02:00 Abraham Lee <[hidden email]
> >:
> > I've got a handful of others (perfect for this purpose and just
> beautiful in
> > general) that I'd be willing to recreate from some nice scanned samples
> if
> > anyone was willing to sponsor the effort.
>
> How much sponsoring would you need?
>

This is a good question. For me, text fonts are MUCH harder to create than
music fonts. Most of the specimens I have have true small-caps and standard
ligatures (ff, fi, fl, ffi, ffl). I'll try to get some sample images that I
can post for community voting so I can prioritize my efforts.

For a single text font, I'd be willing to go with $100 per variant (roman,
italic, bold, bold-italic) where I've got specimens available, but just
know that this is very much a low-ball value for the design work, so
anything more than that is very much appreciated.. If several people could
each contribute around $25 (or at least pledge to do so upon completion),
that would be enough to get me going on the roman variant.

- Abraham




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Suggest-a-condensed-old-style-or-transitional-font-for-lyrics-tp175710p176047.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


Upper and Lower slurs in \partCombine

2015-05-04 Thread David B. Stocker

Hello,

The 2.18 manuals seem to indicate that simultaneous slurs are a no-no, 
but I thought I'd check here to see if anyone knows of a trick I haven't 
thought of.


In my example, I would like to have a slur below the staff starting and 
ending in the same place as the slur above the staff. PrhasingSlur 
doesn't produce the desired result. I've also tried making a slur of a 
different length - the 1st two notes only - and then using \shape to 
lengthen the slur and make the arc look more natural.


This method works, but it is cumbersome.

Is there an easy way to do this?

David

%example.ly

\version "2.18.2"

partOne = \relative c'' { a4( bes c2 ) }

partTwo = \relative c' { f4( g a2 ) }

\score {

\partcombine \partOne \partTwo

}




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


Re: converting an old finale file

2015-05-04 Thread Laura Conrad
> "Stefan" == Stefan Thomas  writes:

Stefan> I have 2 very old finale-filee of two of my pieces and I'm
Stefan> searching for someone, who could convert it to musicxml.  Is
Stefan> there someone around, who could do it for me?

Finale does give you a free trial.  I think all you need for another
free trial is a different email address.

So when I'm desperate for a finale conversion, I just get the free trial
and export the musicxml myself.  It turns out I can even do this on
Linux under wine.

-- 
Laura   (mailto:lcon...@laymusic.org)

(617) 661-8097  233 Broadway, Cambridge, MA 02139   
 

This song is Copyrighted in U.S., under Seal of Copyright #154085, for
a period of 28 years, and anybody caught singin' it without our
permission, will be mighty good friends of ourn, cause we don't give a
dern. Publish it. Write it. Sing it. Swing to it. Yodel it. We wrote
it, that's all we wanted to do.

Woody Guthrie

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


Re: Incipits

2015-05-04 Thread Phil Holmes
- Original Message - 
From: "Davide Liessi" 

To: "Phil Holmes" ; 
Sent: Monday, May 04, 2015 3:32 PM
Subject: Re: Incipits



Il 04/05/15 15.53, Phil Holmes ha scritto:

All of the incipit examples in the LSR have "lyrics" 'IV-' below the
initial note.  Does anyone know whay and what this is intended to 
signify?


See for example

http://lsr.di.unimi.it/LSR/Item?id=348


I think that "IV" in that example is the spelling of the first syllable of 
"Jubilate" as found in the source manuscript.


Best wishes.
Davide



Ah - that seems possible.  Can't see what benefit it brings, though.

--
Phil Holmes 



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


Re: Incipits

2015-05-04 Thread Davide Liessi

Il 04/05/15 15.53, Phil Holmes ha scritto:

All of the incipit examples in the LSR have "lyrics" 'IV-' below the
initial note.  Does anyone know whay and what this is intended to signify?

See for example

http://lsr.di.unimi.it/LSR/Item?id=348


I think that "IV" in that example is the spelling of the first syllable 
of "Jubilate" as found in the source manuscript.


Best wishes.
Davide

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


Re: my favorite bug :-)

2015-05-04 Thread Alexander Kobel

On 2015-05-04 15:40, Carl Sorensen wrote:

On 5/4/15 1:35 AM, "ArnoldTheresius"  wrote:


2. the PS file, because it's used for another postprocessing: I generate a
booklet layout PDF from it (this PDF uses the double sheet size, e.g. A3)


How do you do this?  This is something I'm very interested in, but I've
been doing it from the generated PDF, rather than from the PS.  This has
the effect of messing up the margins a bit, so I'd like to try the PS to
PDF conversion.


Did you try pdfbook (brochure-generation wrapper for pdfjam, which again 
is a commandline frontend for LaTeX's pdfpages):


  pdfbook --paper a3paper --noautoscale true -o output-a3.pdf input-a4.pdf

Of course, there's a bunch of other options; check `pdfjam -h`.


HTH,
Alexander

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


Incipits

2015-05-04 Thread Phil Holmes
All of the incipit examples in the LSR have "lyrics" 'IV-' below the 
initial note.  Does anyone know whay and what this is intended to signify?

See for example

http://lsr.di.unimi.it/LSR/Item?id=348


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


Re: my favorite bug :-)

2015-05-04 Thread Carl Sorensen
On 5/4/15 1:35 AM, "ArnoldTheresius"  wrote:

>2. the PS file, because it's used for another postprocessing: I generate a
>booklet layout PDF from it (this PDF uses the double sheet size, e.g. A3)

How do you do this?  This is something I'm very interested in, but I've
been doing it from the generated PDF, rather than from the PS.  This has
the effect of messing up the margins a bit, so I'd like to try the PS to
PDF conversion.

Thanks,

Carl


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


Re: Problem to pass regular music as argument to a particular Scheme function

2015-05-04 Thread Menu Jacques
Hello David,

Thanks a lot, that solves my problem elegantly!

I’ll study your code to learn more about the integration of Scheme and LP and 
follow your suggestion of a single command to do the parenthesizing.

A nice day!

JM


> Le 4 mai 2015 à 14:57, David Nalesnik  a écrit :
> 
> 
> 
> On Mon, May 4, 2015 at 3:56 AM, Menu Jacques  > wrote:
> Hello folks,
> 
> Someone recently supplied on this list a way to draw large, colored brackets 
> to emphasize repeats, with fixed X offsets though.
> 
> I tried to go one step further by defining functions in order to be able to 
> specify the X offset at will.
> 
> \displayMusic showed me what to put in their body, but I bump into the fact 
> that the music itself is frozen is their code.
> 
> How can I get the example below to work with a regular note as extra argument?
> 
> I’d like to be able to write something such as:
> 
>   \myColoredLeftBracket d’2. #-4.6
> 
> Or maybe would it be better and more in the LP spirit to be able to write:
> 
>   d’2. \myColoredLeftBracket #-4.6
> 
> I don’t know how to get:
> 
>'duration
>(ly:make-duration 0)
>'pitch
>(ly:make-pitch -1 0)
> 
> at the right place from a music argument such as d’2. .
> 
> The same question arises by the way for:
> 
> (list 1 0.647058823529412 0)
> 
> which is the orange color in this example.
> 
> Thanks for you help!
> 
> JM
> 
> 
> 
> 
> \version "2.19.17"
> 
> coloredLeftRepeatBracketPath = #'(
>(moveto 1 -4.5)
>(lineto 0 -2.5)
>(lineto 0 2.5)
>(lineto 1 4.5))
> 
> coloredRightRepeatBracketPath = #'(
> (moveto -1 -4.5)
> (lineto 0 -2.5)
> (lineto 0 2.5)
> (lineto -1 4.5))
> 
> % Variables with frozen X offsets
> 
> coloredLeftBracket =
> -\tweak layer #-1
> -\tweak extra-offset #'( -2.3 . -2.5)
> ^\markup {
>   \with-color #(x11-color "orange")
>   \with-dimensions #'(0 . 0) #'(0 . 0)
>   \path #1 #coloredLeftRepeatBracketPath
> }
> 
> 
> coloredRightBracket =
> -\tweak layer #-1
> -\tweak extra-offset #'(4.4 . -3.1)
> ^\markup {
>   \with-color #(x11-color "orange")
>   \with-dimensions #'(0 . 0) #'(0 . 0)
>   \path #1 #coloredRightRepeatBracketPath
> }
> 
> 
> % Attempts at parameterized functions instead of frozen X offsets
> % Code obtained thru \displayMusic and adapted
> 
> myColoredLeftBracket =
> #(define-music-function (parser location x-offset) (number?)
>(make-music
> 'SequentialMusic
> 'elements
> (list (make-music
>'NoteEvent
>'articulations
>(list (make-music
>   'TextScriptEvent
>   'tweaks
>   (list (cons (quote layer) -1)
> (cons (quote extra-offset) (cons x-offset -2.5)))
>   'direction
>   1
>   'text
>   (markup
>#:line
>(#:with-color
> (list 1 0.647058823529412 0)
> (#:with-dimensions
>  (cons 0 0)
>  (cons 0 0)
>  (#:path
>   1
>   (list (list (quote moveto) 1 -4.5)
> (list (quote lineto) 0 -2.5)
> (list (quote lineto) 0 2.5)
> (list (quote lineto) 1 4.5
>'duration
>(ly:make-duration 0)
>'pitch
>(ly:make-pitch -1 0
>)
> 
> myColoredRightBracket =
> #(define-music-function (parser location x-offset) (number?)
>(make-music
> 'SequentialMusic
> 'elements
> (list (make-music
>'NoteEvent
>'articulations
>(list (make-music
>   'TextScriptEvent
>   'tweaks
>   (list (cons (quote layer) -1)
> (cons (quote extra-offset) (cons x-offset -3.1)))
>   'direction
>   1
>   'text
>   (markup
>#:line
>(#:with-color
> (list 1 0.647058823529412 0)
> (#:with-dimensions
>  (cons 0 0)
>  (cons 0 0)
>  (#:path
>   1
>   (list (list (quote moveto) -1 -4.5)
> (list (quote lineto) 0 -2.5)
> (list (quote lineto) 0 2.5)
> (list (quote lineto) -1 4.5
>'duration
>(ly:make-duration 0)
>'pitch
>(ly:make-pitch -1 0
>)
> 
> 
> {
>   \di

Re: Problem to pass regular music as argument to a particular Scheme function

2015-05-04 Thread David Nalesnik
On Mon, May 4, 2015 at 3:56 AM, Menu Jacques  wrote:

> Hello folks,
>
> Someone recently supplied on this list a way to draw large, colored
> brackets to emphasize repeats, with fixed X offsets though.
>
> I tried to go one step further by defining functions in order to be able
> to specify the X offset at will.
>
> \displayMusic showed me what to put in their body, but I bump into the
> fact that the music itself is frozen is their code.
>
> How can I get the example below to work with a regular note as extra
> argument?
>
> I’d like to be able to write something such as:
>
>   \myColoredLeftBracket d’2. #-4.6
>
> Or maybe would it be better and more in the LP spirit to be able to write:
>
>   d’2. \myColoredLeftBracket #-4.6
>
> I don’t know how to get:
>
>'duration
>(ly:make-duration 0)
>'pitch
>(ly:make-pitch -1 0)
>
> at the right place from a music argument such as d’2. .
>
> The same question arises by the way for:
>
> (list 1 0.647058823529412 0)
>
> which is the orange color in this example.
>
> Thanks for you help!
>
> JM
>
>
> 
>
> \version "2.19.17"
>
> coloredLeftRepeatBracketPath = #'(
>(moveto 1 -4.5)
>(lineto 0 -2.5)
>(lineto 0 2.5)
>(lineto 1 4.5))
>
> coloredRightRepeatBracketPath = #'(
> (moveto -1 -4.5)
> (lineto 0 -2.5)
> (lineto 0 2.5)
> (lineto -1 4.5))
>
> % Variables with frozen X offsets
>
> coloredLeftBracket =
> -\tweak layer #-1
> -\tweak extra-offset #'( -2.3 . -2.5)
> ^\markup {
>   \with-color #(x11-color "orange")
>   \with-dimensions #'(0 . 0) #'(0 . 0)
>   \path #1 #coloredLeftRepeatBracketPath
> }
>
>
> coloredRightBracket =
> -\tweak layer #-1
> -\tweak extra-offset #'(4.4 . -3.1)
> ^\markup {
>   \with-color #(x11-color "orange")
>   \with-dimensions #'(0 . 0) #'(0 . 0)
>   \path #1 #coloredRightRepeatBracketPath
> }
>
>
> % Attempts at parameterized functions instead of frozen X offsets
> % Code obtained thru \displayMusic and adapted
>
> myColoredLeftBracket =
> #(define-music-function (parser location x-offset) (number?)
>(make-music
> 'SequentialMusic
> 'elements
> (list (make-music
>'NoteEvent
>'articulations
>(list (make-music
>   'TextScriptEvent
>   'tweaks
>   (list (cons (quote layer) -1)
> (cons (quote extra-offset) (cons x-offset -2.5)))
>   'direction
>   1
>   'text
>   (markup
>#:line
>(#:with-color
> (list 1 0.647058823529412 0)
> (#:with-dimensions
>  (cons 0 0)
>  (cons 0 0)
>  (#:path
>   1
>   (list (list (quote moveto) 1 -4.5)
> (list (quote lineto) 0 -2.5)
> (list (quote lineto) 0 2.5)
> (list (quote lineto) 1 4.5
>'duration
>(ly:make-duration 0)
>'pitch
>(ly:make-pitch -1 0
>)
>
> myColoredRightBracket =
> #(define-music-function (parser location x-offset) (number?)
>(make-music
> 'SequentialMusic
> 'elements
> (list (make-music
>'NoteEvent
>'articulations
>(list (make-music
>   'TextScriptEvent
>   'tweaks
>   (list (cons (quote layer) -1)
> (cons (quote extra-offset) (cons x-offset -3.1)))
>   'direction
>   1
>   'text
>   (markup
>#:line
>(#:with-color
> (list 1 0.647058823529412 0)
> (#:with-dimensions
>  (cons 0 0)
>  (cons 0 0)
>  (#:path
>   1
>   (list (list (quote moveto) -1 -4.5)
> (list (quote lineto) 0 -2.5)
> (list (quote lineto) 0 2.5)
> (list (quote lineto) -1 4.5
>'duration
>(ly:make-duration 0)
>'pitch
>(ly:make-pitch -1 0
>)
>
>
> {
>   \displayMusic {c1 \coloredLeftBracket}
> }
>
> {
>   \displayMusic {d'2. \coloredRightBracket}
> }
>
> {
>   \displayMusic {d'2.}
> }
>
> {
>   \myColoredLeftBracket #-4.6
> }
>
> {
>   \myColoredRightBracket #6.0
> }
>
> 
>

I'm not going to be able to give a detailed explanation right now (am going
to be late!), but the following shows how

Problem to pass regular music as argument to a particular Scheme function

2015-05-04 Thread Menu Jacques
Hello folks,

Someone recently supplied on this list a way to draw large, colored brackets to 
emphasize repeats, with fixed X offsets though.

I tried to go one step further by defining functions in order to be able to 
specify the X offset at will.

\displayMusic showed me what to put in their body, but I bump into the fact 
that the music itself is frozen is their code.

How can I get the example below to work with a regular note as extra argument?

I’d like to be able to write something such as:

  \myColoredLeftBracket d’2. #-4.6

Or maybe would it be better and more in the LP spirit to be able to write:

  d’2. \myColoredLeftBracket #-4.6

I don’t know how to get:

   'duration
   (ly:make-duration 0)
   'pitch
   (ly:make-pitch -1 0)

at the right place from a music argument such as d’2. .

The same question arises by the way for:

(list 1 0.647058823529412 0)

which is the orange color in this example.

Thanks for you help!

JM




\version "2.19.17"

coloredLeftRepeatBracketPath = #'(
   (moveto 1 -4.5)
   (lineto 0 -2.5)
   (lineto 0 2.5)
   (lineto 1 4.5))

coloredRightRepeatBracketPath = #'(
(moveto -1 -4.5)
(lineto 0 -2.5)
(lineto 0 2.5)
(lineto -1 4.5))

% Variables with frozen X offsets

coloredLeftBracket =
-\tweak layer #-1
-\tweak extra-offset #'( -2.3 . -2.5)
^\markup {
  \with-color #(x11-color "orange")
  \with-dimensions #'(0 . 0) #'(0 . 0)
  \path #1 #coloredLeftRepeatBracketPath
}


coloredRightBracket =
-\tweak layer #-1
-\tweak extra-offset #'(4.4 . -3.1)
^\markup {
  \with-color #(x11-color "orange")
  \with-dimensions #'(0 . 0) #'(0 . 0)
  \path #1 #coloredRightRepeatBracketPath
}


% Attempts at parameterized functions instead of frozen X offsets
% Code obtained thru \displayMusic and adapted

myColoredLeftBracket =
#(define-music-function (parser location x-offset) (number?)
   (make-music
'SequentialMusic
'elements
(list (make-music
   'NoteEvent
   'articulations
   (list (make-music
  'TextScriptEvent
  'tweaks
  (list (cons (quote layer) -1)
(cons (quote extra-offset) (cons x-offset -2.5)))
  'direction
  1
  'text
  (markup
   #:line
   (#:with-color
(list 1 0.647058823529412 0)
(#:with-dimensions
 (cons 0 0)
 (cons 0 0)
 (#:path
  1
  (list (list (quote moveto) 1 -4.5)
(list (quote lineto) 0 -2.5)
(list (quote lineto) 0 2.5)
(list (quote lineto) 1 4.5
   'duration
   (ly:make-duration 0)
   'pitch
   (ly:make-pitch -1 0
   )

myColoredRightBracket =
#(define-music-function (parser location x-offset) (number?)
   (make-music
'SequentialMusic
'elements
(list (make-music
   'NoteEvent
   'articulations
   (list (make-music
  'TextScriptEvent
  'tweaks
  (list (cons (quote layer) -1)
(cons (quote extra-offset) (cons x-offset -3.1)))
  'direction
  1
  'text
  (markup
   #:line
   (#:with-color
(list 1 0.647058823529412 0)
(#:with-dimensions
 (cons 0 0)
 (cons 0 0)
 (#:path
  1
  (list (list (quote moveto) -1 -4.5)
(list (quote lineto) 0 -2.5)
(list (quote lineto) 0 2.5)
(list (quote lineto) -1 4.5
   'duration
   (ly:make-duration 0)
   'pitch
   (ly:make-pitch -1 0
   )


{
  \displayMusic {c1 \coloredLeftBracket}
}

{
  \displayMusic {d'2. \coloredRightBracket}
}

{
  \displayMusic {d'2.}
}

{
  \myColoredLeftBracket #-4.6
}

{
  \myColoredRightBracket #6.0
}




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


Re: my favorite bug :-)

2015-05-04 Thread ArnoldTheresius
Masamichi Hosoda wrote
> ...
> However, I think that the "intermediate" file should be temporary
> by mkstemp etc.
> If lilypond uses mkstemp generated temporary file,
> this ghostscript problem will not occur.
> 
> ___
> lilypond-user mailing list

> lilypond-user@

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

Well, I often explicitly want both files to be created during one
compilation:
1. the 'page by page' PDF, with point-and-click-links (usually A4 sheet
size)
2. the PS file, because it's used for another postprocessing: I generate a
booklet layout PDF from it (this PDF uses the double sheet size, e.g. A3)

Therfore, if someone explicitly want's the keep the intermediate PS file, it
shall not be using a temporary file name.

Moreover, often I generate a third PDF, too - one just like the first PDF,
but the textedit links removed.
I implemented this by a patch to scm/backend-library.scm [LSR 992, not
approved jet].
I could look how to convert the file name from relative to absolute path
there in the procedure postscript->pdf, but the same has to be done for all
other final conversion which use an intermediate postcript file, too.

ArnoldTheresius



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/my-favorite-bug-tp175778p176024.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