| 1 | |
| 2 | <refentry id="makecsd"> |
| 3 | <refentryinfo><title>Utilities</title></refentryinfo> |
| 4 | <refmeta> |
| 5 | <refentrytitle>makecsd</refentrytitle> |
| 6 | </refmeta> |
| 7 | |
| 8 | <refnamediv> |
| 9 | <refname>makecsd</refname> |
| 10 | <refpurpose> |
| 11 | Creates a CSD file from the specified input files. |
| 12 | <indexterm id="IndexMakecsd"><primary>makecsd</primary></indexterm> |
| 13 | </refpurpose> |
| 14 | </refnamediv> |
| 15 | |
| 16 | <refsect1> |
| 17 | <title>Description</title> |
| 18 | <para> |
| 19 | Creates a CSD file from the specified input files. The first |
| 20 | input file that has a .orc extension (case is not significant) |
| 21 | is put to the <CsInstruments> section, and the first input |
| 22 | file that has a .sco extension becomes <CsScore>. Any |
| 23 | remaining files are Base64 encoded and added as <CsFileB> |
| 24 | tags. An empty <CsOptions> section is always added. |
| 25 | </para> |
| 26 | |
| 27 | <para> |
| 28 | |
| 29 | Some text filtering is performed on the orchestra and score file: |
| 30 | |
| 31 | <itemizedlist> |
| 32 | <listitem> |
| 33 | <para> |
| 34 | newlines are converted to the native format of the |
| 35 | system on which makecsd is being run. |
| 36 | </para> |
| 37 | </listitem> |
| 38 | |
| 39 | |
| 40 | <listitem> |
| 41 | <para> |
| 42 | blank lines are removed from the beginning and end of |
| 43 | files. |
| 44 | </para> |
| 45 | </listitem> |
| 46 | |
| 47 | <listitem> |
| 48 | <para> |
| 49 | any trailing whitespace is removed from the end of |
| 50 | lines. |
| 51 | </para> |
| 52 | </listitem> |
| 53 | |
| 54 | <listitem> |
| 55 | <para> |
| 56 | optionally, tabs can be expanded to spaces with an user |
| 57 | specified tabstop size. |
| 58 | </para> |
| 59 | </listitem> |
| 60 | |
| 61 | <listitem> |
| 62 | <para> |
| 63 | optionally, a MIDI file can be included. |
| 64 | </para> |
| 65 | </listitem> |
| 66 | |
| 67 | <listitem> |
| 68 | <para> |
| 69 | optionally, a Licence can be specified as |
| 70 | either a file or a common one. |
| 71 | </para> |
| 72 | </listitem> |
| 73 | |
| 74 | <listitem> |
| 75 | <para> |
| 76 | if required a score processor can be specified |
| 77 | for the <CsScore> section. |
| 78 | </para> |
| 79 | </listitem> |
| 80 | |
| 81 | </itemizedlist> |
| 82 | |
| 83 | </para> |
| 84 | |
| 85 | </refsect1> |
| 86 | |
| 87 | <refsect1> |
| 88 | <title>Syntax</title> |
| 89 | <synopsis><command>makecsd</command> [OPTIONS ... ] infile1 [ infile2 [ ... ]]</synopsis> |
| 90 | </refsect1> |
| 91 | |
| 92 | <refsect1> |
| 93 | <title>Initialization</title> |
| 94 | <para> |
| 95 | Flags: |
| 96 | <itemizedlist> |
| 97 | <listitem> |
| 98 | <para> |
| 99 | - <emphasis>t n</emphasis> |
| 100 | = expand tabs to spaces using tabstop size n (default: |
| 101 | disabled). This applies only to the orchestra and score |
| 102 | file. |
| 103 | </para> |
| 104 | </listitem> |
| 105 | |
| 106 | <listitem> |
| 107 | <para> |
| 108 | - <emphasis>w n</emphasis> |
| 109 | = set Base64 line width to n (default: 72). Note: the |
| 110 | orchestra and score are not wrapped. |
| 111 | </para> |
| 112 | </listitem> |
| 113 | |
| 114 | <listitem> |
| 115 | <para> |
| 116 | - <emphasis>o fname</emphasis> |
| 117 | = output file name (default: stdout) |
| 118 | </para> |
| 119 | </listitem> |
| 120 | |
| 121 | <listitem> |
| 122 | <para> |
| 123 | - <emphasis>m fname</emphasis> |
| 124 | = specify a MIDI file to include (default: none) |
| 125 | </para> |
| 126 | </listitem> |
| 127 | |
| 128 | <listitem> |
| 129 | <para> |
| 130 | - <emphasis>b progname</emphasis> |
| 131 | = specify the program to process the score (default: none) |
| 132 | </para> |
| 133 | </listitem> |
| 134 | |
| 135 | <listitem> |
| 136 | <para> |
| 137 | - <emphasis>L fname</emphasis> |
| 138 | = file name containing the licence text (default: none) |
| 139 | </para> |
| 140 | </listitem> |
| 141 | |
| 142 | <listitem> |
| 143 | <para> |
| 144 | - <emphasis>l integer</emphasis> |
| 145 | = specify a standard licence (default: none). |
| 146 | The ones available are: |
| 147 | <itemizedlist> |
| 148 | <listitem> 0: All rights reserved</listitem> |
| 149 | <listitem> 1: CC BY-NC-ND</listitem> |
| 150 | <listitem> 2: CC BY-NC-SA</listitem> |
| 151 | <listitem> 3: CC BY-NC</listitem> |
| 152 | <listitem> 4: CC BY-ND</listitem> |
| 153 | <listitem> 5: CC BY-SA</listitem> |
| 154 | <listitem> 6: CC BY</listitem> |
| 155 | <listitem> 7: Licenced under BSD</listitem> |
| 156 | </itemizedlist> |
| 157 | </para> |
| 158 | </listitem> |
| 159 | |
| 160 | </itemizedlist> |
| 161 | |
| 162 | </para> |
| 163 | |
| 164 | </refsect1> |
| 165 | |
| 166 | <refsect1> |
| 167 | <title>Examples</title> |
| 168 | <para> |
| 169 | |
| 170 | <programlisting> |
| 171 | <emphasis>makecsd</emphasis> -t 6 -w 78 -o file.csd file.mid file.orc file.sco sample.aif</programlisting> |
| 172 | |
| 173 | |
| 174 | This creates a CSD from file.orc and file.sco (tabs are |
| 175 | expanded to spaces assuming a tabstop size of 6 characters), |
| 176 | and file.mid and sample.aif are added as <CsFileB> tags |
| 177 | containing Base64 encoded data with a line width of 78 |
| 178 | characters. The output file is file.csd. |
| 179 | </para> |
| 180 | |
| 181 | </refsect1> |
| 182 | |
| 183 | <refsect1> |
| 184 | <title>Credits</title> |
| 185 | <para>Author: Istvan Varga</para> |
| 186 | <para>Jan 2003</para> |
| 187 | <para>Author: &namejohn;</para> |
| 188 | <para>Feb 2011</para> |
| 189 | <para>Options for MIDI, score processing and licence new in version 5.14</para> |
| 190 | </refsect1> |
| 191 | |
| 192 | </refentry> |