Csound Csound-dev Csound-tekno Search About

[Cs-dev] soundin/diskin/info bug?

Date2006-06-03 04:30
Frommatt 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

Date2006-06-03 10:47
FromIstvan Varga
SubjectRe: [Cs-dev] soundin/diskin/info bug?
AttachmentsNone  

Date2006-06-03 12:51
FromIstvan Varga
SubjectRe: [Cs-dev] soundin/diskin/info bug?
AttachmentsNone  

Date2006-06-03 14:29
FromAndres Cabrera
SubjectRe: [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

Date2006-06-03 19:00
Frommatt ingalls
SubjectRe: [Cs-dev] soundin/diskin/info bug?
AttachmentsNone  None  

On Jun 3, 2006, at 2:47 AM, Istvan Varga wrote:

 Other than that, it would be an

incompatible change (which excludes changing the defaults), as

the opcode manuals explicitly state that if there is no header,



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