Re: duration and pitch in a function

2011-12-12 Thread David Kastrup
Jan-Peter Voigt writes: > Hello David, > thank you for this detailed answer! > Well, I don't agree in doing an awkward thing, using 2.14. Duration arguments in Lilypond 2.14 are awkward without you being at fault. There is a reason even a very simple command like \skip had to be implemented in

Re: duration and pitch in a function

2011-12-12 Thread Jan-Peter Voigt
Hello David, thank you for this detailed answer! Well, I don't agree in doing an awkward thing, using 2.14. But I probably should not name shortcuts extensions. When I am working on a collection of pieces to be printed, I am using current *stable* version. While I'm working on them, I sometimes

Re: duration and pitch in a function

2011-12-11 Thread David Kastrup
Jan-Peter Voigt writes: > Thanks for that hint! I will keep that in mind for future development. > I actually use 2.14 for my allday work and create my extensions > according to that syntax, because I want to be able to produce sheets > day by day without stumbling over suprisingly upcoming chang

Re: duration and pitch in a function

2011-12-11 Thread Jan-Peter Voigt
Thanks for that hint! I will keep that in mind for future development. I actually use 2.14 for my allday work and create my extensions according to that syntax, because I want to be able to produce sheets day by day without stumbling over suprisingly upcoming changes. I know, I should have a deve

Re: duration and pitch in a function

2011-12-11 Thread David Kastrup
Jan-Peter Voigt writes: > Hi Paolo, > > this compiles in 2.14.2 on my machine: > --snip-- > \version "2.14.2" > > myFunction = #(define-music-function (parser location foobar) (ly:duration?) > (make-music 'SequentialMusic 'elements (list > (make-music 'EventChord 'elements (list > (

Re: duration and pitch in a function

2011-12-11 Thread Jan-Peter Voigt
tion?) > #{ > 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? > > > Tha

Re: duration and pitch in a function

2011-12-10 Thread jakob lund
2011/12/9 Matthew Collett : > > On 9/12/2011, at 2:27 pm, David Kastrup wrote: > >>> On 8/12/2011, at 10:48 pm, David Kastrup wrote: >>> Please, *never*, *never*, *never* send a "courtesy copy" of a public answer as a private mail when answering on a mailing list unless you have been

Re: duration and pitch in a function

2011-12-08 Thread Matthew Collett
On 9/12/2011, at 2:27 pm, David Kastrup wrote: >> On 8/12/2011, at 10:48 pm, David Kastrup wrote: >> >>> Please, *never*, *never*, *never* send a "courtesy copy" of a public >>> answer as a private mail when answering on a mailing list unless you >>> have been _explicitly_ asked to provide such

Re: duration and pitch in a function

2011-12-08 Thread David Kastrup
Matthew Collett writes: > On 8/12/2011, at 10:48 pm, David Kastrup wrote: > >> Please, *never*, *never*, *never* send a "courtesy copy" of a public >> answer as a private mail when answering on a mailing list unless you >> have been _explicitly_ asked to provide such a copy. >> >> Otherwise, you

Re: duration and pitch in a function

2011-12-08 Thread Matthew Collett
On 8/12/2011, at 10:48 pm, David Kastrup wrote: > Please, *never*, *never*, *never* send a "courtesy copy" of a public > answer as a private mail when answering on a mailing list unless you > have been _explicitly_ asked to provide such a copy. > > Otherwise, you set up _two_ different communicat

Re: duration and pitch in a function

2011-12-08 Thread David Kastrup
Paolo Prete writes: > I searched in "extending" manual for 2.15, but I did not find a > solution for my problem. Please, *never*, *never*, *never* send a "courtesy copy" of a public answer as a private mail when answering on a mailing list unless you have been _explicitly_ asked to provide such

Re: duration and pitch in a function

2011-12-08 Thread Paolo Prete
_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: duratio

Re: duration and pitch in a function

2011-12-07 Thread David Kastrup
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 typ

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