refactor: oscillator "process" method name
This commit is contained in:
@@ -45,7 +45,7 @@ void Oscillator::SetFreq(float freq) {
|
||||
m_phase_dt = (this->*m_dt_function)(freq);
|
||||
}
|
||||
|
||||
float Oscillator::GenerateSample() {
|
||||
float Oscillator::Process() {
|
||||
return (this->*m_osc_function)() * m_volume;
|
||||
}
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ void Synth::Trigger(Note input) {
|
||||
}
|
||||
|
||||
void Synth::apply_filter_lfo() {
|
||||
float dt = m_lfo->GenerateSample();
|
||||
float dt = m_lfo->Process();
|
||||
Filter* filter = (Filter*)m_effects[1];
|
||||
float freq = filter->GetFreq();
|
||||
//todo: check formula
|
||||
|
||||
Reference in New Issue
Block a user