
I see the following functions in the Chuck manual, for SndBuf: .read - (string, WRITE only) - loads file for reading .chunks - (int, READ/WRITE) - size of chunk (# of frames) to read on-demand; 0 implies entire file, default; must be set before reading to take effect. .write - (string, WRITE only) - loads a file for writing (or not) .pos - (int, READ/WRITE) - set position (0
int j ; j < 10000 ; j++) {
j => a.pos ;
j => samp_pos ;
a.valueAt() => samp_val ;
// <<

Hi Laurie, Its not documented but SndBuf.valueAt() actually takes an integer argument, which is the buffer position of the sample you are trying to take the value of. So a.valueAt( a.pos ) will give you the sample at the current buffer position. Also, it returns a float. Im not sure why it is documented like it is on the website; we'll be sure to make the docs more clear on that soon. spencer On Dec 3, 2006, at 11:48 PM, Laurie Hollander wrote:

hi spencer i'd really love to see come clearer docs on sndbuf myself:) i havent touched chuck since that last little issue i had with it. i do miss chuck. but i want to learn to sample with it. not really much of a synth fanatic. i sample my synths then throw them into my sampler :) Spencer Salazar wrote:
participants (3)
-
Laurie Hollander
-
Malik Martin
-
Spencer Salazar