Csound Csound-dev Csound-tekno Search About

Re: Re; GEN01 and format=0

Date1998-02-04 02:11
Frompete moss
SubjectRe: Re; GEN01 and format=0
for the file size, you should either set the file size to a power of two
larger than the file, or set the size to 0, and the file size will be
read from the .wav header.  but i think if you do the latter, you can
only use the ftable in loscil.  read up on that in the manual

pete



A. Archias wrote:

>  Hello;
>   Does anyone know why an 'illegal table length' occurs using GEN1 if
> I try to read in a 'name.wav' file, set the format =0. And
> then set the length in the f statement = to the exact number
> of samples in the wav file, and WAV box is checked in the winsound
> field, Or if you set the format=0 in GEN01 is it expecting to read
> the sample format from the header of a 'AIFF' file only , so '.wav'
>  file into a table unit is not an option?
>
>                             Thks for Comment
>                             sorry if Im wordy
>                                          Andy