%%%%%-*- Mode: LaTeX -*-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%
%%% General setup
%%%
\documentclass[a4paper]{article}
% \documentstyle[musictex,musicper,psfig,bezier]{esub2acm}
\usepackage{graphicx}
\usepackage{subfigure}
\usepackage{musixtex}
\input{musixcho.tex}
\input{musixper.tex}
\input{musixmad.tex}
\input{musixgrp.tex}                % locally developed
\input{musixccl.tex}                % locally developed
\usepackage{verbatim}
% \usepackage{musictex,musicper,psfig,bezier}
% \usepackage{doublespace}
\usepackage{color}
\usepackage{hyperref}

%%%
%%% Page settings, disabled for camera-ready verion
%%%
\pagestyle{empty}
% \setlength{\voffset}{-1in}
% \setlength{\hoffset}{-1in}
% \setlength{\footskip}{1cm}
% \setlength{\headsep}{2.5cm}
% \setlength{\topmargin}{0pt}
% \setlength{\textheight}{26cm}
% \setlength{\textwidth}{19cm}
% \setlength{\oddsidemargin}{1cm}
% \setlength{\evensidemargin}{1cm}
% \setlength{\headheight}{1cm}
\input{GamelanSettings.tex}

%%%
%%% Compressed EPS inclusion
%%%
\DeclareGraphicsRule{.eps.gz}{eps}{.eps.bb}{`gzip -d -c #1}
\newcommand{\pschar}[1]{\includegraphics[height=1em]{ps/#1.eps.gz}}
% \newcommand{\pschar}[1]{\fbox{#1}}

%%%
%%% List environemnt spacing fine-tuning
%%%
% \newcommand{\sepx}[1]
% {
%   \setlength{\topsep}{0pt}
%   \setlength{\parsep}{0pt}
%   \setlength{\parskip}{0pt}
%   \setlength{\itemsep}{#1 em}
% }
% \newcommand{\sepone}{\sepx{1}}
% \newcommand{\email}[1]{{\tt #1}}
% \newcommand{\note}[1]{\marginpar{\begin{tiny}#1\end{tiny}}}

%%%
%%% Subfigure environment spacing fine-tuning
%%%
\renewcommand{\subfigtopskip}{0.5ex}
\renewcommand{\subfigcapskip}{0ex}
\renewcommand{\subfigbottomskip}{0.5ex}

%%%
%%% Glossary entry without use of index features
%%%
\newcommand{\glo}[1]{#1} % verbatim
% \newcommand{\glo}[1]{\textbf{#1}} disabled

%%%
%%% Tigher spacing for choir lyrics
%%%
% \def\ChoirStrut{\vphantom{012}}

%%%
%%% Custom environments and dimensions
%%%
\newcommand{\fhalf}{0.48}
\newcommand{\fthird}{0.30}

%%%
%%% Including Chinese name the easy way
%%%
\newsavebox{\ChineseName}
\savebox{\ChineseName}{\raisebox{-0.1em}{\pschar{ycl}}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%
%%% Document-specific macro definitions
%%%
\newcommand{\mymusicsize}{\normalmusicsize}

%
% Lazy; four backskips
%
\newcommand\bfour{\bsk\bsk\bsk\bsk}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\MusicTitle{Gilak Topeng}
{
% Copyright 1999--2000 \href{http://www.hku.hk/music/}{Department of Music},
  \href{http://www.hku.hk/music/}{Department of Music},
  \href{http://www.hku.hk/}{The University of Hong Kong}\\
Version 4.0 typeset on \today
}

\newcommand{\KendangLabel}{Kendang: \hfill $\hbox{Right hand} \atop \hbox{Left hand}$~}
\newlength{\KendangLabelWidth}
\settowidth{\KendangLabelWidth}{\KendangLabel}
\noindent\hspace*{-\KendangLabelWidth}
\begin{music}
  \setlength{\parindent}{\KendangLabelWidth}
  \setlength{\afterruleskip}{0ex}
  \setlength{\beforeruleskip}{0ex}
  \mymusicsize
  \instrumentnumber{11}
  \generalsignature{3}
  \generalmeter{\empty}%
  \grouptop{1}{11}
  \groupbottom{1}{10}
  \grouptop{2}{9}
  \groupbottom{2}{7}
  \grouptop{3}{6}
  \groupbottom{3}{5}
  \grouptop{4}{4}
  \groupbottom{4}{3}
  \grouptop{5}{2}
  \groupbottom{5}{2}
  \setclef{11}{0}  % \treble doesn't work
  \setclef{10}{0}
  \setclef{9}{\bass}
  \setclef{8}{\bass}
  \setclef{7}{\bass}
  \setclef{6}{\bass}
  \setclef{5}{\bass}
  \setclefsymbol{4}{\drumclef}
  \setclefsymbol{3}{\drumclef}
  \setclefsymbol{2}{\drumclef}
  \setclefsymbol{1}{\empty}
  \setsign{4}{0}
  \setsign{3}{0}
  \setsign{2}{0}
  \setsign{1}{0}
  \setname{11}{Kotekan: \hfill Sangsih~}
  \setname{10}{Kotekan: \hfill Polos~}
  \setname{9}{Melody: \hfill Gangsa~}
  \setname{8}{\hfill Jublag~}
  \setname{7}{\hfill Jegog~}
  \setname{6}{Gongs: \hfill Kempur~}
  \setname{5}{Gongs: \hfill Gong~}
  \setname{4}{\hfill Kempli~}
  \setname{3}{\hfill Cengceng~}
  \setname{2}{\hfill \KendangLabel}
  \setname{1}{\hfill Counting~}
  \setlines{4}{1}
  \setlines{3}{1}
  \setlines{2}{1}
  \setlines{1}{0}
  \setinterinstrument{9}{3\Interligne}
  \setinterinstrument{6}{3\Interligne}
  \setinterinstrument{4}{3\Interligne}
  \setinterinstrument{2}{3\Interligne}
  % \sepbarrules
  \nobarnumbers
  \startextract
  % \startpiece
  %%%
  %%% Beat 1
  %%%
  \notes%
    \raise2\Interligne\hbox{1}\bsk&%
    \ibbu0{j}0\qb0{jhj}\tbbu0\tbu0\qb0{j}\bsk\bsk\bsk\bsk\bsk\bsk&%
    \ibbu0{i}0\xqb0{ii}\lsf{i}\xqb0{i}\tbbu0\tbu0\xqb0{i}\bsk\bsk\bsk\bsk\bsk\bsk&%
    \qu{i}\bsk\bsk\bsk&%
    \bsk\bsk\islurd0{B}\sk\sk\tslur0{D}\hup{D}\bsk\bsk\bsk&%
    \pause\bsk\bsk\bsk&%
    \bsk\bsk\islurd0{C}\sk\sk\tslur0{G}\hup{G}\bsk\bsk\bsk&%
    \bsk\bsk\isluru0{d}\sk\sk\tslur0{N}\ql{N}\bsk\bsk\bsk&%
    \ql{c}\bsk\bsk&%
    \cClXXxX{k}{0}{k}{l}{k}\bfour&%
    \cClxXXx{n}{1}{n}{o}&%
  \enotes%
  %%%
  %%% Beat 2
  %%%
  \notes%
    \raise2\Interligne\hbox{2}\bsk&%
    \ibbu0{j}0\qb0{h}\tbbu0\raise\Interligne\hbox{\musixchar117}\qb0{j}\qs\tbbu0\tbu0\qb0{j}\bsk\bsk\bsk\bsk&%
    \ibbu0{i}0\xqb0{ii}\lsf{i}\xqb0{i}\tbbu0\tbu0\xqb0{i}\bsk\bsk\bsk\bsk\bsk\bsk&%
    \qu{i}\bsk&%
    &%
    &%
    &%
    \hl{a}\bsk&%
    \ql{a}\bsk&%
    \cClxXXx{k}{0}{l}{k}\bfour&%
    \cClXXxX{n}{1}{o}{n}{o}&%
  \enotes%
  %%%
  %%% Beat 3
  %%%
  \notes%
    \raise2\Interligne\hbox{3}\bsk&%
    \ibbu0{j}0\qb0{hjj}\tbbu0\tbu0\qb0{h}\bsk\bsk\bsk\bsk&%
    \ibbu0{i}0\xqb0{ii}\lsf{i}\xqb0{i}\tbbu0\tbu0\xqb0{i}\bsk\bsk\bsk\bsk\bsk\bsk&%
    \qu{i}\bsk&%
    &%
    &%
    &%
    &%
    \ql{d}\bsk&%
    \cClXXXx{k}{0}{l}{k}{l}\bfour&%
    \cClXxXX{n}{1}{n}{n}{o}&%
  \enotes%
  %%%
  %%% Beat 4
  %%%
  \notes%
    \raise2\Interligne\hbox{4}\bsk&%
    \ibbu0{j}0\qb0{jhj}\tbbu0\tbu0\qb0{h}\bsk\bsk\bsk\bsk&%
    \ibbu0{i}0\xqb0{ii}\lsf{i}\xqb0{i}\tbbu0\tbu0\xqb0{i}\bsk\bsk\bsk\bsk\bsk\bsk&%
    \qu{i}\bsk&%
    \wh{D}\bsk&%
    &%
    \wh{J}\bsk&%
    \hl{c}\bsk&%
    \ql{c}\bsk&%
    \cClXXXx{k}{0}{k}{l}{k}\bfour&%
    \cClxXxX{n}{1}{n}{o}&%
  \enotes%
  %%%
  %%% Beat 5
  %%%
  \notes%
    \raise2\Interligne\hbox{5}\bsk&%
    \ibbu0{j}0\qb0{jhj}\tbbu0\tbu0\qb0{j}\bsk\bsk\bsk\bsk&%
    \ibbu0{i}0\xqb0{ii}\lsf{i}\xqb0{i}\tbbu0\tbu0\xqb0{i}\bsk\bsk\bsk\bsk\bsk\bsk&%
    \qu{i}\bsk&%
    &%
    \hu{H}\bsk&%
    &%
    &%
    \ql{d}\bsk&%
    \cClXXxX{k}{0}{l}{k}{l}\bfour&%
    \cClXxXX{n}{1}{n}{o}{n}&%
  \enotes%
  %%%
  %%% Beat 6
  %%%
  \notes%
    \raise2\Interligne\hbox{6}\bsk&%
    \ibbu0{j}0\qb0{h}\tbbu0\raise\Interligne\hbox{\musixchar117}\qb0{j}\qs\tbbu0\tbu0\qb0{j}\bsk\bsk\bsk\bsk&%
    \ibbu0{i}0\xqb0{ii}\lsf{i}\xqb0{i}\tbbu0\tbu0\xqb0{i}\bsk\bsk\bsk\bsk\bsk\bsk&%
    \qu{i}\bsk&%
    &%
    &%
    &%
    \hl{a}\bsk&%
    \ql{a}\bsk&%
    \cClXxXX{k}{0}{k}{l}{k}\bfour&%
    \cClxXXx{n}{1}{o}{n}&%
  \enotes%
  %%%
  %%% Beat 7
  %%%
  \notes%
    \raise2\Interligne\hbox{7}\bsk&%
    \ibbu0{j}0\qb0{hjj}\tbbu0\tbu0\qb0{h}\bsk\bsk\bsk\bsk&%
    \ibbu0{i}0\xqb0{ii}\lsf{i}\xqb0{i}\tbbu0\tbu0\xqb0{i}\bsk\bsk\bsk\bsk\bsk\bsk&%
    \qu{i}\bsk&%
    &%
    \qu{H}&%
    &%
    &%
    \ql{c}\bsk&%
    \cClxXXx{k}{0}{l}{k}\bfour&%
    \cClXXxX{n}{1}{o}{n}{o}&%
  \enotes%
  %%%
  %%% Beat 8
  %%%
  \notes%
    \raise2\Interligne\hbox{8}\bsk&%
    \ibbu0{j}0\qb0{jhj}\tbbu0\tbu0\qb0{h}\bsk\bsk\bsk\bsk&%
    \ibbu0{i}0\xqb0{ii}\lsf{i}\xqb0{i}\tbbu0\tbu0\xqb0{i}\bsk\bsk\bsk\bsk\bsk\bsk&%
    \qu{i}\bsk&%
    \islurd0{D}\qu{D}\sk\sk\tslur0{B}\bsk\bsk\bsk&%
    \qp&%
    \islurd0{G}\qu{G}\sk\sk\tslur0{C}\bsk\bsk\bsk&%
    \isluru0{N}\ql{N}\sk\sk\tslur0{d}\bsk\bsk\bsk&%
    \ql{N}\bsk&%
    \cClXxXx{k}{0}{l}{l}\bfour&%
    \cClXxXX{n}{1}{n}{n}{o}&%
  \enotes%
  %%%
  %%% Repeat signs
  %%%
  \setrightrepeat
  % \endpiece
  \endextract
\end{music}

\vspace*{5em}

\noindent
\begin{tabular}{r@{~}r@{~}l}
Kendang: & Right hand -- & with mallet \\
         & Left hand -- & normal \\
         & \raisebox{0.5ex}{\musixchar117}~~~-- & dead stroke \\
\end{tabular}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\bibliographystyle{plain}
%\bibliography{references,hkucs,score,hyperlink,dictionary}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%