# Hi, # There are SR (sample rate) samples for one second of sound. For example, for CD quality SR = 44100 samples/second # This says 1 second -> SR samples. => 1 sample -> 1/SR seconds => x samples -> x/SR seconds. (time = x / sampling period) # An example: 128 samples for SR=44100 is 128/44100 seconds long which is 0.0029... sec and it is equal to 2.902 msecs. -ugur guney- On Mon, Jun 2, 2008 at 5:53 PM, David Akbari wrote: > Hi List, > > I know this is a trivial question but I must be having a brain slump today... > > My question is, what is the formula for converting raw sample index to > a real time value ie. secs/ms?? > > Let 'x' be the sample index; > > Is it, time = x * sampling period (ie. ksmps) ?? > > > Thank you for your time and consideration, > > David Akbari > > > Send bugs reports to this list. > To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" >