[Cs-dev] soundin/diskin/info bug?
Date | 2006-06-03 04:30 |
From | matt ingalls |
Subject | [Cs-dev] soundin/diskin/info bug? |
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. -m _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2006-06-03 10:47 |
From | Istvan Varga |
Subject | Re: [Cs-dev] soundin/diskin/info bug? |
Attachments | None |
Date | 2006-06-03 12:51 |
From | Istvan Varga |
Subject | Re: [Cs-dev] soundin/diskin/info bug? |
Attachments | None |
Date | 2006-06-03 14:29 |
From | Andres Cabrera |
Subject | Re: [Cs-dev] soundin/diskin/info bug? |
Hi Istvan, Do you want me to document this, or are you already on it? Cheers, Andrés On Sat, 2006-06-03 at 13:51 +0200, Istvan Varga wrote: > 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 > https://lists.sourceforge.net/lists/listinfo/csound-devel > > _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listin |
Date | 2006-06-03 19:00 |
From | matt ingalls |
Subject | Re: [Cs-dev] soundin/diskin/info bug? |
Attachments | None None |
On Jun 3, 2006, at 2:47 AM, Istvan Varga wrote:
well one can always change the manual. and times have changed, 'raw' headerless soundfiles are rarely seen anymore, changing the defaults makes sense to me.. anyway, like i said, i can live with explicitly setting the '-1' flag. thanks, m |