[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: duration and pitch in a function
From: |
Jan-Peter Voigt |
Subject: |
Re: duration and pitch in a function |
Date: |
Sun, 11 Dec 2011 10:52:17 +0100 |
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 devel (2.15 ... 2.17 ...) on my machine to be prepared
for the next release.
Paolo's excercise would be solved differently by me: I would use a ly:music?
argument and copy and augment that. And I hope, ly:music? arguments will not be
broken in future releases ;-)
Cheers,
Jan-Peter
Am 11.12.2011 um 09:45 schrieb David Kastrup:
> Jan-Peter Voigt <address@hidden> 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
>> (make-music 'NoteEvent 'duration foobar 'pitch (ly:make-pitch 1 0 0))
>> ))
>> ))
>> )
>>
>> {
>> \myFunction #(ly:make-duration 2 0 1 1) r4
>> }
>
> Yes, it would. Unfortunately, it would not compile with the current
> version since the current version does not allow duration arguments to
> be specified in anything but duration syntax (along with pitches, they
> are one of two currently remaining special-cased argument types).
>
> I really don't think that it is worth investing work into creating 2.14
> sources if you want to have music functions meddling with durations and
> other stuff in easily maintainable ways.
>
> --
> David Kastrup
>
>
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/lilypond-user
- duration and pitch in a function, Paolo Prete, 2011/12/07
- Re: duration and pitch in a function, David Kastrup, 2011/12/08
- Re: duration and pitch in a function, Paolo Prete, 2011/12/08
- Re: duration and pitch in a function, David Kastrup, 2011/12/08
- Re: duration and pitch in a function, Matthew Collett, 2011/12/08
- Re: duration and pitch in a function, David Kastrup, 2011/12/08
- Re: duration and pitch in a function, Matthew Collett, 2011/12/08
- Re: duration and pitch in a function, jakob lund, 2011/12/10
- Re: duration and pitch in a function, Jan-Peter Voigt, 2011/12/11
- Re: duration and pitch in a function, David Kastrup, 2011/12/11
- Re: duration and pitch in a function,
Jan-Peter Voigt <=
- Re: duration and pitch in a function, David Kastrup, 2011/12/11
- Re: duration and pitch in a function, Jan-Peter Voigt, 2011/12/12
- Re: duration and pitch in a function, David Kastrup, 2011/12/12