[TeX-Music] scope of cautionary accidentals

2010-06-06 Thread Bob Tennent
Why are the accidentals on the 2nd and 4th notes of the following "cautionary"? \input musixtex \smallaccid \instrumentnumber1 \startpiece\addspace\afterruleskip% \Notes\ibu2i0\cna i\qb2i\fl i\qb2{ii}\tbu2\fl h\qb2h\en \endpiece \end Bob T. ___ tex-mu..

Re: [TeX-Music] scope of cautionary accidentals

2010-06-06 Thread Don Simons
Bob Tennent wondered >Why are the accidentals on the 2nd and 4th notes of the following >"cautionary"? > >\input musixtex >\smallaccid >\instrumentnumber1 >\startpiece\addspace\afterruleskip% >\Notes\ibu2i0\cna i\qb2i\fl i\qb2{ii}\tbu2\fl h\qb2h\en >\endpiece >\end To remind you to use \startmufle

Re: [TeX-Music] scope of cautionary accidentals

2010-06-06 Thread Bob Tennent
>|>Why are the accidentals on the 2nd and 4th notes of the following >|>"cautionary"? >|> >|>\input musixtex >|>\smallaccid >|>\instrumentnumber1 >|>\startpiece\addspace\afterruleskip% >|>\Notes\ibu2i0\cna i\qb2i\fl i\qb2{ii}\tbu2\fl h\qb2h\en >|>\endpiece >|>\end >| >|Seriously, withou

Re: [TeX-Music] scope of cautionary accidentals

2010-06-06 Thread Don Simons
Oops, never mind! I sure did miss the point. I'll have a look into why the later ones came out as cautionary, but the real TeXperts will probably have an answer before I do. --Don >-Original Message- >From: icking-music-archive.org-tex-music-boun...@mailman.nfit.au.dk >[mailto:icking-musi

Re: [TeX-Music] scope of cautionary accidentals

2010-06-06 Thread Olivier Vogel
Hi Bob, I don't have time to carefully examine the code, but here is a quick fix: code {\cna i} instead of simply \cna i In short, add the braces. Olivier ___ tex-mu...@icking-music-archive.org mailing list If you want to unsubscribe or look at th

Re: [TeX-Music] scope of cautionary accidentals

2010-06-06 Thread Bob Tennent
>|here is a quick fix: >| >|code {\cna i} instead of simply \cna i >| >|In short, add the braces. Thanks Olivier. I had actually tried {\cna i\qb2i} but that killed the beam. Bob T. ___ tex-mu...@icking-music-archive.org mailing list If you wa

Re: [TeX-Music] scope of cautionary accidentals

2010-06-06 Thread Jean-Pierre Coulon
Another fix is to write _two_ \Notes.\en lines: \Notes\ibu2i0\cna i\qb2i\en \Notes\fl i\qb2{ii}\tbu2\fl h\qb2h\en I found an undocumented feature: you can make a parenthesized upper accidental like this: \Notes\ibu2i0\cna i\qb2i\upperfl j\qb2j\en It seems \cna opens a parenthesized enviro

Re: [TeX-Music] scope of cautionary accidentals

2010-06-06 Thread David Allsopp
Don Simons wrote: > Oops, never mind! I sure did miss the point. I'll have a look into why the > later ones came out as cautionary, but the real TeXperts will probably > have an answer before I do. Heh, heh - having had a rather too indulgent Corpus Christi to do any of my own work, here's a solut

Re: [TeX-Music] scope of cautionary accidentals

2010-06-06 Thread Don Simons
David wins the prize! Believe it or not, I had slogged far enough into musixtex.tex to figure out what was SUPPOSED to be happening, but I never sorted out the group-hierarchy stuff. (It's interesting to learn that both the left- and right-parentheses are in a single character from musixfont.) Why

Re: [TeX-Music] scope of cautionary accidentals

2010-06-06 Thread Bob Tennent
>|Cautionary accidentals work by setting \...@vii to \maxdimen (cf. \...@sa). >The >|final operation in \...@sa is to reset \...@vii to zero. >| >|*But* \...@sa when executed within \w...@sa inside an \llap - i.e. within a >|group. So the assignment is lost at the end of the group. This has

Re: [TeX-Music] scope of cautionary accidentals

2010-06-06 Thread David Allsopp
Don Simons wrote: > David wins the prize! Believe it or not, I had slogged far enough into > musixtex.tex to figure out what was SUPPOSED to be happening, but I never > sorted out the group-hierarchy stuff. \tracingmacros was really useful here - just put \tracingmacros1 ...\tracingmacros0 around

Re: [TeX-Music] scope of cautionary accidentals

2010-06-06 Thread David Allsopp
Bob Tennent wrote: > Thanks. I can confirm that this does work on my example. But I'm wondering > why \smallaccid was essential in producing the incorrect behaviour. \smallaccid is a shorthand which tells musixtex to interpret \fl as \smallfl and so on. \smallfl uses \w...@sa where the \fl does n