lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: trying to create a function with different pitches and different rhy


From: David Kastrup
Subject: Re: trying to create a function with different pitches and different rhythms
Date: Sat, 23 Jun 2018 14:01:34 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

[Resent in order to include list]

Stefan Thomas <address@hidden> writes:

> 2018-06-23 12:41 GMT+02:00 David Kastrup <address@hidden>:
>> Stefan Thomas <address@hidden> writes:
>>
>> > Dear community,
>> > I want to create a function, which adds automatically a crescendo from ppp
>> > to pp to two tied pitches with different durations.
>> > What  I dont understand:
>> > I can create a function with the same pitch and different durations, I can
>> > also create a function with diferent pitches and same durations, but if
>> > both are choosen freely, I can't do it. Can someon give me a hint, whats
>> > wrong with the code?
>> >
>> > \version "2.18.2"
>> >
>> > \layout {  \context { \Voice \override Hairpin.minimum-length = #10 }  }
>> >
>> > %different durations, different  pitches, this doesn't work, why?
>>
>> Well, what's wrong is the version.
>>
>> commit ee4b49239c2aeb7ed6b4609391566a276ca0d47c
>> Author: David Kastrup <address@hidden>
>> Date:   Fri Dec 13 06:01:43 2013 +0100
>>
>>     Parser: properly disambiguate pitches from music in function arguments
>>
>>     In many instances, function arguments were parsed greedily without
>>     looking at the function argument predicates first.  This did not allow
>>     using subsequent function arguments of type pitch and duration since
>>     they were combined into one music expression.
>>
>> Embarrassingly without issue number.  But the corresponding version
>> appears to be 2.19.0.
>>
>> So just use the latest stable prerelease (2.19.81 right now, but I have
>> put 2.19.82 in the queue and it might surface some time next week or
>> so).
>>
> Sorry, right, I forgot the version. It's 2.18.2

No, you didn't forget the version.  You included the \version statement
perfectly well and my answer was based on it.

> Can it be done with this version as well?

Not with that syntax.  Have you actually read my answer beyond its first
sentence?  Or did you stop with the admittedly unintroduced "commit"
line?  In that case you should skip ahead to the non-indented paragraph
starting with "Embarrassingly", read the lines there, and then view the
skipped part as a footnote.

-- 
David Kastrup



reply via email to

[Prev in Thread] Current Thread [Next in Thread]