[sc-users] Stereo Diskin

TomD tomdiscus at cegetel.net
Sat Dec 2 23:16:17 PST 2006


After some experiments it depends of the sound (all aiff) I use. I  
don't know what changes form one to another for the moment, but some  
are read in a distorted way and other not (even long sound  
files !)... I'll try some other experiments and tell more.

Le 2 déc. 06 à 22:49, TomD a écrit :

>
>> Can you post code you may have problems with?
>
> Thanks : directly from the Help-file, but with stereo  
> specifications. In fact it reads discontinuously and "eats" some  
> parts of the sound on my computer (Powerbook G4 with OS X.4.8) :
>
> s.boot; // start the server
>
> (
> SynthDef("help-Diskin", { arg bufnum = 0;
> 	Out.ar(0, DiskIn.ar(2, bufnum));
> }).send(s)
> )
>
> // allocate a disk i/o buffer
> s.sendMsg("/b_alloc", 0, 65536, 2);
>
> // open an input file for this buffer, leave it open
> s.sendMsg("/b_read", 0, "sounds/XXXX.aif", 0, 65536, 0, 1);
>
> // create a diskin node
> s.sendMsg("/s_new", "help-Diskin", x = s.nextNodeID, 1, 1);
>
> s.sendMsg("/b_close", 0); // close the file (very important!)
>
>
> // again
> // don't need to reallocate and Synth is still reading
> s.sendMsg("/b_read", 0, "sounds/XXXX.aif", 0, 0, 0, 1);
>
> s.sendMsg("/n_free", x); // stop reading
>
> s.sendMsg("/b_close", 0); // close the file.
>
> s.sendMsg("/b_free", 0); // frees the buffer
>
>
>
>
>
> Le 2 déc. 06 à 08:08, Joshua Parmenter a écrit :
>
>> Hi Tom,
>>
>> i don't have any problems with stereo... just did a concert  
>> tonight with a number of stereo files and DiskIn without a glitch.
>>
>> Can you post code you may have problems with?
>>
>> Josh
>>
>> On Dec 1, 2006, at 5:02 PM, TomD wrote:
>>
>>> Hello everybody !
>>>
>>> Does Diskin have a problem with stereo sounds ? In my experiences  
>>> it always shortens (cut at about 3/4 of there length) sound  
>>> files..._______________________________________________
>>> sc-users mailing list
>>> sc-users at create.ucsb.edu
>>> http://www.create.ucsb.edu/mailman/listinfo/sc-users
>>
>> ******************************************
>> Joshua D. Parmenter
>> http://www.realizedsound.net/josh/
>>
>> “Every composer – at all times and in all cases – gives his own  
>> interpretation of how modern society is structured: whether  
>> actively or passively, consciously or unconsciously, he makes  
>> choices in this regard. He may be conservative or he may subject  
>> himself to continual renewal; or he may strive for a  
>> revolutionary, historical or social palingenesis." - Luigi Nono
>>
>>
>>
>> _______________________________________________
>> sc-users mailing list
>> sc-users at create.ucsb.edu
>> http://www.create.ucsb.edu/mailman/listinfo/sc-users
>
> _______________________________________________
> sc-users mailing list
> sc-users at create.ucsb.edu
> http://www.create.ucsb.edu/mailman/listinfo/sc-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.create.ucsb.edu/pipermail/sc-users/attachments/20061202/cf20684b/attachment-0001.htm


More information about the sc-users mailing list