[sc-users] Stereo Diskin

TomD tomdiscus at cegetel.net
Sun Dec 3 02:42:13 PST 2006


Thanks to you all

Le 3 déc. 06 à 00:51, James Harkins a écrit :

> You shouldn't have multiple DiskIn's hitting the same buffer at the  
> same time.
>
> Say your file has 6 channels. DiskIn will return an array of 6  
> channels (I think OutputProxies, not totally sure).
>
> So if you want to output
>
> left = ch0 + ch2 + ch4
> right = ch1 + ch3 + ch5
>
> You would write Mix(DiskIn.ar(6, 0).clump(2))
>
> For
>
> left = ch0 + ch1 + ch2
> right = ch3 + ch4 + ch5
>
> -->  Mix(DiskIn.ar(6, 0).clump(3).lace(6).clump(2))
>
>
> IN GENERAL:
>
> If you want to use the same signal in a couple of places,
>
> --->>> assign it to a variable and reuse the variable <<<---
>
> DO NOT write the same ugen twice.
>
> hjh
>
> On Dec 2, 2006, at 6:23 PM, TomD wrote:
>
>> Some sounds seem to be read correctly but at looping happens on a  
>> little part of the sound at the end of the file...
>>
>> But the problem I got was in a programm of mine in wich Diskin  
>> Synth was writen like that :
>>
>> SynthDef("play-disk", {var mix;
>> mix = Mix.new([DiskIn.ar(6, 0), DiskIn.ar(6, 0)]);
>> Out.ar(0, mix)
>> }).send(s)
>>
>> ...to be able to get a stereo output from a multichannel soundfile  
>> recorded on the disk. In fact the way I "mix" creates a  
>> discontinuous reading of the file... (which deseapears with :
>>
>> mix = DiskIn.ar(2, 21);
>>
>> of course. I didn't see the problem came from that at first).
>>
>> So what's the problem with that formula :
>>
>> mix = Mix.new([DiskIn.ar(6, 0), DiskIn.ar(6, 0)]);
>>
>> ??
>>
>>
>> Le 2 déc. 06 à 23:16, TomD a écrit :
>>
>>> 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
>>>
>>> _______________________________________________
>>> 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
>
>
> : H. James Harkins
> : jamshark70 at dewdrop-world.net
> : http://www.dewdrop-world.net
> .::!:.:.......:.::........:..!.::.::...:..:...:.:.:.:..:
>
> "Come said the Muse,
> Sing me a song no poet has yet chanted,
> Sing me the universal."  -- Whitman
>
> _______________________________________________
> 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/20061203/5cb73b19/attachment-0001.htm


More information about the sc-users mailing list