Sampler Parameters

Given a sampling rate of $ f_s$ and a table length of $ N$ samples, the duration of the table is

   duration$\displaystyle = \frac{N}{f_s}$    seconds

To read the table without changing pitch or length, the period of the phasor is the duration of the table:

$\displaystyle T_p = \frac{N}{f_s}$    seconds

The corresponding frequency of the phasor is

$\displaystyle f_p = \frac{1}{T_p} = \frac{f_s}{N}
$

To change sounding frequency by a factor of $ t$:

$\displaystyle f_p = t\frac{f_s}{N}
$

$ h$ semitones above/below the original frequency is a transposition factor of

$\displaystyle t = 2^{\pm h/12}
$


``Music 171: Wavetables and Samplers'' by Tamara Smyth, Department of Music, University of California, San Diego (UCSD).
Download PDF version (wavetables.pdf)
Download compressed PostScript version (wavetables.ps.gz)
Download PDF `4 up' version (wavetables_4up.pdf)
Download compressed PostScript `4 up' version (wavetables_4up.ps.gz)

Copyright © 2019-10-15 by Tamara Smyth.
Please email errata, comments, and suggestions to Tamara Smyth<trsmyth@ucsd.edu>