GEN23GEN23GEN23
Reads numeric values from a text file.
Description
This subroutine reads numeric values from an external ASCII file.
Syntaxf # time size -23 "filename.txt"Initialization"filename.txt" -- numeric values contained in "filename.txt" (which indicates the complete pathname of the character file to be read), can be separated by spaces, tabs, newline characters or commas.
size -- number of points in the table. Must be a power of 2 , power of 2 + 1, or zero. If size = 0, table size is determined by the number of numeric values in filename.txt. (New in Csound version 3.57)
Note
All characters following ';', '#' (comment) or '<' (XML
tag from version 6.04) are ignored until next line (numbers too).
Examples
Here is an example of the GEN23 generator. It uses the file gen23.csd and spectrum.txt.
Example of the GEN23 generator.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.This is the diagram of the waveform of the GEN23 routine, as used in the example:f 2 0 128 -23 "spectrum.txt" - not normalized
f 2 0 128 -23 "spectrum.txt" - not normalized
CreditsAuthor: &namegabriel;ItalyFebruary, 1998New in Csound version 3.47. Comments starting with '#' are
ignored from Csound version 5.12.