adpcmvarmono.dsp

Play a variable-rate compressed 4-bit Intel/DVI format sample.

Function

This instrument plays a variable rate sample that has been previously compressed to a 4-bit Intel/DVI format. Run the SoundHack program to compress a sound sample from 16 bits to 4 bits (Intel/DVI format). This instrument plays this compressed sample, and it uses the decodeadpcm.dsp library routine to do the necessary decompression.

Knobs

Frequency
Frequency in fixed point phase increment in the range of 0..$8000. $8000 equals the normal sample rate, with 1 sample per frame. Defaults to $2000 which is 1/4 normal rate.
Amplitude
0..$7FFF. Defaults to $7FFF.

Outputs

Output

Input FIFOs

InFIFO

Resources

Ticks: 108

Code: 70 words

Implementation

V24

Notes

Unlike other sample player instruments this one doesn't support playing the sample above the system sample rate.

See Also

adpcmmono.dsp, decodeadpcm.dsp, dcsqxdvarmono.dsp, sampler.dsp