| 1 | |
| 2 | <refentry id="undef"> |
| 3 | <indexterm id="IndexUndefMacros"><primary>macros</primary><secondary>orchestra</secondary></indexterm> |
| 4 | |
| 5 | <indexterm id="IndexUndefOrch"><primary>#undef</primary><secondary>orchestra</secondary></indexterm> |
| 6 | |
| 7 | <indexterm id="IndexUndef"><primary>#undef</primary></indexterm> |
| 8 | <refentryinfo><title>Orchestra Syntax:Macros</title></refentryinfo> |
| 9 | <refmeta> |
| 10 | <refentrytitle>#undef</refentrytitle> |
| 11 | </refmeta> |
| 12 | |
| 13 | |
| 14 | |
| 15 | <refnamediv> |
| 16 | <refname>#undef</refname> |
| 17 | |
| 18 | <refpurpose> |
| 19 | Un-defines a macro. |
| 20 | </refpurpose> |
| 21 | </refnamediv> |
| 22 | |
| 23 | <refsect1> |
| 24 | <title>Description</title> |
| 25 | <para> |
| 26 | Macros are textual replacements which are made in the orchestra as it is being read. The <link linkend="OrchMacros"><citetitle>orchestra macro system</citetitle></link> in Csound is a very simple one, and uses the characters # and $ to define and call macros. This can save typing, and can lead to a coherent structure and consistent style. This is similar to, but independent of, the <link linkend="ScoreMacros"><citetitle>macro system in the score language</citetitle></link>. |
| 27 | </para> |
| 28 | |
| 29 | <para> |
| 30 | <emphasis>#undef NAME</emphasis> -- undefines a macro name. If a macro is no longer required, it can be undefined with <emphasis>#undef NAME</emphasis>. |
| 31 | </para> |
| 32 | </refsect1> |
| 33 | |
| 34 | <refsect1> |
| 35 | <title>Syntax</title> |
| 36 | <synopsis><command>#undef</command> NAME</synopsis> |
| 37 | </refsect1> |
| 38 | |
| 39 | <refsect1> |
| 40 | <title>Performance</title> |
| 41 | <para> |
| 42 | Some care is needed with textual replacement macros, as they can sometimes do strange things. They take no notice of any meaning, so spaces are significant. This is why, unlike the C programming language, the definition has the replacement text surrounded by # characters. Used carefully, this simple macro system is a powerful concept, but it can be abused. |
| 43 | </para> |
| 44 | </refsect1> |
| 45 | |
| 46 | <refsect1> |
| 47 | <title>See also</title> |
| 48 | <para><link linkend="OrchMacros"><citetitle>Orchestra Macros</citetitle></link></para> |
| 49 | </refsect1> |
| 50 | |
| 51 | <refsect1> |
| 52 | <title>Credits</title> |
| 53 | <para> |
| 54 | <simplelist> |
| 55 | <member>Author: &namejohn;</member> |
| 56 | <member>University of Bath/Codemist Ltd.</member> |
| 57 | <member>Bath, UK</member> |
| 58 | <member>April 1998</member> |
| 59 | </simplelist> |
| 60 | </para> |
| 61 | |
| 62 | <para>New in Csound version 3.48</para> |
| 63 | </refsect1> |
| 64 | </refentry> |