<div class="ugen">
<h3><a name="sndbuf" class="heading"></a></h3>Here you go. I think this is what you need. WvIn seems quite simplistic
compared to SndBuf. I can&#39;t really see why anyone would use it.<br><br>Kas.<br><br><br><h3><a name="sndbuf" class="heading">[ugen]</a>: <span class="name">SndBuf</span> </h3>
<div class="comments"><ul><li> sound buffer ( now interpolating ) </li><li> reads from a variety of file formats</li><li> see examples: <a href="http://chuck.cs.princeton.edu/doc/examples/basic/sndbuf.ck">sndbuf.ck</a></li>
</ul></div>

<div class="members">
<i>(control parameters)</i>
<ul><li><b>.read</b> - ( string , WRITE only ) - <span class="comment">loads file for reading</span></li><li style="color: rgb(255, 0, 0);"><b>.chunks - ( int, READ/WRITE ) - <span class="comment">size of chunk (# of frames) to read on-demand; 0 implies entire file, default; must be set before reading to take effect.</span></b></li>
<li><b>.samples</b> - ( int , READ only ) - <span class="comment">get number of samples</span></li><li><b>.length</b> - ( dur, READ only ) - <span class="comment">get length as duration</span></li><li><b>.channels</b> - ( int , READ only ) - <span class="comment">get number of channels</span></li>
<li><b>.pos</b> - ( int , READ/WRITE ) - <span class="comment">set position ( 0 &lt; p &lt; .samples ) </span></li><li><b>.rate</b> - ( float , READ/WRITE ) - <span class="comment">set/get playback rate ( relative to file&#39;s natural speed ) </span></li>
<li><b>.interp</b> - ( int , READ/WRITE ) - <span class="comment">set/get interpolation ( 0=drop, 1=linear, 2=sinc )</span></li><li><b>.loop</b> - ( int , READ/WRITE ) - <span class="comment">toggle looping </span></li><li>
<b>.freq</b> - ( float , READ/WRITE ) - <span class="comment">set/get loop rate ( file loops / second ) </span></li><li><b>.phase</b> - ( float , READ/WRITE ) - <span class="comment">set/get phase position ( 0-1 )</span></li>
<li><b>.channel</b> - ( int , READ/WRITE ) - <span class="comment">sel/get channel ( 0 &lt; p &lt; .channels )</span></li><li><b>.phaseOffset</b> - ( float , READ/WRITE ) - <span class="comment">set/get a phase offset</span></li>
<li><b>.write</b> - ( string , WRITE only ) - <span class="comment">loads a file for writing ( or not ) </span></li></ul><br><br></div>
</div>