[sc-users] Stereo Diskin
TomD
tomdiscus at cegetel.net
Sun Dec 3 01:20:26 PST 2006
OK it was not necessary (but why this result anyway ?...). DiskIn
can take multichannel buffers and output them to two channels.
Le 3 déc. 06 à 00:23, TomD a écrit :
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.create.ucsb.edu/pipermail/sc-users/attachments/20061203/07b4c8a8/attachment-0001.htm
More information about the sc-users
mailing list