Skip to content

Commit

Permalink
AudioSTK
Browse files Browse the repository at this point in the history
  • Loading branch information
pschatzmann committed Jun 28, 2024
1 parent 154ec64 commit b070b92
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions src/AudioLibs/AudioSTK.h
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ class STKChorus : public AudioEffect, public stk::Chorus {
virtual effect_t process(effect_t in) {
// just convert between int16 and float
float value = static_cast<float>(in) / 32767.0;
return tick(value) * 32767.0;
return stk::Chorus::tick(value) * 32767.0;
}
};

Expand All @@ -171,7 +171,7 @@ class STKEcho : public AudioEffect, public stk::Echo {
virtual effect_t process(effect_t in) {
// just convert between int16 and float
float value = static_cast<float>(in) / 32767.0;
return tick(value) * 32767.0;
return stk::Echo::tick(value) * 32767.0;
}
};

Expand All @@ -188,14 +188,10 @@ class STKFreeVerb : public AudioEffect, public stk::FreeVerb {
AudioEffect* clone() override{
return new STKFreeVerb(*this);
}
StkFloat tick (StkFloat input, unsigned int channel=0) override
{
return FreeVerb::tick(input, input, channel);
}
virtual effect_t process(effect_t in) {
// just convert between int16 and float
float value = static_cast<float>(in) / 32767.0;
return tick(value) * 32767.0;
return stk::FreeVerb::tick(value) * 32767.0;
}
};

Expand All @@ -216,7 +212,7 @@ class STKChowningReverb : public AudioEffect, public stk::JCRev {
virtual effect_t process(effect_t in) {
// just convert between int16 and float
float value = static_cast<float>(in) / 32767.0;
return tick(value) * 32767.0;
return stk::JCRev::tick(value) * 32767.0;
}
};

Expand All @@ -236,7 +232,7 @@ class STKNReverb : public AudioEffect, public stk::NRev {
virtual effect_t process(effect_t in) {
// just convert between int16 and float
float value = static_cast<float>(in) / 32767.0;
return tick(value) * 32767.0;
return stk::NRev::tick(value) * 32767.0;
}
};

Expand All @@ -256,7 +252,7 @@ class STKPerryReverb : public AudioEffect, public stk::PRCRev {
virtual effect_t process(effect_t in) {
// just convert between int16 and float
float value = static_cast<float>(in) / 32767.0;
return tick(value) * 32767.0;
return stk::PRCRev::tick(value) * 32767.0;
}
};

Expand All @@ -278,7 +274,7 @@ class STKLentPitShift : public AudioEffect, public stk::LentPitShift {
virtual effect_t process(effect_t in) {
// just convert between int16 and float
float value = static_cast<float>(in) / 32767.0;
return tick(value) * 32767.0;
return stk::LentPitShift::tick(value) * 32767.0;
}
};

Expand All @@ -300,7 +296,7 @@ class STKPitShift : public AudioEffect, public stk::PitShift {
virtual effect_t process(effect_t in) {
// just convert between int16 and float
float value = static_cast<float>(in) / 32767.0;
return tick(value) * 32767.0;
return stk::PitShift::tick(value) * 32767.0;
}
};

Expand Down

0 comments on commit b070b92

Please sign in to comment.