TR123e - EMCT Computing Final Project Version 1.0
Research Project Translation from gen~ to embedded Moog synth
Loading...
Searching...
No Matches
MoogFilterEnvelope.h
Go to the documentation of this file.
1
66
67#pragma once
68#include "ADSR.h"
69
112public:
141 MoogFilterEnvelope(float sampleRate);
142
182 void setADSR(float attackSec, float decaySec, float sustainLvl, float releaseSec);
183
218 void setEnvDepth(float depth);
219
258 void gate(int gateState, float velocity);
259
314 float process(float cutoffBase, float keyFollowValue);
315
316private:
331
344 float envDepth;
345};
346
void setEnvDepth(float depth)
Set envelope modulation depth for filter frequency control.
Definition MoogFilterEnvelope.cpp:75
ADSR envelope
Internal ADSR envelope generator instance.
Definition MoogFilterEnvelope.h:330
float process(float cutoffBase, float keyFollowValue)
Process envelope and generate filter cutoff frequency.
Definition MoogFilterEnvelope.cpp:111
void setADSR(float attackSec, float decaySec, float sustainLvl, float releaseSec)
Configure ADSR envelope timing parameters.
Definition MoogFilterEnvelope.cpp:60
void gate(int gateState, float velocity)
Trigger envelope gate with optional velocity sensitivity.
Definition MoogFilterEnvelope.cpp:89
float envDepth
Envelope modulation depth scaling factor.
Definition MoogFilterEnvelope.h:344
MoogFilterEnvelope(float sampleRate)
Construct filter envelope with audio system sample rate.
Definition MoogFilterEnvelope.cpp:23