fix: apply format
This commit is contained in:
10
src/Ramp.cpp
10
src/Ramp.cpp
@@ -6,13 +6,13 @@ Ramp::Ramp(float starting_level, float sample_rate) {
|
||||
m_sample_rate = sample_rate;
|
||||
}
|
||||
|
||||
Ramp::~Ramp() {
|
||||
}
|
||||
Ramp::~Ramp() {}
|
||||
|
||||
void Ramp::RampTo(float val, float time) {
|
||||
m_increment = (val - m_level) / (m_sample_rate * time);
|
||||
m_counter = (int)(m_sample_rate * time);
|
||||
write_log("Ramping from: %.1f to: %.1f by: %lf for: %d\n", m_level, val, m_increment, m_counter);
|
||||
write_log("Ramping from: %.1f to: %.1f by: %lf for: %d\n", m_level, val,
|
||||
m_increment, m_counter);
|
||||
}
|
||||
|
||||
float Ramp::Process() {
|
||||
@@ -24,6 +24,4 @@ float Ramp::Process() {
|
||||
return m_level;
|
||||
}
|
||||
|
||||
bool Ramp::IsCompleted() {
|
||||
return m_counter == 0;
|
||||
}
|
||||
bool Ramp::IsCompleted() { return m_counter == 0; }
|
||||
Reference in New Issue
Block a user