| 1 | |
| 2 | <refentry id="csb64enc"> |
| 3 | <refentryinfo><title>Utilities</title></refentryinfo> |
| 4 | <refmeta> |
| 5 | <refentrytitle>csb64enc</refentrytitle> |
| 6 | </refmeta> |
| 7 | |
| 8 | <refnamediv> |
| 9 | <refname>csb64enc</refname> |
| 10 | <refpurpose> |
| 11 | Converts a binary file to a Base64 encoded text file. |
| 12 | <indexterm id="IndexCsb64enc"><primary>csb64enc</primary></indexterm> |
| 13 | </refpurpose> |
| 14 | </refnamediv> |
| 15 | |
| 16 | <refsect1> |
| 17 | <title>Description</title> |
| 18 | <para> |
| 19 | The <emphasis>csb64enc</emphasis> utility generates a Base64 encoded text file from a binary file, such as a standard MIDI file (.mid) or any type of audio file. It is useful to convert a file in the format accepted by the <link linkend="CommandUnifile"><citetitle><CsFileB></citetitle></link> section of a csd file, to include the file within it. |
| 20 | </para> |
| 21 | |
| 22 | |
| 23 | </refsect1> |
| 24 | |
| 25 | <refsect1> |
| 26 | <title>Syntax</title> |
| 27 | <synopsis><command>csb64enc</command> [OPTIONS ... ] infile1 [ infile2 [ ... ]]</synopsis> |
| 28 | </refsect1> |
| 29 | |
| 30 | <refsect1> |
| 31 | <title>Initialization</title> |
| 32 | <para> |
| 33 | Flags: |
| 34 | <itemizedlist> |
| 35 | <listitem> |
| 36 | <para> |
| 37 | - <emphasis>w n</emphasis> |
| 38 | = set line width of the output file to n (default: 72) |
| 39 | </para> |
| 40 | </listitem> |
| 41 | |
| 42 | <listitem> |
| 43 | <para> |
| 44 | - <emphasis>o fname</emphasis> |
| 45 | = output file name (default: stdout) |
| 46 | </para> |
| 47 | </listitem> |
| 48 | </itemizedlist> |
| 49 | </para> |
| 50 | |
| 51 | </refsect1> |
| 52 | |
| 53 | <refsect1> |
| 54 | <title>Examples</title> |
| 55 | <para> |
| 56 | |
| 57 | <programlisting> |
| 58 | <emphasis>csb64enc</emphasis> -w 78 -o file.txt file.mid</programlisting> |
| 59 | |
| 60 | This command produces a Base64 encoded text file from the standard MIDI file <emphasis>file.mid</emphasis>. This file can now be pasted within a csd file's <link linkend="CommandUnifile"><citetitle><CsFileB></citetitle></link> section. |
| 61 | </para> |
| 62 | |
| 63 | </refsect1> |
| 64 | <refsect1> |
| 65 | <title>See also</title> |
| 66 | <para><link linkend="makecsd"><citetitle>makecsd</citetitle></link></para> |
| 67 | </refsect1> |
| 68 | |
| 69 | <refsect1> |
| 70 | <title>Credits</title> |
| 71 | <para>Author: Istvan Varga</para> |
| 72 | <para>Jan 2003</para> |
| 73 | </refsect1> |
| 74 | |
| 75 | </refentry> |