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.



_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to