I have used this code sometimes for one-shot sample playback, if that's what you're after. Sfname strget p5 ifno chnget Sfname p3 = ftlen(ifno) /sr ; one shot sample playback a1 loscil iamp, 1, ifno, 1 If you just want to be notified after ftlen(ifno)/sr seconds, then you may use: kLength = ftlen(ifno) /sr ; one shot sample playback kTime timeinsts kFlag = (kTime>kLength?1:0) and send kFlag to outvalue or similar. Oeyvind 2007/8/15, Greg Thompson : > > ar1 [,ar2] loscil xamp, kcps, ifn [, ibas] [, imod1] [, ibeg1] [, iend1] \ > [, imod2] [, ibeg2] [, iend2] > > > Does the kcps depend on the number of channels the file has? > > It seems to me when playing a stereo file - I have to pass 0.5 rather than 1 > to get it to play at normal speed. > > Is this true or am I missing something? > > Also - is there an easy / good way to be notified when it has finished > playing the sample? > > greg > >