foutkSignal I/O:File I/Ofoutkfoutk
Outputs k-rate signals of an arbitrary number of channels to a specified file, in raw (headerless) format.
Descriptionfoutk outputs N k-rate signals to a specified file of N channels.
Syntaxfoutk ifilename, iformat, kout1 [, kout2, kout3,....,koutN]Initializationifilename -- the output file's name (in double-quotes).
iformat -- a flag to choose output file format (note: Csound versions older than 5.0 may only support formats 0 and 1):
0 - 32-bit floating point samples without header (binary PCM multichannel file)1 - 16-bit integers without header (binary PCM multichannel file)2 - 16-bit integers without header (binary PCM multichannel file)3 - u-law samples without header4 - 16-bit integers without header5 - 32-bit integers without header6 - 32-bit floats without header7 - 8-bit unsigned integers without header8 - 24-bit integers without header9 - 64-bit floats without headerPerformancekout1,...koutN -- control-rate signals to be written to the file. The expected range of the signals is determined by the selected sample format.
foutk operates in the same way as fout, but with k-rate signals. iformat can be set only in the range 0 to 9, or 0 to 1 with an old version of Csound.
Notice that fout and foutk can use either a string containing a file pathname, or a handle-number generated by fiopen. Whereas, with fouti and foutir, the target file can be only specified by means of a handle-number.
Examples
Here is an example of the foutk opcode. It uses the file foutk.csd.
Example of the foutk opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.
To avoid zipper noise, by discontinuities produced from complex envelope tracking, a lowpass filter could be used, to smooth the estimated envelope.
See alsoFile Input and OutputCreditsAuthor: &namegabriel;Italy1999New in Csound version 3.56