Re: resetOctaveCheck cannot be removed with a tag

2015-05-09 Thread Keith OHara
Reinhold Kainhofer lists at kainhofer.com writes:

 I'm trying to store that part into a separate variable and use 
 resetRelativeOctave for the octave jumps. I'm tagging those 
 resetRelative and try to filter them out for the first occurrance or for 
 the repetition. Unfortunately, tagging resetRelatativeOctave and 
 filtering out with removeWithTag does NOT work. 

You had a \relative applied before the \remove-with-tag 

\transpose f c {
  \removeWithTag #'A {
\relative c' {
  f2 f 
  \tag #'A \resetRelativeOctave c''
  c2 c }}}

so the octaves of the pitches were determined while your \resetRelativeOctave 
was still in place.  You need to apply the \relative after removing the tags 
but before the transpose.

\transpose f c {
  \relative c' {
\removeWithTag #'A {
  f2 f 
  \tag #'A \resetRelativeOctave c''
  c2 c }}}



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


resetOctaveCheck cannot be removed with a tag

2015-05-09 Thread Reinhold Kainhofer

Hi,
I have a movement where a large part at the beginning is later repeated 
(transposed a fifth), but occasionally some measures are transposed an 
octave up/down to make them playable on that instrument.


I'm trying to store that part into a separate variable and use 
resetRelativeOctave for the octave jumps. I'm tagging those 
resetRelative and try to filter them out for the first occurrance or for 
the repetition. Unfortunately, tagging resetRelatativeOctave and 
filtering out with removeWithTag does NOT work. (As a check: Filtering 
dynamics works).


Attached is an example.
Any idea where the problem lies and how I can solve it?

I have also tried turning m into a music-function and redefining 
resetRelativeOctave before the second call to \m, but that does not 
work, either...


Thanks,
Reinhold

--
--
Reinhold Kainhofer, reinh...@kainhofer.com, http://www.kainhofer.com/
 * Open Tools, Software Development, http://www.open-tools.net/
 * Edition Kainhofer, Music Publisher, http://www.edition-kainhofer.com/

\version 2.19.19

m=\relative c' {
	f2-\tag #'I-only \f f |
	\tag #'I-only \resetRelativeOctave c'
	c2 c
}

\relative c' {
	s1*0^second measure should be a jump down 
	\removeWithTag #'II-only \m
	
	s1*0^second measure should be a jump UP (resetRelativeOctave filtered with tag) 
	% I try to filter out the resetRelativOctave with a tag, but that does not work. Filtering dynamics works fine!
	\transpose f c \removeWithTag #'I-only \m
}

lily_tag_octave.pdf
Description: Zip archive
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user