The csb64enc 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 <CsFileB> section of a csd file, to include the file within it.
csb64enc [OPTIONS ... ] infile1 [ infile2 [ ... ]]
- • - w n = set line width of the output file to n (default: 72)
- • - o fname = output file name (default: stdout)
csb64enc -w 78 -o file.txt file.mid
This command produces a Base64 encoded text file from the standard MIDI file file.mid. This file can now be pasted within a csd file's <CsFileB> section.
Author: Istvan Varga
MIT Media Lab
MIT Media Lab,