Skip to content

Commit

Permalink
Test airwindows amps in Hades
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiashienzsch committed Feb 16, 2024
1 parent e908525 commit 288589d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
10 changes: 5 additions & 5 deletions lib/grit/eurorack/hades.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@ auto Hades::Amp::prepare(float sampleRate) -> void
auto Hades::Amp::operator()(float sample) -> float
{
switch (_index) {
case TanhIndex: return _tanh(sample);
case HardIndex: return _hard(sample);
case FullWaveIndex: return _fullWave(sample);
case HalfWaveIndex: return _halfWave(sample);
case DiodeIndex: return _diode(sample);
// case TanhIndex: return _tanh(sample);
// case HardIndex: return _hard(sample);
// case FullWaveIndex: return _fullWave(sample);
// case HalfWaveIndex: return _halfWave(sample);
// case DiodeIndex: return _diode(sample);
case FireAmpIndex: return _fireAmp(sample);
case GrindAmpIndex: return _grindAmp(sample);
default: break;
Expand Down
22 changes: 11 additions & 11 deletions lib/grit/eurorack/hades.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,22 +70,22 @@ struct Hades
private:
enum Index : int
{
TanhIndex = 0,
HardIndex,
FullWaveIndex,
HalfWaveIndex,
DiodeIndex,
// TanhIndex = 0,
// HardIndex,
// FullWaveIndex,
// HalfWaveIndex,
// DiodeIndex,
FireAmpIndex,
GrindAmpIndex,
MaxIndex,
};

Index _index{TanhIndex};
TanhClipper<float> _tanh{};
HardClipper<float> _hard{};
FullWaveRectifier<float> _fullWave{};
HalfWaveRectifier<float> _halfWave{};
DiodeRectifier<float> _diode{};
Index _index{FireAmpIndex};
// TanhClipper<float> _tanh{};
// HardClipper<float> _hard{};
// FullWaveRectifier<float> _fullWave{};
// HalfWaveRectifier<float> _halfWave{};
// DiodeRectifier<float> _diode{};
AirWindowsFireAmp<float> _fireAmp{};
AirWindowsGrindAmp<float> _grindAmp{};
};
Expand Down

0 comments on commit 288589d

Please sign in to comment.