[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sc-users] retrieve samples from a buffer in the server?
- To: sc-users@xxxxxxxxxxxxxxxx
- Subject: [sc-users] retrieve samples from a buffer in the server?
- From: padovani <josepadovani@xxxxxxxxxxxx>
- Date: Wed, 06 May 2009 00:55:43 -0300
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.br; h=Received:X-YMail-OSG:X-Yahoo-Newman-Property:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:Content-Type:Content-Transfer-Encoding; b=INOx+6USHcvbdgjibiK/YEksl6IGA7kxiFutKM8lbKbQMm+GZ2pbfs56C0O+stvDimlKYMcFc2nmP4+NeMjDduln7XdT3KJ6d0yc/6FzQOyWXypD+9bbbTXp7LBCdEOpIsT8m3p5FxuXTjfqzIz3MwP6cRoCpsEPfHeKf6oLSEs= ;
- List-id: SuperCollider users mailing list <sc-users.create.ucsb.edu>
- Reply-to: sc-users@xxxxxxxxxxxxxxxx
- Sender: owner-sc-users@xxxxxxxxxxxxxxxx
- User-agent: Thunderbird 2.0.0.21 (Macintosh/20090302)
Hi,
sorry if it is a stupid question (I am taking my first steps with SC):
Playing with wavetables from the VOsc example, I would like to retrieve
the data from the buffers that were created in the server...
I'm not sure what am I doing wrong, but I can't get any data (probably I
need to understand better the OSC messages to deal with buffers).
Here is the code from the VOsc example:
(
s = Server.local;
// allocate and fill tables 0 to 7
8.do({ arg i;
var n, a;
// allocate table
s.sendMsg(\b_alloc, i, 1024);
// generate array of harmonic amplitudes
n = (i+1)**2;
a = Array.fill(n, { arg j; ((n-j)/n).squared.round(0.001) });
// fill table
s.performList(\sendMsg, \b_gen, i, \sine1, 7, a);
});
)
and here is what I am trying to get the samples...
s.sendMsg(\b_get, 0, [0, 512]);
Thanks for any tips.
José
--
http://www.padovani.googlepages.com
_______________________________________________
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/