mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:27:45 +00:00
Piano: Make decay more accurate
1. Make decay sample-granular rather than buffer-granular You only have ~43 buffers per second which can make a jagged signal. 2. Calculate decay in milliseconds Decay is supposed to be a time value.
This commit is contained in:
parent
44c81ee9db
commit
421a340572
3 changed files with 21 additions and 12 deletions
|
@ -77,7 +77,8 @@ private:
|
|||
|
||||
int m_octave { 4 };
|
||||
int m_wave { first_wave };
|
||||
int m_decay { 0 };
|
||||
int m_decay;
|
||||
double m_decay_step;
|
||||
int m_delay { 0 };
|
||||
|
||||
int m_time { 0 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue