On Mon, Oct 30, 2006 at 09:06:31AM +0100, Jean-Pierre Coulon wrote:
> >While being a happy user of MusiXTeX ``regular'' output, I now have a use
> >case to abuse MusiXTeX a bit: I need high quality pictures of notes only,
> >i.e. without staffs and everything, just pictures of a quarter note, an
> >eighth note, rests and so on. Is this possible to achieve?
>
> Do you want to insert such pictures into a TeX ot LaTeX document? This
> example works in LaTeX:
> [...]
> 71 {\musixchar71} 50 {\musixchar50}
> 7+40 {\musixchar7}{\musixchar40}{\musixchar16}
> [...]
The opposite approach would be to set up a "score" containing just a
single note (or other symbol) and remove all lines, bars, and clef, so
that only the note itself remains visible. Example:
8<--------------------------------------------------------------------
\documentclass[12pt,twoside]{article}
\usepackage{musixtex}
\makeatletter
\def\typenote#1{%
\vbox{%
[EMAIL PROTECTED]
\smallmusicsize
\nostartrule
\setlines10
\setclefsymbol1\empty
\staffbotmarg-2\Internote
\stafftopmarg0pt
\afterruleskip0pt
\startextract
\znotes#1\en
[EMAIL PROTECTED]
\zendextract}}
\makeatother
\begin{document}
First line of paragraph \\
Abc \typenote{\qa g}
def \typenote{\ca g}\kern7pt
ghi \typenote{\ds}
jkl \typenote{\qp}
mno\\
Last line of paragraph
\end{document}
8<--------------------------------------------------------------------
That's definitely not perfect, but at least it relieves you of
constructing a note from its graphical elements (head, stem, flag)
yourself.
Best regards,
Rainer
_______________________________________________
TeX-music mailing list
[email protected]
http://icking-music-archive.org/mailman/listinfo/tex-music