Csound Csound-dev Csound-tekno Search About

Re: Gens 22 and 23 (Re: Query from the Summer Solstice)

Date1998-12-22 11:04
FromBob Douglas
SubjectRe: Gens 22 and 23 (Re: Query from the Summer Solstice)
Thanks Rasmus. I wasn't actually after a GEN that read into a function table
from an audio file, because that has been possible for some time with GEN01.
GEN23 is perfect for my needs because it reads in from a plain ASCII text file.

Bob Douglas

rasmus ekman wrote:
> 
>  wrote:
> > One can read an audio file direct into a table with GEN 23, one of
> > Gabriel's enhancements.  Added in v3.49
> 
> That would have been Gen 22. But this has not been announced
> in the version notes, and it is not in the sources!
> 
>  wrote:
> > Is there a way of reading data into a function table directly from a
> > pre-existing external ASCII file ?
> 
> Gen 23, documented in Version3_49.Notes in Bath/Montreal
> subdirectory "dream/newest".
> 
> Regards,
> 
>         re
> 
> GEN23
> 
> This subroutine reads numeric values from an external ascii file
> f# time size -23 "filename.txt"
> 
> The 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.
> Also words that contains non-numeric characters can be used as
> comments since they are ignored.
> All characters following ';' (comment) are ignored until next