lilypond-devel
[Top][All Lists]
Advanced

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

Re: absolute pitch entry: accept an offset octave (issue 235010043 by ad


From: dak
Subject: Re: absolute pitch entry: accept an offset octave (issue 235010043 by address@hidden)
Date: Sun, 10 May 2015 07:25:18 +0000

On 2015/05/09 23:58:22, Keith wrote:

I had seen this selective application as a feature specific to
\relative.  Most
music functions apply to all the music in their argument, but
\relative skips
over any \relative or \transpose.  It is a bit of an inconvenience
that
\relative skips over \transpose, and I suspect \relative has this
feature so
that we do not get rising octaves in
    \relative c \transpose c c' {c c c c}

We could change that if desired.  We just need to record the
transposition difference when doing \transpose and make the
relativization hook for \transpose temporarily revert the transposition.
 As long as no alteration normalization interferes (and I think we moved
this out, right?), this kind of stuff can be done reliably.

Maybe we want selective application of the offset octave.  \absolute
inside
\absolute can be useful. For example if a violin spends some time in
7th
position
    \absolute c'' { c e g c \absolute c' {c e g c}}
          => c'' e'' g'' c'' { c''' e''' g''' c''' }

I think if we are talking "absolute" here, one can expect to use
\absolute c''' instead.

It would also be reasonable to enter these pitches using a function
\fixed that
skips over any inner \fixed
    \fixed c'' { c e g c  \fixed c''' {c e g c}}

That would be the behavior I expect irrespective of the name.

If we move music around, taking it inside or outside of an \absolute
that works
like \transpose,
   \absolute c'' { c4 e g c \relative c' {c e g c}}  => starts with c''
ends with
c''''

No, too messy.  The whole point of having \absolute in the first place
was to have something impervious to \relative.  Remember that you cannot
distinguish this from

part = \relative c' { c4 e g c }

\absolute c'' { c4 e g c \part c }

If we make a fixed-octave mode that skips over music written in other
modes,
then only the innermost mode counts
   \fixed c'' { c4 e g c  \fixed c''' {c e g c}}  => starts with c''
ends with
c'''
    c4 e g c  \fixed c''' {c e g c}}   =>   starts with c ends with
c'''

Either way seems useful to me.

If you want to transpose, transpose.  But we are now talking about an
input mode, and \absolute { ... } is intentionally impervious to
\relative.  So it does not make sense to start introducing
half-impervious stuff when writing \absolute c' { ... } or however we
want to name it.

   \fixed c'' { c  e g c \transpose c d {c4 e g c}}  =>  c'' e'' g''
c'' { d''
fis'' a'' d'' }

The question is rather what happens when writing \transpose c c' in the
middle.  In that case I'd expect, like discussed for \relative, to have
the transposition temporarily reversed before applying the \fixed, and
then transpose back again.

https://codereview.appspot.com/235010043/



reply via email to

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