Example

This example shows the main possibilities of using the MSDL for controlling a synthesis process. Note the different kind of Instruments used: the first two have already been defined and included in the synthesizer standard bank, the next two are loaded from an Instrument Definition File during run-time, and the last one is a single SDIF File containing any kind of information accepted by the SDIF File Format [Schwarz and Wright, 2000].

 


\begin{spacing}{0.8}
\texttt{\footnotesize /We initialize global information rel...
...core such as tempo or meter (note that these }{\footnotesize\par
}
\end{spacing}

/parameters are just initial values as they can be later on changed from within the score body.


\begin{spacing}{0.8}
\texttt{\footnotesize Score\_Info\{}{\footnotesize\par
}
\p...
...lready in the standard bank, the next two are}{\footnotesize\par
}
\end{spacing}

/loaded from their instrument definition file located elsewhere


\begin{spacing}{0.8}
\texttt{\footnotesize Instrument\_Info\{}{\footnotesize\par...
... to instruments and generators in a much more}{\footnotesize\par
}
\end{spacing}

/convenient way


\begin{spacing}{0.8}
\texttt{\footnotesize Def instrument a=piano}{\footnotesize...
...h
happens to be the first key in the piano). }{\footnotesize\par
}
\end{spacing}

/The message is sent in the second quarter-note bar one


\begin{spacing}{0.8}
\texttt{\footnotesize\char93 01:01:02.04 a1 Pitch:C\char93 ...
...ize\par
}
\par
\texttt{\footnotesize end} \\
{\footnotesize\par
}
\end{spacing}



2004-10-18