Skip to content

Minor discrepancies between tutorial and plugin code #5

@jordanwhitede

Description

@jordanwhitede

This is in the pdf description of the private part of the class:

// State variables
// Ramp generator phase. Initialized to 0.0.
double m_phase{0.0};
// Ramp generator frequency. Uninitialized — remember to initialize in the const
float m_frequency;

And this is in the hpp file:

        // Calc function
    void next_a(int nSamples);
    void next_k(int nSamples);

        // Helper functions
        inline float progressPhasor(double phase, float frequency);

        // Parameter names corresponding to our argument indices
        enum Inputs { Frequency };

        // State variables
        double m_phase{0.0};
        float m_frequency; // will be initialized in the constructor

I assume that this was an update made to the code at some point but not to the pdf?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions