The following now reject headerless files with an error, if the format parameter is -1: GEN01 diskin diskin2 soundin These opcodes have a new optional i-time flag (defaults to 1), if this is 0, the returned value will be zero for raw files: filelen filenchnls filesr On Saturday 03 June 2006 05:30, matt ingalls wrote: > Looks like soundin/diskin/diskin2/filelen/file/etc > treats ANY file as a soundfile > > for instance, > isr filesr "textfile.txt" > > returns the orc's sr. > > seems like all this is not good thing, at least by default. > but maybe it's a feature? > > soundin-family opcodes have the 'iformat' input, where > iformat defaults to 0 which means read the header, but if > no header then use the -o format. > > i would prefer an option to use the header, but if no header > is found, throw an error. i think this to be the default option, but > could live with having to specify it. _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net