Skip to content

Commit c265301

Browse files
committed
cleanup
1 parent 7716b90 commit c265301

File tree

4 files changed

+7
-13
lines changed

4 files changed

+7
-13
lines changed

source/DSP/GainedOscillator.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,6 @@ class GainedOscillator
150150
bool isActive = true;
151151

152152
T lastActiveGain {};
153-
154-
//TODO: need to break that up so we can just swap pointers to oscillators instead of re-initializing them
155153
juce::dsp::Gain<T> gain;
156154

157155
std::uniform_real_distribution<T> distribution;

source/DSP/LockFreeSynthesiser.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
#include "juce_audio_basics/juce_audio_basics.h"
2626

2727
/**
28+
This is a lock-free copy of juce::SynthesiserVoice.
29+
2830
Represents a voice that a Synthesiser can use to play a SynthesiserSound.
2931
3032
A voice plays a single sound at a time, and a synthesiser holds an array of

source/DSP/ProPhatVoice.h

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ class ProPhatVoice : public LockFreeSynthesiserVoice, public juce::AudioProcesso
169169
T curFilterResonance { Constants::defaultFilterResonance };
170170

171171
//lfo stuff
172-
// TODO: how is this actually used? Especially because we always use only the first sample of the lfo process call?
172+
//TODO #63: how is this actually used? Especially because we always use only the first sample of the lfo process call?
173173
static constexpr auto lfoUpdateRate = 100;
174174
int lfoUpdateCounter = lfoUpdateRate;
175175

@@ -213,7 +213,7 @@ ProPhatVoice<T>::ProPhatVoice (juce::AudioProcessorValueTreeState& processorStat
213213
//lfos[LfoShape::revSaw].initialise ([] (T x) { return (float) juce::jmap (x, -juce::MathConstants<T>::pi, juce::MathConstants<T>::pi, 1.f, 0.f); }, 2);
214214
lfos[LfoShape::square].initialise ([] (T x) { return x < 0 ? T (0) : T (1); });
215215

216-
// TODO: because we don't give the lookupTableNumPoints parameter to the lfo, we're not building a lookup table, and we can't because of the state logic.
216+
// TODO #63: because we don't give the lookupTableNumPoints parameter to the lfo, we're not building a lookup table, and we can't because of the state logic.
217217
// So this means this function takes longer than the other ones. Which is only called once per buffer, so probably not a big deal, but the whole logic is kinda
218218
// weird, so maybe we should refactor it later.
219219
lfos[LfoShape::randomLfo].initialise ([this](T x)
@@ -503,16 +503,10 @@ void ProPhatVoice<T>::setFilterEnvParam (juce::StringRef parameterID, float newV
503503
filterADSR.setParameters (filterEnvParams);
504504
}
505505

506-
//@TODO For now, all lfos oscillate between [0, 1], even though the random one (and only that one) should oscilate between [-1, 1]
506+
//@TODO #63 For now, all lfos oscillate between [0, 1], even though the random one (and only that one) should oscilate between [-1, 1]
507507
template <std::floating_point T>
508508
void ProPhatVoice<T>::setLfoShape (LfoShape::Values shape)
509509
{
510-
//TODO: this somehow made things sound worse when looping in reaper
511-
//reset everything
512-
//oscillators.resetLfoOscNoteOffsets();
513-
514-
//TODO: shape is somehow always 0 with reaper automations??
515-
//change the shape
516510
switch (shape)
517511
{
518512
case LfoShape::triangle: curLfo.store (&lfos[LfoShape::triangle]); break;

source/Utility/Helpers.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ struct LfoShape : public Selection
277277

278278
struct LfoDest : public Selection
279279
{
280-
enum
280+
enum Values
281281
{
282282
osc1Freq = 0,
283283
osc2Freq,
@@ -293,7 +293,7 @@ struct LfoDest : public Selection
293293
struct SelectedEffect : public Selection
294294
{
295295
//this is essentially like EffectType, so we still need that enum?
296-
enum
296+
enum Values
297297
{
298298
none = 0,
299299
verb,

0 commit comments

Comments
 (0)