sampler.dsp

Rate-variable sample player.

Function

This instrument is a rate-variable 16-bit mono sample player. It is identical to varmono16.dsp, except that you should use sampler.dsp if you are short on memory.

The instrument is limited to a pitch one octave above base pitch, if recorded at 44.1 kHz. If it is recorded at 22 kHz, the pitch can go two octaves up. A rate of 0x8000 corresponds to one data sample per DAC sample frame. 0xFFFF is the highest possible rate.

Knobs

Frequency - units are fixed point phase increment. $8000 equals the normal sample rate, with 1 sample per frame. Thus, you can go from zero to one octave above the original.

Amplitude - 0 => $7FFF

Inputs

None

Outputs

Output

Input FIFOs

InFIFO

Output FIFOs

None

Resources

Ticks = 36

N memory = 11 words