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

[sc-users] retrieve samples from a buffer in the server?



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/