[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-users] readChannels bug ?
right,
I am trying to read a single channel into both
channels of a stereo buffer,
it works with the first channel of a stereo file,
but not with the first channel of a mono file.
or am I being stupid?
>
> Am 26.12.2007 um 01:01 schrieb Zlatko:
>
> > Can anyone confirm ?
>
>
> (
> var sf;
> sf = SoundFile.new;
> if ( sf.openRead("sounds/a11wlk01.wav") ){
> sf.readHeaderAsString.postln;
> sf.close;
> };
> )
>
>
>
> There is only one channel in that file !
> Peace, sw
>
>
>
>
>
>
>
>
> >
> >
> > b = Buffer.readChannel(s, "sounds/a11wlk01.wav", channels: [0]);
> > b.plot; //ok
> >
> > b = Buffer.readChannel(s, "sounds/SinedPink.aiff", channels: [0,0]);
> > b.plot; //ok
> >
> > b = Buffer.readChannel(s, "sounds/a11wlk01.wav", channels: [0,0]);
> > b.plot; //not ok
> >
> > Please post the actual fix, beacuse I am working with a build I
> > cannot rebuild, unless Jan commits the .speak fix !
> >
> > thanx
> >
> > Zlatko
> >
>
>