feat: fine ui control

This commit is contained in:
2023-09-10 12:03:48 +04:00
parent 71e1622627
commit 2d657eb801
4 changed files with 36 additions and 18 deletions

View File

@@ -32,7 +32,12 @@ class Oscillator {
float GetKey() { return m_key; }
void SetKey(float key);
float GetFine() { return m_fine; }
void SetFine(float fine) { assert(fine >= -2.f && fine <= 2.f); m_fine = fine; }
void SetFine(float fine) {
if (fine != m_fine) {
assert(fine >= -2.f && fine <= 2.f);
m_fine = fine;
}
}
void Reset();
float Process();
};