duration and pitch in a function

2011-12-07 Thread Paolo Prete
Hi,

I need to create a function that

accepts  some_pitch and some_duration as arguments and prints the following 
three notes:   

1) some_pitch with some_duration
2) some_pitch with some_duration*2
3) some_pitch with some_duration*3


Should I use ly:duration as type of the argument two? I can't find 
documentation for that. 

I use LilyPond 2.12.3 but I can upgrade it if necessary...

thanks

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


Re: duration and pitch in a function

2011-12-08 Thread Paolo Prete
I searched in "extending" manual for 2.15, but I did not find a solution for my 
problem.

Shortly, given this fragment of code:




myFunction  = #(define-music-function (parser location foobar) (ly:duration?)
#{
   a ...how_can_I_use_$foobar_as_duration_??...
#})

\new Staff \myFunction ...how_can_I_pass_duration_??...


-


...which is the right syntax and which version of lilypond could I use?


Thanks




--- Gio 8/12/11, David Kastrup  ha scritto:

> Da: David Kastrup 
> Oggetto: Re: duration and pitch in a function
> A: lilypond-user@gnu.org
> Data: Giovedì 8 dicembre 2011, 07:59
> Paolo Prete 
> writes:
> 
> > I need to create a function that
> >
> > accepts some_pitch and some_duration as arguments and
> prints the
> > following three notes:
> >
> > 1) some_pitch with some_duration
> > 2) some_pitch with some_duration*2
> > 3) some_pitch with some_duration*3
> >
> >
> > Should I use ly:duration as type of the argument two?
> 
> ly:duration? would be the predicate.  And yes,
> definitely.
> 
> > I can't find documentation for that.
> >
> > I use LilyPond 2.12.3 but I can upgrade it if
> necessary...
> 
> If you upgrade, you will find both the functionality itself
> as well as
> the documentation.
> 
> I don't quite remember the version; it might be necessary
> to take one of
> the 2.15.x releases.
> 
> -- 
> David Kastrup
> 
> 
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
> 

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


Slashed beam

2011-12-24 Thread Paolo Prete
Hi,

is there a way to have a slash on the beam of a _sequence_ of notes?
 
Something like a slash for an acciaccatura with multiple notes, but intended 
for normal (not acciaccatura) notes.

This piece of code wuold be very useful, but it doesn't compile on 2.15.21

http://lists.gnu.org/archive/html/lilypond-user/2007-04/msg00422.html

At least, how can I modify it so to compile it?


thanks and merry christmas!
Paolo


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


Re: Slashed beam

2011-12-24 Thread Paolo Prete
Unfortunately the snippet doesn't work (--> wrong slash position) if I 
\override Stem #'direction = #down

In addition, the example I linked gives me more control of the slash (offset, 
length etc.)




--- Dom 25/12/11, James  ha scritto:

> Da: James 
> Oggetto: Re: Slashed beam
> A: "Paolo Prete" 
> Cc: lilypond-user@gnu.org
> Data: Domenica 25 dicembre 2011, 00:51
> Hello,
> 
> On 24 December 2011 23:46, Paolo Prete 
> wrote:
> > Hi,
> >
> > is there a way to have a slash on the beam of a
> _sequence_ of notes?
> >
> > Something like a slash for an acciaccatura with
> multiple notes, but intended for normal (not acciaccatura)
> notes.
> >
> > This piece of code wuold be very useful, but it
> doesn't compile on 2.15.21
> >
> > http://lists.gnu.org/archive/html/lilypond-user/2007-04/msg00422.html
> >
> > At least, how can I modify it so to compile it?
> >
> 
> 
> http://lsr.dsi.unimi.it/LSR/Item?id=721
> 
> ?
> 
> (works on latest 2.15 code)
> 
> 
> -- 
> --
> 
> James
> 

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


Re: Slashed beam

2011-12-25 Thread Paolo Prete
thanks Thomas, it works greatly and imho it should be added to the snippets repo


--- Dom 25/12/11, Thomas Morley  ha scritto:

> Da: Thomas Morley 
> Oggetto: Re: Slashed beam
> A: "Paolo Prete" 
> Cc: lilypond-user@gnu.org
> Data: Domenica 25 dicembre 2011, 01:41
> Hi Paolo,
> 
> 2011/12/25 Paolo Prete :
> > Unfortunately the snippet doesn't work (--> wrong
> slash position) if I \override Stem #'direction = #down
> >
> > In addition, the example I linked gives me more
> control of the slash (offset, length etc.)
> >
> > --- Dom 25/12/11, James 
> ha scritto:
> >
> >> Da: James 
> >> Oggetto: Re: Slashed beam
> >> A: "Paolo Prete" 
> >> Cc: lilypond-user@gnu.org
> >> Data: Domenica 25 dicembre 2011, 00:51
> >> Hello,
> >>
> >> On 24 December 2011 23:46, Paolo Prete 
> >> wrote:
> >> > Hi,
> >> >
> >> > is there a way to have a slash on the beam of
> a
> >> _sequence_ of notes?
> >> >
> >> > Something like a slash for an acciaccatura
> with
> >> multiple notes, but intended for normal (not
> acciaccatura)
> >> notes.
> >> >
> >> > This piece of code wuold be very useful, but
> it
> >> doesn't compile on 2.15.21
> >> >
> >> > http://lists.gnu.org/archive/html/lilypond-user/2007-04/msg00422.html
> >> >
> >> > At least, how can I modify it so to compile
> it?
> >> >
> >>
> >>
> >> http://lsr.dsi.unimi.it/LSR/Item?id=721
> >>
> >> ?
> >>
> >> (works on latest 2.15 code)
> >>
> >>
> >> --
> >> --
> >>
> >> James
> 
> this should compile (tested with "2.15.20"):
> 
> \version "2.15.20"
> 
> \layout {
>    ragged-right = ##f
>    point-and-click = ##f
> }
> 
> %% Arguments to Makeslash (all numbers are in staff
> units):
> %%
> %% #1: angle
> %% #2: length of the left  half of the slash
> %% #3: length of the right half of the slash
> %% #4: thickness
> %% #5: factor to shift the slash relative to the stem
> (+1/-1 =
> attached to top/bottom)
> %% #6: offset as a pair (x-offset, y-offset)
> %%
> %% Values other than +/-1 in arguments #5 and #6 are
> interpolated.
> 
> MakeSlash = #(define-music-function (parser location angle
> len-left
> len-right thick y-factor offset)
>                
>                
>     (number? number? number? number?
> number? pair?)
> #{
> \once \override Voice.Stem #'text = \markup {
>     \postscript #(let ((x-off (car offset))
>                
>        (y-off (cdr offset)))
>     (string-append
>     (ly:number->string (car offset)) " "
> (ly:number->string (cdr
> offset)) " translate "
>     (ly:number->string angle) " rotate "
>     (ly:number->string (- x-off)) " "
>     (ly:number->string (- y-off)) " translate
> 0 setlinewidth "
>     (ly:number->string (- x-off
> len-left))  " " (ly:number->string (+
> y-off thick)) " moveto "
>     (ly:number->string (- x-off
> len-left))  " " (ly:number->string y-off)
>                
>                
>              " "
> (ly:number->string
> thick) " 90 270 arc "
>     (ly:number->string (+ x-off len-right)) "
> " (ly:number->string y-off)
>                
>                
>              " "
> (ly:number->string
> thick) " 270 90 arc "
>                
>                
>              " gsave
> fill grestore stroke")) }
> 
> \once \override Voice.Stem #'stencil = #(lambda (grob)
>     (let* ((sten1 (ly:stem::print grob))
>            (sten2
> (ly:text-interface::print grob))
>            (extent1
> (ly:stencil-extent sten1 Y))
>            (extent2
> (ly:stencil-extent sten2 Y)))
>     (ly:stencil-add
>         sten1
>         (ly:stencil-translate sten2
>                
>               (cons 0 (+
> (* y-factor (cdr extent1))
>                
>                
>          (* (- 1 y-factor)
> (car extent1
> #})
> 
> 
> 
> slash = { \MakeSlash #40 #1.5 #3.0 #0.15 #1.0 #'(0 . 0) }
> 
> \relative c'
> {
>     \slash c16[
>     \slash b']
> 
>     \MakeSlash #-20 #2.0 #1.0 #0.05 #0.75 #'(0 .
> 0)
>     f2
>     r8
>     r4
> }
> 
> But it is a little uncomfortable. :)
> 
> HTH,
>   Harm
> 

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


angle of a tuplet bracket

2012-01-05 Thread Paolo Prete
... is there a way to specify the angle of a tuplet bracket?

In addition, how can I force the bracket of the following tuplet:

\times 2/3 {c' c'' c'''}

so to be horizontal? (0 °) 


thanks!




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


Re: angle of a tuplet bracket

2012-01-09 Thread Paolo Prete


--- Gio 5/1/12, Thomas Morley  ha scritto:

> Da: Thomas Morley 
> Oggetto: Re: angle of a tuplet bracket
> A: "Paolo Prete" 
> Cc: "lilypond-user" 
> Data: Giovedì 5 gennaio 2012, 14:40
> Hi Paolo,
> 
> 2012/1/5 Paolo Prete :
> > ... is there a way to specify the angle of a tuplet
> bracket?
> >
> > In addition, how can I force the bracket of the
> following tuplet:
> >
> > \times 2/3 {c' c'' c'''}
> >
> > so to be horizontal? (0 °)
> 
> how about:
> 
> {
>         \once\override
> TupletBracket  #'positions = #'(-5 . -5)
>         \times 2/3 {c' c'' c'''}
> }
> 
> HTH,
>   Harm
> 

thanks for your help but I would avoid to specify the vertical offset of the 
tuplet bracket.

I would like to set horizontal (0 °) \tupletUp brackets for ALL the score... is 
there a way to obtain that?

thanks


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


Re: angle of a tuplet bracket

2012-01-09 Thread Paolo Prete
Hi Thomas, thanks for your snippet that works greatly for a single staff but 
unfortunately it messes up the score when there are cross-staff notes... How 
can I fix that?




--- Gio 5/1/12, Thomas Morley  ha scritto:

> Da: Thomas Morley 
> Oggetto: Re: angle of a tuplet bracket
> A: "m...@apollinemike.com" 
> Cc: "Paolo Prete" , "lilypond-user" 
> 
> Data: Giovedì 5 gennaio 2012, 16:20
> Hi Paolo,
> 
> 2012/1/5 m...@apollinemike.com
> :
> >
> > On Jan 5, 2012, at 2:31 PM, Paolo Prete wrote:
> >
> > ... is there a way to specify the angle of a tuplet
> bracket?
> >
> > In addition, how can I force the bracket of the
> following tuplet:
> >
> > \times 2/3 {c' c'' c'''}
> >
> > so to be horizontal? (0 °)
> >
> >
> > thanks!
> >
> >
> > Hey Paolo,
> >
> > You can set the positions property.
> >
> > http://lilypond.org/doc/v2.15/Documentation/internals/tupletbracket
> >
> > To force it to be horizontal, just use the same two
> numbers.
> >
> > Cheers,
> > MS
> 
> if you want to get explicit control about the angle of the
> TupletBracket, you could try the function below. Sometimes
> there's
> need of an offset in Y-direction depending on the angle
> you've chosen.
> So I integrated the possibility to do so.
> 
> \version "2.15.20"
> 
> tupletAngles =
> #(define-music-function (parser location y-off
> angl)(number? number?)
> "
>  angl is supposed to be the angle of the TupletBracket in
> degrees,
>  y-off a (possible) offset in Y-direction
>  "
> #{
> \once\override TupletBracket  #'after-line-breaking =
> #(lambda (grob)
>   (let* ((pos (ly:grob-property grob 'positions))
>          (y-length
> (interval-length pos))
>          (st
> (ly:tuplet-bracket::print grob))
>          (st-x-ext
> (ly:stencil-extent st X))
>          (st-x-length
> (interval-length st-x-ext))
>          (alpha
> (degrees->radians angl))
>          (new-start (+ (car
> pos) y-off))
>          (new-y (*
> st-x-length (tan alpha
>   (ly:grob-set-property! grob 'positions (cons
> new-start (+ new-start new-y)
> #})
> 
> %- test
> 
> \relative c' {
>         \tupletAngles #-0.3 #15
>         \times 2/3 {c c' c'}
>         \tupletUp
>         \tupletAngles #0.9 #-30
>         \times 2/3 {c c, c,}
> }
> 
> Cheers,
>   Harm
> 

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


rest centered between staves

2012-01-11 Thread Paolo Prete
Hi all,

is it possible to have a rest centered between two staves?

I could use something like some_pitch\rest but it changes depending on the 
case: for example, when there is an ottava bracket or if the clef changes.

thanks!
Paolo

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


Re: rest centered between staves

2012-01-11 Thread Paolo Prete
> beside the dynamics example shown in precious mails, you
> might use
> 
>   \override Rest #'staff-position = #-12
> 
> to have rests under the staff. This solution doesn't depend
> on ottavas or clefs, but on spacing between staves.

Hi Jan,

This solution could work well if I can force default-staff-staff-spacing to 
have a MAXIMUM distance. However I can only specify a minimum distance. Is 
there a way to set that?

tnx

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


Breathing sign at a specified staff position

2012-01-13 Thread Paolo Prete
Hi all,

is it possible to place a breathing sign at a specified position?

I can do that for a rest, in this way:

\override Rest #'staff-position = #-12

thanks!

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


midi glissando for a piano score

2012-01-18 Thread Paolo Prete
Hello,

is it possible to  produce a glissando in the midi output of a piano score?

I looked at articulate script, but it doesn't seem to do that job

thanks

Paolo

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


distance between sustain pedal and staff

2012-01-19 Thread Paolo Prete
Hello,

1) how can I set the distance between sustain pedal and staff on lily 2.15.22 ?

I tried (see the attached example):
 \override Score.SustainPedalLineSpanner #'padding = #'20   

(as well as Y-offset and some other options) but it doesn't seem to work...


2) is it possible to change the font of "Ped" text ?


Thanks all
Paolo



global = {
  \key c \major
  \time 4/4
}

upper = \relative c'' {
  \clef treble
  a4 b c d
}

lower = \relative c {
  \clef bass
  a2 c
}

dynamics = {
  s2\fff\> s4 s\!\pp
}

pedal = {


  s2\sustainOn s\sustainOff
}

\score {

  \new PianoStaff = "PianoStaff_pf" <<
\set Score.pedalSustainStrings = #'("Ped" "P-" "-")
\set Score.pedalSustainStyle = #'mixed
 \override Score.SustainPedalLineSpanner #'padding = #'20   

\new Staff = "Staff_pfUpper" << \global \upper >>
\new Dynamics = "Dynamics_pf" \dynamics
\new Staff = "Staff_pfLower" << \global \lower >>
\new Dynamics = "pedal" \pedal
  >>
  \layout 
  {
  }
}

\score {
  \new PianoStaff = "PianoStaff_pf" <<
\new Staff = "Staff_pfUpper" << \global \upper \dynamics \pedal >>
\new Staff = "Staff_pfLower" << \global \lower \dynamics \pedal >>
  >>
  \midi { }
}


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


multi line glissando

2012-01-26 Thread Paolo Prete
Hello,

how can I obtain a glissando similar to that in the attached file?

Thanks!

Paolo

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


Re: multi line glissando

2012-01-26 Thread Paolo Prete
(sorry for the mail sent privately to Mike. Unfortunately this default 
behaviour of the mailing list frequently causes these problems)

Hello Mike


I tried on Lilypond 2.15.20:


{
\override Glissando #'padding = #0.0

c'4\glissando
\hideNotes
c''
\glissando
\unHideNotes

c' c'
}



...but I still see an extra space between the glissando segments...

I tried

\override Glissando #'bound-details #'left #'padding = #somevalues

as well, but it doesn't seem the right solution.

How can I solve?
Thanks



--- Gio 26/1/12, m...@apollinemike.com  ha scritto:

> Da: m...@apollinemike.com 
> Oggetto: Re: multi line glissando
> A: lilypond-user@gnu.org
> Data: Giovedì 26 gennaio 2012, 13:30
> On Thu, 26 Jan 2012 12:11:47 +
> (GMT), Paolo Prete wrote:
> > Hello,
> >
> > how can I obtain a glissando similar to that in the
> attached file?
> >
> > Thanks!
> >
> > Paolo
>
> There are two ways.
>
> 1)  Place hidden notes at the kink points and then make
> several glissandi w/ padding=0 on the left and right at the
> notes.  This is good if you want to suggest a sort of
> note-like horizontal spacing.
>
> 2)  Override the stencil command with several line
> stencils.  You can use the positions of the left and
> right bounds to normalize the lines so that they fit
> properly in the space provided.  Note that, to make
> sure there's enough space, you'd have to set minimum-length
> for glissandi - there's a bit in the docs about it (I forget
> where, but you can do a find in the pdf for it).
>
> Cheers,
> MS
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>

--- Gio 26/1/12, James  ha scritto:

> Da: James 
> Oggetto: Re: multi line glissando
> A: m...@apollinemike.com
> Cc: lilypond-user@gnu.org
> Data: Giovedì 26 gennaio 2012, 13:41
> Hello,
> 
> On 26 January 2012 12:30,  
> wrote:
> > On Thu, 26 Jan 2012 12:11:47 + (GMT), Paolo Prete
> wrote:
> >>
> >> Hello,
> >>
> >> how can I obtain a glissando similar to that in the
> attached file?
> >>
> >> Thanks!
> >>
> >> Paolo
> >
> >
> > There are two ways.
> >
> > 1)  Place hidden notes at the kink points and then
> make several glissandi w/
> > padding=0 on the left and right at the notes.  This is
> good if you want to
> > suggest a sort of note-like horizontal spacing.
> 
> What about using a 'point' stencil with your hidden notes
> (assuming
> that the padding=0 is all about trying to not have the
> hidden note
> head show up as a gap in the wavy line?
> 
> 
> 
> -- 
> --
> 
> James
> 
> ___
> 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


Modifying a slur by offsetting the positions property

2012-02-01 Thread Paolo Prete
Hi all,


How can I modify this snippet so to compile on Lilypond 2.15 ?

http://lsr.dsi.unimi.it/LSR/Item?id=748

It would be very useful 
Otherwise, are there easy alternatives for obtaining the same function?

thanks!
Paolo

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


Horizontal shifting

2012-02-01 Thread Paolo Prete
Hi,

is there an easy way to shift notes in a way similar to the png example 
attached to this mail?

A way to do that could be using NoteColumn #'force-hshift with an invisible 
additional voice... but I wonder if is there an easier solution.

Thanks all!
Cheers,
Paolo<>___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Horizontal shifting

2012-02-02 Thread Paolo Prete
Hello Nick. 

I need to reduce space between notes.. (and between a note and a barline)
It appears very strange to me that there's not a feature or a way for doing 
that in Lilypond.
Are there feedbacks?

Thanks
Paolo



--- Mer 1/2/12, Nick Payne  ha scritto:

> Da: Nick Payne 
> Oggetto: Re: Horizontal shifting
> A: lilypond-user@gnu.org
> Data: Mercoledì 1 febbraio 2012, 22:02
> On 02/02/12 05:21, Paolo Prete
> wrote:
> > Hi,
> > 
> > is there an easy way to shift notes in a way similar to
> the png example attached to this mail?
> > 
> > A way to do that could be using NoteColumn
> #'force-hshift with an invisible additional voice... but I
> wonder if is there an easier solution.
> You can increase the spacing between notes without an
> additional voice by changing the Stem X-extent, but this
> approach doesn't work to reduce the spacing:
> 
> \version "2.15.25"
> 
> stemspace = #(define-music-function (parser location extent)
> (pair?) #{
>     \once \override Staff.Stem #'X-extent =
> #extent
> #})
> 
> \relative c' {
>     c4 c \stemspace #'(0 . 4) f e
> }
> 
> -Segue allegato-
> 
> ___
> 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


change the size of the arpeggio arrows

2012-04-03 Thread Paolo Prete
Hello,

how can I change the size of the arpeggio (up and down) arrows? 
The default size is really small

thanks!

Paolo

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


flageolets near noteheads

2012-04-10 Thread Paolo Prete
Hi all,

is there a way to place the flageolet symbol always NEAR (above or below) the 
notehead?

I can see that if the notehead is within the staff, the flageolet is placed far 
from the notehead, above or below the staff.

thanks
Paolo



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


Re: flageolets near noteheads

2012-04-10 Thread Paolo Prete
thanks very much

--- Mer 11/4/12, Nick Payne  ha scritto:

> Da: Nick Payne 
> Oggetto: Re: flageolets near noteheads
> A: lilypond-user@gnu.org
> Data: Mercoledì 11 Aprile 2012, 00:05
> On 11/04/12 07:50, Paolo Prete
> wrote:
> > Hi all,
> > 
> > is there a way to place the flageolet symbol always
> NEAR (above or below) the notehead?
> > 
> > I can see that if the notehead is within the staff, the
> flageolet is placed far from the notehead, above or below
> the staff.
> 
> \version "2.15.32"
> 
> \relative c'' {
>     b2\flageolet
>     \once \override Script #'staff-padding = #'()
>     b\flageolet
> }
> 
> 
> -Segue allegato-
> 
> ___
> 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


ottava text and offset

2012-04-15 Thread Paolo Prete
Hi all,

How can I make the "ottava" text similar to that:

http://i44.tinypic.com/14vpgud.png

(note the "big fat 8 " and the smaller "va")

In addition, how can I move the ottava text+bracket so that the X position of 
the note head is exactly placed where the number 8 finishes? (note the red 
segment in the above image)


thanks very much,

regards,

Paolo

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


parenthesize a dotted note

2012-04-15 Thread Paolo Prete
Hello,

has this bug been fixed in lilypond 2.15.xx ?

http://old.nabble.com/Fix-155%3A-parentheses-include-accidentals-and-dots.-(issue-5047048)-td32485933.html

If so, which Lilypond version could I use?
Artenatively, how can I fix that without patching and recompiling the source 
code?


thanks all,

Paolo



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


Request for a cross-staff easy function

2019-12-14 Thread Paolo Prete
Hi all,

I think this function would be very useful for solving the limitations of
the current cross-staff interface:

crossStaffExpr =  #(define-music-function (parser location staffUpMusic
staffDownMusic beamPosition) (ly:music? ly:music? number?) .

Example:

\crossStaffExpr =  {  c '[   d'g'   s}
 {  s  s f '   a']  } # 'BeamUp

(the third parameter can be: BeamUp, BeamDown, or BeamBetween, where
BeamBetween places the beam between the two staves; BeamBetween can only be
used if there are no cross-staff chords)

I ask you if there are any generous volunteers who want to implement it, in
case it requires not so many lines of code.
in case it requires many lines of code, is it worth opening a ticket in the
dev ml?

Thanks in advance

P


Re: A Javascript test code for modifying ties and slurs with mouse

2019-12-14 Thread Paolo Prete
Thanks Aaron, it did the trick.

However, how can I make it work for multiple pages output?

On Sat, Dec 14, 2019 at 4:26 AM Aaron Hill  wrote:

> On 2019-12-13 5:59 pm, Paolo Pr wrote:
> > First of all, I need to add with Lilypond a   tag to the svg
> > file
> > just before the ending  tag  in the following way:
> >
> > 1)
> > 
> >