Re: Slurs

2015-03-13 Thread Urs Liska


Am 14. März 2015 01:17:36 MEZ, schrieb Daniel Mauck :
>I’m typesetting an aria that has several melismatic passages with
>smaller, individually slurred phrases over single syllables. Using
>automatic text setting obviously won’t work here. I’d rather not set
>the lyrics with manual durations because the majority of the score
>doesn’t require it. The only other solution I can think of is to hide
>the slurs in these passages and simultaneously use phrasing slurs, but
>this also would be rather cumbersome. Any suggestions for an easier,
>more elegant solution?

There are commands in 
https://github.com/openlilylib/openlilylib/blob/master/fried-library-to-be-sorted/lyrics-shorthands.ily
 that should help you.

Urs

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


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


Re: Postsctipt arrows

2015-03-13 Thread Urs Liska


Am 14. März 2015 07:15:47 MEZ, schrieb Andrew Bernard 
:
>David,
>
>Thanks so much for your postscript solution. It’s exactly what I want.
>Very, very much appreciated. I feel liberated, since I know postscript
>well, I can do almost anything now.
>
>is it worth creating a snippet for LSR on this topic?

Sure.
And since it is a very generic thing with quite some potential I would be happy 
if you could write a tutorial style post on Scores of Beauty. 

Urs

>
>Andrew

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


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


Re: Postsctipt arrows

2015-03-13 Thread Andrew Bernard
David,

Thanks so much for your postscript solution. It’s exactly what I want. Very, 
very much appreciated. I feel liberated, since I know postscript well, I can do 
almost anything now.

is it worth creating a snippet for LSR on this topic?

Andrew


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


Re: [savannah-help-public] Google Code will be no more at 2016-01-25

2015-03-13 Thread Werner LEMBERG

> assume that the Savane installation on Savannah will eventuall
> move to FusionForge).
> 
> There are no such plans at present.

Hmm.  How does the development of Savannah's bug tracking system work,
then?

> I would be glad if we could use Savannah 
> 
> Ok, I'll look into the image-displaying feature.  Unless by some
> miracle "someone" else gets there first :).

Thanks!

> while github is able to display images, you can't have any
> non-image attachments, which is very annoying.
> 
> Sounds like as much of a killer as not being able to display images.

Definitely.  For patches, the natural way on github is to clone a
project's repository, adding your changes, then submitting a pull
request.  This workflow is admittedly superior to submitting a patch
in many situations, especially if communication doesn't happen within
e-mail lists.  However, for quickly providing data files this is not
the right way IMHO, and I don't understand why the github people don't
implement that.

> My suggestion is to use netpbm programs to filter everything,
> [...]
> 
> Ok, sounds good.  I wasn't sure if that would be sufficient.

Why not?  Limiting to a small set of image formats supported by most
browsers seems sensible to me.

> You could also try talking to the people at gna, but I don't know
> who they are, if anyone.  (A recent minor issue I submitted there
> has gone unanswered.)

Beuc is the adminstrator there, and he is also a Savannah
adminstrator, AFAIK.  Perhaps you should do a ping.


Werner

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


Slurs

2015-03-13 Thread Daniel Mauck
I’m typesetting an aria that has several melismatic passages with smaller, 
individually slurred phrases over single syllables. Using automatic text 
setting obviously won’t work here. I’d rather not set the lyrics with manual 
durations because the majority of the score doesn’t require it. The only other 
solution I can think of is to hide the slurs in these passages and 
simultaneously use phrasing slurs, but this also would be rather cumbersome. 
Any suggestions for an easier, more elegant solution?
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Postsctipt arrows

2015-03-13 Thread David Nalesnik
On Fri, Mar 13, 2015 at 9:43 PM, David Nalesnik 
wrote:

>
>>
> Spoke too soon:
>
>  \version "2.19.16"
>
> arrowdef = "/arrowdict 14 dict def arrowdict begin
> /mtrx matrix def end
> /arrow
> { arrowdict begin
> /headlength exch def /halfheadthickness exch 2 div def /halfthickness exch
> 2 div def
> /tipy exch def /tipx exch def
> /taily exch def /tailx exch def
> /dx tipx tailx sub def
> /dy tipy taily sub def
> /arrowlength dx dx mul dy dy mul add
> sqrt def
> /angle dy dx atan def
> /base arrowlength headlength sub def
> /savematrix mtrx currentmatrix def
> tailx taily translate angle rotate
> 0 halfthickness neg moveto
> base halfthickness neg lineto base halfheadthickness neg lineto
> arrowlength 0 lineto
> base halfheadthickness lineto base halfthickness lineto
> 0 halfthickness lineto
> closepath
> savematrix setmatrix end
> } def"
>
> myarrow = #(string-append arrowdef " 0 0 20 4 0.3 1.2 1.2 arrow stroke")
>
> {
>   c-\markup { \postscript #myarrow }
> }
>
>
You will probably want to use this in conjunction with \with-dimensions so
the markup affects spacing.  See for example
http://lsr.di.unimi.it/LSR/Snippet?id=435

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


Re: How to write this chord in Roemer?

2015-03-13 Thread Peter Teeson
That did it…

Many Thanks…

Peter
P.S. Have to go back through tutorial again…
LilyPond is more complex than System 360/370 or OS X - at least at this stage 
of learning….

On 2015-03-13, at 6:43 PM, Tim McNamara  wrote:

> Hi, that's a Lilypond syntax issue.  Write it d4:7.9-


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


Re: Postsctipt arrows

2015-03-13 Thread David Nalesnik
On Fri, Mar 13, 2015 at 9:27 PM, David Nalesnik 
wrote:

>
>
> On Fri, Mar 13, 2015 at 9:24 PM, David Nalesnik 
> wrote:
>
>>
>>
>> On Fri, Mar 13, 2015 at 8:31 PM, Andrew Bernard > > wrote:
>>
>>> Why do I get the feeling nobody is going to answer this? In all
>>> seriousness, I don’t know enough about lilypond to know if this is even
>>> possible or not, which is a dark state of ignorance. If the Scheme gods
>>> could let me know if I am barking up an entirely impossible tree, that may
>>> save me from wandering in the wilderness. The archives seem very silent on
>>> this topic.
>>>
>>
>> Look for the documentation of the \postscript command to get you started:
>> http://lilypond.org/doc/v2.19/Documentation/notation/graphic
>>
>> David
>>
>
> Oh, oops, I see that you referenced that command.  Sorry, don't think I
> can be of much help here.
>
>
Spoke too soon:

 \version "2.19.16"

arrowdef = "/arrowdict 14 dict def arrowdict begin
/mtrx matrix def end
/arrow
{ arrowdict begin
/headlength exch def /halfheadthickness exch 2 div def /halfthickness exch
2 div def
/tipy exch def /tipx exch def
/taily exch def /tailx exch def
/dx tipx tailx sub def
/dy tipy taily sub def
/arrowlength dx dx mul dy dy mul add
sqrt def
/angle dy dx atan def
/base arrowlength headlength sub def
/savematrix mtrx currentmatrix def
tailx taily translate angle rotate
0 halfthickness neg moveto
base halfthickness neg lineto base halfheadthickness neg lineto arrowlength
0 lineto
base halfheadthickness lineto base halfthickness lineto
0 halfthickness lineto
closepath
savematrix setmatrix end
} def"

myarrow = #(string-append arrowdef " 0 0 20 4 0.3 1.2 1.2 arrow stroke")

{
  c-\markup { \postscript #myarrow }
}
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: How to write this chord in Roehmer? [sic]

2015-03-13 Thread Peter Teeson
Thanks for the suggestion but..
On 2015-03-13, at 6:29 PM, Flaming Hakama by Elaine  
wrote:
> I don't think this is a Roemer issue, but instead is just general lilypond 
> chord syntax.
> Have you tried adding a period in between the 7 and the -9?  Like this:
> 
> d4:7.-9

I tried it and it just gives me a D….

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


Re: Postsctipt arrows

2015-03-13 Thread David Nalesnik
On Fri, Mar 13, 2015 at 8:31 PM, Andrew Bernard 
wrote:

> Why do I get the feeling nobody is going to answer this? In all
> seriousness, I don’t know enough about lilypond to know if this is even
> possible or not, which is a dark state of ignorance. If the Scheme gods
> could let me know if I am barking up an entirely impossible tree, that may
> save me from wandering in the wilderness. The archives seem very silent on
> this topic.
>

Look for the documentation of the \postscript command to get you started:
http://lilypond.org/doc/v2.19/Documentation/notation/graphic

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


Re: Postsctipt arrows

2015-03-13 Thread David Nalesnik
On Fri, Mar 13, 2015 at 9:24 PM, David Nalesnik 
wrote:

>
>
> On Fri, Mar 13, 2015 at 8:31 PM, Andrew Bernard 
> wrote:
>
>> Why do I get the feeling nobody is going to answer this? In all
>> seriousness, I don’t know enough about lilypond to know if this is even
>> possible or not, which is a dark state of ignorance. If the Scheme gods
>> could let me know if I am barking up an entirely impossible tree, that may
>> save me from wandering in the wilderness. The archives seem very silent on
>> this topic.
>>
>
> Look for the documentation of the \postscript command to get you started:
> http://lilypond.org/doc/v2.19/Documentation/notation/graphic
>
> David
>

Oh, oops, I see that you referenced that command.  Sorry, don't think I can
be of much help here.

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


Re: Postsctipt arrows

2015-03-13 Thread Andrew Bernard
Why do I get the feeling nobody is going to answer this? In all seriousness, I 
don’t know enough about lilypond to know if this is even possible or not, which 
is a dark state of ignorance. If the Scheme gods could let me know if I am 
barking up an entirely impossible tree, that may save me from wandering in the 
wilderness. The archives seem very silent on this topic.

Thanks!

Since I discovered lilypond postscript units are staff-spaces and not points, 
and that the postscript coordinate origin is at the reference point of the 
ground in question, a better example of showing an arrow is:

0 0 20 4 0.3 1.2 1.2 arrow

So, in short, I need to understand if it is possible to pass parameters (seven 
in this case) to a postscript procedure in the context of a markup expression.


Andrew



On 13 March 2015 at 16:04:30, Andrew Bernard (andrew.bern...@gmail.com) wrote:

Greetings list,

I want to make many different types of arrows using PostScript. The following 
function from the Adobe Blue Book works very nicely for what I need. It’s quite 
general.

The question is, how do I incorporate something of this level of complexity 
this into a form where it can be invoked with \postscript in a \markup block?

%!PS-Adobe-3.0
/arrowdict 14 dict def arrowdict begin
/mtrx matrix def end
/arrow
{ arrowdict begin
/headlength exch def /halfheadthickness exch 2 div def /halfthickness exch 2 
div def
/tipy exch def /tipx exch def
/taily exch def /tailx exch def
/dx tipx tailx sub def
/dy tipy taily sub def
/arrowlength dx dx mul dy dy mul add
sqrt def
/angle dy dx atan def
/base arrowlength headlength sub def
/savematrix mtrx currentmatrix def
tailx taily translate angle rotate
0 halfthickness neg moveto
base halfthickness neg lineto base halfheadthickness neg lineto arrowlength 0 
lineto
base halfheadthickness lineto base halfthickness lineto
0 halfthickness lineto
closepath
savematrix setmatrix end
} def

An example of use in raw PostScript:

newpath
318 340 72 340 10 30 72 arrow
fill

Andrew




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


Re: [savannah-help-public] Google Code will be no more at 2016-01-25

2015-03-13 Thread Assaf Gordon

On 03/13/2015 07:33 PM, Trevor Daniels wrote:

All the text in the issues can be extracted as a 5MB JSON file, but the file 
does not include the images.  At present I know of no way to extract the images 
in bulk.  Individual ones can be downloaded of course.

I can send you a copy of the JSON file off-list if that would help.  It does 
include a marker for the images.


Please do.
By "marker" do you mean a URL ?

 



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


Re: [savannah-help-public] Google Code will be no more at 2016-01-25

2015-03-13 Thread Noeck
Am 14.03.2015 um 00:33 schrieb Trevor Daniels:
> At present I know of no way to extract the images in bulk.

As a last resort, a recursive wget could help downloading everything and
then use find to see where the pictures are and collect them.

Joram

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


Re: [savannah-help-public] Google Code will be no more at 2016-01-25

2015-03-13 Thread Trevor Daniels

Karl Berry wrote Friday, March 13, 2015 11:03 PM

> If it turns out to be useful, we could set up a lilypond-tmp project at
> savannah just for purposes of working on the 4000-issue-import.  Which
> sounds like by far the biggest hurdle to me.  Can you dump the current
> issues into something readable?  Maybe Assaf can then take a look at it.

All the text in the issues can be extracted as a 5MB JSON file, but the file 
does not include the images.  At present I know of no way to extract the images 
in bulk.  Individual ones can be downloaded of course.

I can send you a copy of the JSON file off-list if that would help.  It does 
include a marker for the images.

Trevor


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


Re: [savannah-help-public] Google Code will be no more at 2016-01-25

2015-03-13 Thread Karl Berry
assume that the Savane installation on Savannah will eventuall move to
FusionForge).

There are no such plans at present.

I would be glad if we could use Savannah 

Ok, I'll look into the image-displaying feature.  Unless by some miracle
"someone" else gets there first :).

while github is able to display images, you
can't have any non-image attachments, which is very annoying.

Sounds like as much of a killer as not being able to display images.

My suggestion is to use netpbm programs to filter everything, e.g.

Ok, sounds good.  I wasn't sure if that would be sufficient.

we have to immediately start with evaluating our options.

If it turns out to be useful, we could set up a lilypond-tmp project at
savannah just for purposes of working on the 4000-issue-import.  Which
sounds like by far the biggest hurdle to me.  Can you dump the current
issues into something readable?  Maybe Assaf can then take a look at it.

You could also try talking to the people at gna, but I don't know who
they are, if anyone.  (A recent minor issue I submitted there has gone
unanswered.)

best,
karl

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


Re: How to write this chord in Roemer? [sic]

2015-03-13 Thread Flaming Hakama by Elaine
> From: Peter Teeson 
> Subject: How to write this chord in Roemer?
>
> Now I have this chord in the fake book that I don't know how to write ?
> D7b9 in Roemer.
> Here is the snippet but it gives me the wrong chord name.
>
> jazzChords = \chordmode {
> ...
>
\alternative {
> ...
>
{ ef af  | ef  d4:7-9 g:7 }
> }
> }
>
> It prints Db 7 9: this is not the chord which is a D Dominant 7 + a flat
> 9th.
> I''ve tried several different things with no success including looking at
> Roemer book.
> Any suggestions?
>

I don't think this is a Roemer issue, but instead is just general lilypond
chord syntax.
Have you tried adding a period in between the 7 and the -9?  Like this:

d4:7.-9


David Elaine Alt
415 . 341 .4954   "*Confusion is
highly underrated*"
ela...@flaminghakama.com
self-immolation.info
skype: flaming_hakama
Producer ~ Composer ~ Instrumentalist
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: How to write this chord in Roemer?

2015-03-13 Thread Michael Hendry

> On 13 Mar 2015, at 21:38, Peter Teeson  wrote:
> 
> Hi Tim:
> Thanks for the file. So far so good.
> Since I am using \include "english.ly " I replaced all 
> uses of the accidental indicators "es" & "is" with "f" and "s". 
> If you want I can send you that amended file.
> 
> Now I have this chord in the fake book that I don't know how to write … D7b9 
> in Roemer. 
> The piece is in Eb and the chord sequence is the transition form the 2nd 
> repeat into the bridge… Eb Ab | Eb D7b9 G7  | Cm ….
> 
> Here is the snippet but it gives me the wrong chord name.
> 
> jazzChords = \chordmode {
>   \repeat volta 2 { 
>   ef2 e:dim7 | f:min7 fs:dim7 | ef/g g:7aug | af:6 df:9 | 
>   ef/g: c:7   | f:m7 bf:9 
>   }
>   \alternative {
>   { g2:7 c:7 | f:7 bf:7 }
>   { ef af  | ef  d4:7-9 g:7 }
>   }
> }
> 
> It prints Db 7 9: this is not the chord which is a D Dominant 7 + a flat 9th.
> 
> I''ve tried several different things with no success including looking at 
> Roemer book.
> 
> The complete .ly file is here:
> 
> 
> Any suggestions?

d4:7.9-

Michael

> 
> TIA
> 
> respect… 
> 
> Peter
> 
> ___
> 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


How to write this chord in Roemer?

2015-03-13 Thread Peter Teeson
Hi Tim:Thanks for the file. So far so good.Since I am using \include "english.ly" I replaced all uses of the accidental indicators "es" & "is" with "f" and "s". If you want I can send you that amended file.Now I have this chord in the fake book that I don't know how to write … D7b9 in Roemer. The piece is in Eb and the chord sequence is the transition form the 2nd repeat into the bridge… Eb Ab | Eb D7b9 G7  | Cm ….Here is the snippet but it gives me the wrong chord name.jazzChords = \chordmode {	\repeat volta 2 { 		ef2 e:dim7 | f:min7 fs:dim7 | ef/g g:7aug | af:6 df:9 | 		ef/g: c:7 	| f:m7 bf:9		}	\alternative {		{ g2:7 c:7 | f:7 bf:7 }		{ ef af  | ef  d4:7-9 g:7 }	}}It prints Db 7 9: this is not the chord which is a D Dominant 7 + a flat 9th.I''ve tried several different things with no success including looking at Roemer book.The complete .ly file is here:

Ain't Misbehavin v4.ly
Description: Binary data
Any suggestions?TIArespect… Peter___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: baseMoment and beatStructure

2015-03-13 Thread Pierre Perol-Schneider
Hi Dave,

As Phil already mentioned, it'd be easier if there was a time signature.
3/4 ? 6/8 ? 3/8 ??
As far as I understood your message I'd do:

\version "2.18.2"

{
  \time 6/8
  \set Timing.beatStructure = #'(1 1 1 1 1 1)
  r2.
  \tuplet 3/2 8 { bes,16 ( c d ees f g a bes c d ees e f g a bes f d ) }
  %% or:
  % \tuplet 3/2 { bes,16 ( c d ees f g a bes c d ees e f g a bes f d ) }
}

HTH,
Pierre

2015-03-13 17:21 GMT+01:00 Phil Holmes :

> - Original Message - From: "Dave Higgins" 
> To: 
> Sent: Friday, March 13, 2015 4:06 PM
> Subject: baseMoment and beatStructure
>
>
>  I have been banging my head against the wall with this for the longest
>> time.
>>
>> What I'm looking for with this is 3 16th notes single beam 3 more 16th
>> notes single beam and 3 more 16th notes.
>>
>> What I get is 12 16th notes beamed together.
>>
>> r2. \tuplet 3/2 8 { \set Timing.baseMoment = #(ly:make-moment 1/8) \set
>> Timing.beatStructure = #'(3 3 3) bes,16 ( c d ees f g a bes c d ees e f
>> g a bes f d ) }
>>
>> I've tried many, many combinations and have never found one that
>> accomplishes what I'd like.
>>
>> Maybe I'm using the wrong constructs?
>>
>
> Have another look at the NR:
>
> "If a beamExceptions rule is defined for the time signature in force, that
> rule alone is used to determine the beam placement; the values of
> baseMoment and beatStructure are ignored."
>
> The default time signature is 4/4, which does have a beamExceptions rule:
> as the NR says, you have to clear that rule.
>
> --
> Phil Holmes
>
> ___
> 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: Add articulation to last note in music

2015-03-13 Thread Mark Knoop
At 20:08 on 13 Mar 2015, Marc Hohl wrote:
>Am 13.03.2015 um 19:32 schrieb Mark Knoop:
>> Hi,
>>
>> I'm trying to make a function to add a glissando to the last note of
>> a music expression. I've got to a version which works with simple
>> music expressions. However, I need to use it with transposed and
>> relative music where the actual notes may be nested within other
>> lists.
>>
>> How do I recurse into the music to find the SequentialMusic elements?
>>
>> \version "2.18.2"
>>
>> addGliss = #(define-music-function (parser location music)
>> (ly:music?) "Add a GlissandoEvent to the last element of music"
>>(let* ((gliss-note (last (ly:music-property music 'elements
>>  (set! (ly:music-property gliss-note 'articulations)
>>  (cons (make-music 'GlissandoEvent)
>>(ly:music-property gliss-note 'articulations)))
>>music))
>>
>> mynotes = { c' d' e' }
>>
>> {
>>% works with above function
>>\addGliss { c' d' e' } c'
>>\addGliss \mynotes c'
>>% doesn't work with more complex music
>>%\addGliss \relative c' { c d e } c
>>%\addGliss \transpose c e \relative c' { c d e } c
>> }
>
>... but it works with
>
>\relative c' { \addGliss { c d e } c }
>\transpose c e \relative c' { \addGliss { c d e } c }

Yes, it does, but unfortunately that's no help in this situation. (The
phrases come from other sections of relative/transposed music filtered
through the extractMusic function. If it were that simple, I would just
type "\glissando"!)

Thanks,

Mark

-- 
Mark Knoop

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


Re: Add articulation to last note in music

2015-03-13 Thread Marc Hohl

Am 13.03.2015 um 19:32 schrieb Mark Knoop:

Hi,

I'm trying to make a function to add a glissando to the last note of a
music expression. I've got to a version which works with simple music
expressions. However, I need to use it with transposed and relative
music where the actual notes may be nested within other lists.

How do I recurse into the music to find the SequentialMusic elements?

\version "2.18.2"

addGliss = #(define-music-function (parser location music) (ly:music?)
   "Add a GlissandoEvent to the last element of music"
   (let* ((gliss-note (last (ly:music-property music 'elements
 (set! (ly:music-property gliss-note 'articulations)
 (cons (make-music 'GlissandoEvent)
   (ly:music-property gliss-note 'articulations)))
   music))

mynotes = { c' d' e' }

{
   % works with above function
   \addGliss { c' d' e' } c'
   \addGliss \mynotes c'
   % doesn't work with more complex music
   %\addGliss \relative c' { c d e } c
   %\addGliss \transpose c e \relative c' { c d e } c
}


... but it works with

\relative c' { \addGliss { c d e } c }
\transpose c e \relative c' { \addGliss { c d e } c }

HTH,

Marc


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


Add articulation to last note in music

2015-03-13 Thread Mark Knoop
Hi,

I'm trying to make a function to add a glissando to the last note of a
music expression. I've got to a version which works with simple music
expressions. However, I need to use it with transposed and relative
music where the actual notes may be nested within other lists.

How do I recurse into the music to find the SequentialMusic elements?

\version "2.18.2"

addGliss = #(define-music-function (parser location music) (ly:music?)
  "Add a GlissandoEvent to the last element of music"
  (let* ((gliss-note (last (ly:music-property music 'elements
(set! (ly:music-property gliss-note 'articulations)
(cons (make-music 'GlissandoEvent)
  (ly:music-property gliss-note 'articulations)))
  music))

mynotes = { c' d' e' }

{
  % works with above function
  \addGliss { c' d' e' } c'
  \addGliss \mynotes c'
  % doesn't work with more complex music
  %\addGliss \relative c' { c d e } c
  %\addGliss \transpose c e \relative c' { c d e } c
}

--
Mark Knoop

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


Re: baseMoment and beatStructure

2015-03-13 Thread Phil Holmes
- Original Message - 
From: "Dave Higgins" 

To: 
Sent: Friday, March 13, 2015 4:06 PM
Subject: baseMoment and beatStructure


I have been banging my head against the wall with this for the longest 
time.


What I'm looking for with this is 3 16th notes single beam 3 more 16th
notes single beam and 3 more 16th notes.

What I get is 12 16th notes beamed together.

r2. \tuplet 3/2 8 { \set Timing.baseMoment = #(ly:make-moment 1/8) \set
Timing.beatStructure = #'(3 3 3) bes,16 ( c d ees f g a bes c d ees e f
g a bes f d ) }

I've tried many, many combinations and have never found one that
accomplishes what I'd like.

Maybe I'm using the wrong constructs?


Have another look at the NR:

"If a beamExceptions rule is defined for the time signature in force, that 
rule alone is used to determine the beam placement; the values of baseMoment 
and beatStructure are ignored."


The default time signature is 4/4, which does have a beamExceptions rule: as 
the NR says, you have to clear that rule.


--
Phil Holmes 



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


baseMoment and beatStructure

2015-03-13 Thread Dave Higgins
I have been banging my head against the wall with this for the longest time.

What I'm looking for with this is 3 16th notes single beam 3 more 16th
notes single beam and 3 more 16th notes.

What I get is 12 16th notes beamed together.

r2. \tuplet 3/2 8 { \set Timing.baseMoment = #(ly:make-moment 1/8) \set
Timing.beatStructure = #'(3 3 3) bes,16 ( c d ees f g a bes c d ees e f
g a bes f d ) }

I've tried many, many combinations and have never found one that
accomplishes what I'd like.

Maybe I'm using the wrong constructs?

-- 
Dave Higgins
Secure64 Software Corporation
Englewood, Colorado
dave.higg...@secure64.com
--
Growing old isn't bad when you consider the alternatives.
-- Maurice Chevalier

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


RE:building pairs in music functions

2015-03-13 Thread Stephen MacNeil
Is this the idea?


\version "2.18.2"


rotateBracket =

#(define-music-function (parser location input) (pair?)

#{

\once \override HorizontalBracket.bracket-flare = $input

#})


\relative {

\rotateBracket #'(2 . 4)

b\startGroup b\stopGroup

}


\layout {

\context {

\Voice

\consists "Horizontal_bracket_engraver"

}

}


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


Re: [savannah-help-public] Google Code will be no more at 2016-01-25

2015-03-13 Thread Assaf Gordon

On 03/12/2015 06:11 PM, Werner LEMBERG wrote:

Savannah supports web-based 'trackers' (for bugs, supports, tasks,

<...>

and also using a DebBugs server, for example:


However, one extremely important feature is sorely missing from
Savannah's bug tracker: the ability to directly display images, which
is of extreme importance for an application like lilypond, where
subtle details in the rendering results together with its real-world
templates are discussed.  Are there plans to implement image support?


Realistically, no.

Patches are always welcomed, but I do not know if anyone is interested in 
hacking on the current php code to add such a feature.

There is an option to attach files, but they will not be displayed inline.
Example:
   https://savannah.nongnu.org/bugs/?41009
   http://debbugs.gnu.org/19094

Another possibility is to work on DebBugs, adding a feature to show (some) 
attachments inline.


We can try to work with project administrators on importing existing
issues, but that will require some effort.


Right now, lilypond has more than 4000 issues...


I noticed google provides some tools to export the issues as a file.
Perhaps there could be a way to take their output, and import it into savannah 
(generating the proper structures and items in the database).
I'm guessing this will not be trivial, but if there's interest in working on 
that, I'll can assist from the Savannah side.

Regards,
 - Assaf



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


Re: Tweak Down causes extra space

2015-03-13 Thread Kieren MacMillan
Hi Harm,

> I did some more investigation and filed a bug-report. It's not the
> Dynamic/RehearsalMark conflict, but \markLengthOn itself.
> 
> http://lilypond.1069038.n5.nabble.com/markLengthOn-fails-if-MetronomeMark-RehearsalMark-direction-is-DOWN-td173039.html

I’ve recently found some other issues with \markLengthOn and its relatives — 
they may be related.
I will try to narrow it down to a minimal example.

Cheers,
Kieren.
___

Kieren MacMillan, composer
www:  
email:  i...@kierenmacmillan.info


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


Re: building pairs in music functions

2015-03-13 Thread Kevin Barry
Thank you both that worked perfectly!

On Fri, Mar 13, 2015 at 10:54 AM, Pierre Perol-Schneider <
pierre.schneider.pa...@gmail.com> wrote:

> Hi Kevin,
>
> See:
> http://www.lilypond.org/doc/v2.18/Documentation/extending/intermediate-substitution-functions.html
> So:
> ...
>
> \once \override HorizontalBracket.bracket-flare = #(cons num num)
>
> ...
>
>
> should work.
>
>
> HTH,
>
> Pierre
>
> 2015-03-13 11:33 GMT+01:00 Kevin Barry :
>
>> Dear scheme experts,
>>
>> I am trying to supply a constructed pair as a value for a grob property
>> in a music function, but it seems no matter what I try I get an error such
>> as: `warning: type check for `bracket-flare' failed; value `(num . num)'
>> must be of type `pair of numbers''. A non-working example is pasted below.
>> In addition to the code below, I also tried binding the variables in
>> advance with let* and I tried constructing the pair with cons. I even tried
>> binding a value to the constructed pair, but everything returned the same
>> error. Please help!
>>
>> Kevin
>>
>> \version "2.18.2"
>>
>> rotateBracket =
>> #(define-music-function (parser location num)
>>   (number?)
>>   #{
>>   \once \override HorizontalBracket.bracket-flare = #'(num . num)
>>   #})
>>
>> \relative {
>>   \rotateBracket #1
>>   b\startGroup b\stopGroup
>> }
>>
>> \layout {
>>   \context {
>> \Voice
>> \consists "Horizontal_bracket_engraver"
>>   }
>> }
>>
>> ___
>> 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: Graphical operators in markup

2015-03-13 Thread Andrew Bernard
Thank you! I don’t know why I can never find these things.

This is close, but not quite what I am after. I need more control over the 
shape and style of the arrowhead than the \arrow-head function provides, and I 
really do want to do it it postscript, so I can do things somewhat beyond the 
limited set of lilypond markup graphic capabilities.

I have some postscript as a foundational start for arrows, and I can get it to 
render, but I have no idea how to properly incorporate it, and in particular, I 
am stumped as to how to provide the seven arguments I need to the arrow 
function programmatically in a markup block.

It’s taken me all day to work out that the postscript units used in lilypond 
are not points but staff-spaces. Where is this sort of information documented?

Andrew


On 13 March 2015 at 20:44:04, Klaus Blum (benbigno...@gmx.de) wrote:

there are two snippets dealing with arrows:  

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


Re: convert-ly adding linefeeds / carriage return

2015-03-13 Thread Nick Payne

On 12/03/2015 21:43, Wilbert Berendsen wrote:

Op Wed, 11 Mar 2015 20:16:21 -0400
"stephan.patter...@videotron.ca" 
schreef:


I have just upgraded to the latest Lilypond, version 2.19.16. I'm
using Frescobaldi 2.18 on Windows 8.1.


Running convert-ly on any of my Lilypond scores, I find that carriage
returns and/or linefeeds get added to each line.

Please try this also outside of Frescobaldi. Then we can see if it is a
Frescobaldi bug (i.e. it reads the output back in an incorrect way) or
a convert-ly bug.


I have observed this also, and it appears to be a Frescobaldi problem. I 
loaded an ly file with a version number of 2.19.11 into Frescobaldi, and 
then ran command-line convert-ly against it. Frescobaldi prompted me to 
reload the file as it had been modified outside Frescobaldi, and when I 
reloaded it, the file remained with all spacing identical - the version 
number had been updated to 2.19.16.


I then reverted to the original version of the file from backup, opened 
the file in Frescobaldi, ran convert-ly from the Tools menu, and an 
additional blank line was inserted between each existing line. Looking 
at the file with a hex editor showed that an additional LF (control char 
0A) had been added after each existing LF in the file.


Nick

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


Re: building pairs in music functions

2015-03-13 Thread Pierre Perol-Schneider
Hi Kevin,

See:
http://www.lilypond.org/doc/v2.18/Documentation/extending/intermediate-substitution-functions.html
So:
...

\once \override HorizontalBracket.bracket-flare = #(cons num num)

...


should work.


HTH,

Pierre

2015-03-13 11:33 GMT+01:00 Kevin Barry :

> Dear scheme experts,
>
> I am trying to supply a constructed pair as a value for a grob property in
> a music function, but it seems no matter what I try I get an error such as:
> `warning: type check for `bracket-flare' failed; value `(num . num)' must
> be of type `pair of numbers''. A non-working example is pasted below. In
> addition to the code below, I also tried binding the variables in advance
> with let* and I tried constructing the pair with cons. I even tried binding
> a value to the constructed pair, but everything returned the same error.
> Please help!
>
> Kevin
>
> \version "2.18.2"
>
> rotateBracket =
> #(define-music-function (parser location num)
>   (number?)
>   #{
>   \once \override HorizontalBracket.bracket-flare = #'(num . num)
>   #})
>
> \relative {
>   \rotateBracket #1
>   b\startGroup b\stopGroup
> }
>
> \layout {
>   \context {
> \Voice
> \consists "Horizontal_bracket_engraver"
>   }
> }
>
> ___
> 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: building pairs in music functions

2015-03-13 Thread Mattes
 
Am Freitag, 13. März 2015 11:38 CET, "Mattes"  
schrieb: 
 
>  #'(num .num)

Sorry, breakfast time reply :-)
Breadcrumbs under the spacebar - this should read (num . num) ...

Cheers, RalfD





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


Re: building pairs in music functions

2015-03-13 Thread Mattes
 
Am Freitag, 13. März 2015 11:33 CET, Kevin Barry  schrieb: 
 
> Dear scheme experts,
> 
> I am trying to supply a constructed pair as a value for a grob property in
> a music function, but it seems no matter what I try I get an error such as:
> `warning: type check for `bracket-flare' failed; value `(num . num)' must
> be of type `pair of numbers''. A non-working example is pasted below. In
> addition to the code below, I also tried binding the variables in advance
> with let* and I tried constructing the pair with cons. I even tried binding
> a value to the constructed pair, but everything returned the same error.
> Please help!
> 
> Kevin
> 
> \version "2.18.2"
> 
> rotateBracket =
> #(define-music-function (parser location num)
>   (number?)
>   #{
>   \once \override HorizontalBracket.bracket-flare = #'(num . num)
>   #})

Aha!  
 #'(num .num)

is a shortcut for 

 #(quote (num .num))

and will return a pair of _symbols_. Remove the quote and you 
should be fine.

 HTH Ralf Mattes


 
 



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


building pairs in music functions

2015-03-13 Thread Kevin Barry
Dear scheme experts,

I am trying to supply a constructed pair as a value for a grob property in
a music function, but it seems no matter what I try I get an error such as:
`warning: type check for `bracket-flare' failed; value `(num . num)' must
be of type `pair of numbers''. A non-working example is pasted below. In
addition to the code below, I also tried binding the variables in advance
with let* and I tried constructing the pair with cons. I even tried binding
a value to the constructed pair, but everything returned the same error.
Please help!

Kevin

\version "2.18.2"

rotateBracket =
#(define-music-function (parser location num)
  (number?)
  #{
  \once \override HorizontalBracket.bracket-flare = #'(num . num)
  #})

\relative {
  \rotateBracket #1
  b\startGroup b\stopGroup
}

\layout {
  \context {
\Voice
\consists "Horizontal_bracket_engraver"
  }
}
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Graphical operators in markup

2015-03-13 Thread Klaus Blum
Hi Andrew, 

there are two snippets dealing with arrows: 
http://lsr.di.unimi.it/LSR/Item?id=961
  
http://lsr.di.unimi.it/LSR/Item?id=962
  

Maybe they are useful for you...

Cheers, 
Klaus



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Graphical-operators-in-markup-tp173031p173049.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: [savannah-help-public] Google Code will be no more at 2016-01-25

2015-03-13 Thread Noeck
Dear Shane,

of those 4311 issues, 1012 are still open all others closed.

I can't tell how often they happen but there is a certain classification
of severity in the type:
  10 Crash
   2 Critical (both regressions)
  37 Build
 212 Defect

 196 Ugly
 362 Enhancement
  71 Documentation
  38 Maintainability

However it is not clear to me whether there is a dedicated tag for the
priority/severity or a measure of affected users. From the numbers above
I would guess that about 25% (some few 100) of the issues are affecting
the users' output such that they see it. But that is just a very rough
guess.

Cheers,
Joram

Am 13.03.2015 um 00:44 schrieb Shane Brandes:
> How many of those issues are the sort that affect users every second
> Tuesday after a a blue moon versus critical bugs?
> 
> Shane

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