63 constexpr int NUM_SAMPLES {25};
64 constexpr float SCALE {0.4};
65 constexpr float MARGIN { (1 - SCALE) / 2 };
71 for (
size_t idx {0}; idx < NUM_SAMPLES; idx++) {
73 const int phaseIndexOffset {
76 const int sampleIdx {(
84 const double sampleX {(
static_cast<double>(idx) / NUM_SAMPLES) * getWidth()};
85 const double sampleY = (0.5 - sample) * getHeight() * SCALE + getHeight() * MARGIN;
89 p.startNewSubPath(0, sampleY);
91 p.lineTo(sampleX, sampleY);
96 g.strokePath(p, juce::PathStrokeType(3.0f));