Text FormattingMusixgui Example

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
pthowe
Posts: 17
Joined: Thu Mar 25, 2010 5:47 am

Musixgui Example

Post by pthowe »

Hi Everyone,
Just found MusixTex. Would like to use the Guitar tab feature.
Does anyone know where I can find an example?

Thanks
PT

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
pthowe
Posts: 17
Joined: Thu Mar 25, 2010 5:47 am

Musixgui Example

Post by pthowe »

Hi Everyone,
Got a simple music file to work. It has spacing issues. Can not seem
to get the horizontal spacing correct. Anyone have suggestions?

Code: Select all

\documentclass{article}
\usepackage{musixtex}
\normalmusicsize
\pagestyle{empty}
\begin{document}
\begin{music}
\instrumentnumber{1} % a single instrument
\setstaffs1{1} % with two staffs
\generalmeter{\meterfrac44} \nobarnumbers
\startpiece
\NOtes\qa{fd}\hl{d}\enotes 
\bar
\NOtes\cfl{e}\qa{ec}\hl{c}\enotes
\bar
\NOtes\cfl{b}\qa{bcd}\cfl{e}\qa{e}\enotes
\bar
\Notes\qa{ff}\hl{f}\enotes
\bar
\Notes\qa{fd}\hl{d}\enotes
\bar
\Notes\cfl{e}\qa{ec}\hl{c}\enotes
\bar
\NOtes\cfl{b}\qa{bdff}\enotes
\bar
\NOTEs\wh{d}\enotes
\bar
\NOtes\qa{cccc}\enotes
\bar
\NOtes\qa{cd}\fl{e}\hl{e}\enotes
\bar
\NOtes\qa{dddd}\enotes
\bar
\NOtes\qa{d}\fl{e}\qa{e}\hl{f}\enotes
\bar
\Notes\qa{fd}\hl{d}\enotes
\bar
\Notes\fl{e}\qa{ec}\hl{c}\enotes
\bar
\NOtes\fl{b}\qa{bdff}\enotes
\bar
\NOTEs\fl{b}\zw{b}\enotes
\endpiece
\end{music}
\end{document}
sophia
Posts: 1
Joined: Fri Jun 28, 2024 1:05 pm

Musixgui Example

Post by sophia »

MusiXTeX is designed to be a "three pass system". Say the tex file is jobname.tex, one uses xelatex distributor and the computer is MacBook, the 3 commands in Terminal are:

Code: Select all

xelatex jobname
musixflx jobname.mx1
xelatex jobname
The reason is for the first command xelatex writes music like handwriting in a sheet music notebook. For the second command, musixflx adjusts the parameter \elemskip and produces jobname.mx2. For the third command, xelatex rewrites the music to make it look perfect based on jobname.mx2.

Please delete all the temporary files before inputting the commands.

Ref: MusiXTEX-Using TEX to write polyphonic or instrumental music Version 1.38, March 29, 2024, https://ftp.kddilabs.jp/CTAN/macros/gen ... sixdoc.pdf
Post Reply