savemvsvfemv.dsp

# sawenvsvfenv.dsp

Sawtooth generator with amplitude and filter envelope.

### Function

This instrument is a simple sawtooth generator with two built-in envelopes to control amplitude and filter cutoff. It is a test instrument that we use to test the envelope code, but you may find it useful as a synthesizer voice.

### Knobs

Amplitude - 0 => $7FFF, final amplitude of voice

CutoffFreq - 0 => $2000, default $100. Currently nonlinear cutoff frequency of filter.

Frequency - If you call `TweakRawKnob()`, the units are phase increments, If you call `TweakKnob()`, the units are 16.16 fractional hertz.

Resonance - 1 / Q, 0 => $6000, default $1000

SawAmp - 0 => $4000, default $1000, amplitude of sawtooth feeding into filter

SVFEnvDepth - 0 => $7FFF, default $2000, Depth of filter envelope.

### Inputs

None

### Outputs

Output

### Input FIFOs

None

### Output FIFOs

None

### Resource

Ticks = 72

N memory = 82 words