[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] Can't get GrainBuf to work.



I've updated the help file.

Josh

On Dec 29, 2008, at 5:03 AM, Stephan Wittwer wrote:


Am 29.12.2008 um 13:37 schrieb Batuhan Bozkurt:

Ah sorry, thats not it. I don't know why but it seems that GrainBuf works with mono files. So if you load your buffer with:

numChannels is for output channels, not buffer.

And you're right, it seems to take mono sound buffers only, like TGrains.
But for TGrains this is clearly documented.



b = Buffer.readChannel(s, "samples/ 13552__acclivity__Brook20Sec.wav", channels: 0);

it works as expected.

BB.

Batuhan Bozkurt wrote:
Hello Andy, the file is listed as stereo but you are giving 1 to the numChannels argument. IIRC this causes GrainBuf to fail silently. Didn't test now but that should be it.

Hope it helps,
BB

andy baxter wrote:
I've been trying out the granular synthesis examples, and I can't get GrainBuf to produce any sound. I've reduced the example from the help file to make it a bit simpler, as shown below, and it evaluates OK but produces no audible output.

(
b = Buffer.read(s, "samples/13552__acclivity__Brook20Sec.wav");
// a custom envelope
({
 Pan2.ar(GrainBuf.ar(1, Impulse.ar(10), 0.1 , b, 1,
     LFNoise2.kr(10).range(0, 1),
     2, 0, -1),0) ;
 }).play(s);
)

Am I doing this wrong?

The file is a 20 second sample of the sound of running water, from freesound.org (at http://www.freesound.org/samplesViewSingle.php?id=13552 )

andy


_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/



_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/



_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/


_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/

******************************************
/* 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

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/