If is an input (audio) signal between -1 and 1, it
will have to be:
- offset: so that it is positive:
(range: 0 to 2)
- scaled: so that it is in range of wavetable size:
Pd's phasor~ is between 0 and 1, so only needs to be scaled by
.
If index exceeds bounds (
), we may
- clip the input by substituting 0 or for any
integer that is , or , respectively.
- wrap the input around to the end if index , or to the
beginning if index , creating a circular wavetable.
Problem remains: values are not integers!
``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>