Allow wavetable alias above 20 kHz
This commit is contained in:
parent
e14c51e8da
commit
720ecf9b00
2 changed files with 4 additions and 1 deletions
|
|
@ -95,6 +95,7 @@ namespace config {
|
||||||
constexpr int maxEffectBuses { 256 };
|
constexpr int maxEffectBuses { 256 };
|
||||||
// Wavetable constants; amplitude values are matched to reference
|
// Wavetable constants; amplitude values are matched to reference
|
||||||
static constexpr unsigned tableSize = 1024;
|
static constexpr unsigned tableSize = 1024;
|
||||||
|
static constexpr double tableRefSampleRate = 44100.0 * 1.1; // +10% aliasing permissivity
|
||||||
static constexpr double amplitudeSine = 0.625;
|
static constexpr double amplitudeSine = 0.625;
|
||||||
static constexpr double amplitudeTriangle = 0.625;
|
static constexpr double amplitudeTriangle = 0.625;
|
||||||
static constexpr double amplitudeSaw = 0.515;
|
static constexpr double amplitudeSaw = 0.515;
|
||||||
|
|
|
||||||
|
|
@ -214,7 +214,9 @@ public:
|
||||||
// the reference sample rate is the minimum value accepted by the DSP
|
// the reference sample rate is the minimum value accepted by the DSP
|
||||||
// system (most defavorable wrt. aliasing)
|
// system (most defavorable wrt. aliasing)
|
||||||
static WavetableMulti createForHarmonicProfile(
|
static WavetableMulti createForHarmonicProfile(
|
||||||
const HarmonicProfile& hp, double amplitude, unsigned tableSize = config::tableSize, double refSampleRate = 44100.0);
|
const HarmonicProfile& hp, double amplitude,
|
||||||
|
unsigned tableSize = config::tableSize,
|
||||||
|
double refSampleRate = config::tableRefSampleRate);
|
||||||
|
|
||||||
// get a tiny silent wavetable with null content for use with oscillators
|
// get a tiny silent wavetable with null content for use with oscillators
|
||||||
static const WavetableMulti* getSilenceWavetable();
|
static const WavetableMulti* getSilenceWavetable();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue