Hello Stefan! On Tue, Sep 24, 2002 at 02:56:34PM +0200, Stefan Svensson wrote: > I would like to simplify this with a macro that iterates over a string > with all notes in the scale ({cd_efg'_ab}) and adds the corresponding > numbers below, perhaps from a string like {12{\flt3}45{\flt6}{\flt7}}.
Sorry, but I can't refrain from making the following proposal: :-) 8<----------------------------------------------------------- \documentclass{article} \usepackage{musixtex} \input musixlyr \font\ChordSymbolSmall=musix13 \def\flt{\raise 1.7pt\hbox{\ChordSymbolSmall\char50}} \begin{document} \begin{music} \setlyrics1{\lyrlayout\smalltype 1 2 \flt3 4 5 \flt6 \flt7} \assignlyrics11 \startextract \Notes\nq{cd_efg'_ab}\lpar c\rpar c\nolyr\nq c\en \endextract \end{music} \end{document} 8<----------------------------------------------------------- But if you insist on doing the job without musixlyr: I don't quite understand whether you intend to give the text line explicitly, like: \doit{cd_efg'_ab}{12{\flt3}45{\flt6}{\flt7}} .. or whether the scale digits shall be deduced automatically from the notes sequence. Depending on this decision, the difficulty of finding a solution may vary very much. Regards, Rainer _______________________________________________ TeX-music mailing list [EMAIL PROTECTED] http://sunsite.dk/mailman/listinfo/tex-music