lilypond-devel
[Top][All Lists]
Advanced

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

Re: improvement(s) on LSR 445


From: Gilles THIBAULT
Subject: Re: improvement(s) on LSR 445
Date: Mon, 28 Mar 2011 00:13:11 +0200

tried to use the snippet  http://lsr.dsi.unimi.it/LSR/Snippet?id=445
and found it did not work as expected when using absolute pitch mode.
i suggest to [..]
please test before applying (i'm not a scheme programmer)!

Hello Eluze.
I have tried various combinations of relative and absolute mode. All
combinations seem to work
except this one :
%%%%%%%%%%%%%%
\relative {
  \clef bass
  \makeOctaves #1   { a,4 f gis,2  }
}
%%%%%%%%%%%%%%
I think it is impossible to have it working because \makeOctaves have no
ways to know we are in \relative mode. (well i am not absolutely sure of
that).
Two cases
1-The user have to specify \relative explicitly like that :
%%%%%%%%%%%%%%
\relative {
  \clef bass
  \makeOctaves #1  \relative  { a,4 f gis,2  } %% that works
}
2- The function have to add \relative to the parameter automatically, and
propose a way to specify the absolute mode.
I have just added a snippet in the LSR of a function i made for my needs :
http://lsr.dsi.unimi.it/LSR/Item?id=761  ,
and this the choice i made.
This snippet is a bit an extension of the snippet 445 because you can create
functions with which you can add notes not only in an octave range but also in any
transposition you would wish.

Gilles.





reply via email to

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