From CSWiki
//ugens
SndBuf buf;
LiSa lisa => dac;
//change this path to your own sample
"/Applications/Max5/examples/sounds/cello-f2.aif" => buf.read;
//set lisa buffer size to sample size
( buf.samples() / buf.channels() )::samp => lisa.duration;
//transfer values from SndBuf to LiSa
for ( 0 => int i; i < buf.samples() / buf.channels(); i++ ) {
(buf.valueAt(i * buf.channels()), i::samp) => lisa.valueAt;
}
//party on...
1 => lisa.play;
2. => lisa.rate;
//hang on until it's done...
lisa.duration() * 0.5 => now;