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/