lilypond-user
[Top][All Lists]
Advanced

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

Re: Pitch value of previous note


From: Mark Knoop
Subject: Re: Pitch value of previous note
Date: Fri, 30 Apr 2021 13:55:01 +0100
User-agent: mu4e 1.5.11; emacs 27.2

At 12:15 on 30 Apr 2021, David Kastrup wrote:
David Sumbler <david@aeolia.co.uk> writes:
How can I access the pitch value of this most recent note for use in a
Scheme function after some rests?

Other value-propating mechanisms exist for default durations (attached
by the parser upon reading expressions), pitch-less durations (added
during the scorifying stage when a music expression is accepted into a
\score block), chord repeats (also at scorification).

"For use in a Scheme function" is too hand-waving to have an idea which
phase of LilyPond's interpretation you would want to be interfering
with, so it would probably make more sense to present the problem you
are trying to solve rather than guess about the tools you think LilyPond
must be using internally.

I don't know what David (Sumbler)'s use-case is, but one could imagine in an 
analysis situation something like:

{ c'1 g'1-\intervalFunction }

where 'intervalFunction' created the markup string "Perfect 5th above previous 
pitch".

--
Mark Knoop



reply via email to

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