Implement fade in to prevent Triple Osc from clicking (#5199)

This commit is contained in:
necrashter
2020-05-19 05:34:54 +03:00
committed by GitHub
parent b818234c15
commit 7f9b4c2401
4 changed files with 100 additions and 4 deletions

View File

@@ -132,6 +132,9 @@ public:
protected:
// fade in to prevent clicks
void applyFadeIn(sampleFrame * buf, NotePlayHandle * n);
// instruments may use this to apply a soft fade out at the end of
// notes - method does this only if really less or equal
// desiredReleaseFrames() frames are left

View File

@@ -49,6 +49,9 @@ public:
void * m_pluginData;
std::unique_ptr<BasicFilters<>> m_filter;
// length of the declicking fade in
fpp_t m_fadeInLength;
// specifies origin of NotePlayHandle
enum Origins
{