Skip to content

Commit

Permalink
Tweak code
Browse files Browse the repository at this point in the history
  • Loading branch information
baconpaul committed Dec 30, 2024
1 parent 06821a0 commit ad9b2bd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/dsp/node_support.h
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ template <typename T, bool needsSmoothing = true> struct LFOSupport
LFOSupport(const T &mn, MonoValues &mv)
: sr(mv), paramBundle(mn), lfo(&sr, mv.rng), lfoRate(mn.lfoRate), lfoDeform(mn.lfoDeform),
lfoShape(mn.lfoShape), lfoActiveV(mn.lfoActive), tempoSyncV(mn.tempoSync), monoValues(mv),
bipolarV(mn.lfoBipolar)
bipolarV(mn.lfoBipolar)
{
}

Expand Down
6 changes: 5 additions & 1 deletion src/synth/patch.h
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,11 @@ struct Patch
.withName(name + " Temposync")
.withGroupName(name)
.withDefault(false)),
lfoBipolar(boolMd().withDefault(true).withID(id0+6).withName(name + " Bipolar").withGroupName(name))
lfoBipolar(boolMd()
.withDefault(true)
.withID(id0 + 6)
.withName(name + " Bipolar")
.withGroupName(name))
{
}

Expand Down
2 changes: 0 additions & 2 deletions src/ui/lfo-components.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ template <typename Comp, typename Patch> struct LFOComponents
tempoSync->setBounds(bx.withTrimmedTop(2 * uicLabeledKnobHeight - lh).withHeight(lh));
bipolar->setBounds(bx.withTrimmedTop(2 * uicLabeledKnobHeight + uicMargin).withHeight(lh));


bx = bx.translated(w + uicMargin, 0);
positionKnobAndLabel(bx.getX(), bx.getY(), rate, rateL);
positionKnobAndLabel(bx.getX(), bx.getY() + uicLabeledKnobHeight + uicMargin, deform,
Expand All @@ -107,7 +106,6 @@ template <typename Comp, typename Patch> struct LFOComponents

std::unique_ptr<jcmp::ToggleButton> bipolar;
std::unique_ptr<PatchDiscrete> bipolarD;

};
} // namespace baconpaul::six_sines::ui
#endif // LFO_COMPONENTS_H

0 comments on commit ad9b2bd

Please sign in to comment.