On Tue, Apr 02, 2002 at 09:27:41AM +0200, Rainer Dunker wrote:
> On Sat, Mar 30, 2002 at 08:37:59AM -0800, Don Simons wrote:
> > > I am writing a music analysis with TeX, and I want to use some
> > > music symbols in
> > > the text, for example:
> > >
> > > The rhythmic motiv o| o|_o| o. [symbols] that is used in the
> > > first movement ...
> Here's yet another approach: Insert a "real" music section inline
> into your text, with all fixed elements (lines, clef, meter, ...) removed.
Hoping not to bore you, but here's a further idea I've had in the
meantime: Using \startextract...\zendextract instead of
\startpiece...\zstoppiece, it's no longer necessary to choose the
insertion width explicity. See an example appended.
Regards,
Rainer
8<--------------------------------------------------------
\input musixtex
% macro to insert lineless, clefless sequence of notes
\makeatletter
\def\notesintext#1{%
{\let\extractline\relax
\setlines10\smallmusicsize \nobarnumbers \nostartrule
\staffbotmarg0pt \setclefsymbol1\empty \global\clef@skip0pt
\startextract\addspace{-\afterruleskip}#1\zendextract}}
\makeatother
% macro adapted to insert music with clef & lines:
\def\musicintext#1{%
{\let\extractline\relax
\smallmusicsize \nobarnumbers
\staffbotmarg0pt \setclefsymbol1\treblelowoct
\startextract\addspace{-\afterruleskip}#1\endextract}}
Here's an insert
\notesintext{%
\Notes\qu0\en\notes\Dqbu 00\en\bar\notes\Dqbu 00\Dqbu 00\en}
without clef and lines.
Here's an insert
\musicintext{\Notes\qu{cdef}\en}
with clef and lines.
This insert
\musicintext{\Notes\qu{cdefgfedc}\en}
contains more notes and expands to the appropriate width automatically.
The same insert
\musicintext{\scale{0.75}\Notes\qu{cdefgfedc}\en}
with a different scaling value.
\bye
8<--------------------------------------------------------
_______________________________________________
TeX-music mailing list
[EMAIL PROTECTED]
http://sunsite.dk/mailman/listinfo/tex-music