Skip to content

Wrong algorithm for LFO ? (Maybe) #5

@iOSBrett

Description

@iOSBrett

I don't run Windows so I haven't actually tried running your code, but I was doing my own Synth and looked at your code and I think the following algorithm has an error in the LFO section.

FTYPE dFreq = w(dHertz) * dTime + dLFOAmplitude * dHertz * (sin(w(dLFOHertz) * dTime));

I don't think the second dHertz should be there. I think this is why you are using a DFLO Amplitude of 0.001 later as you are trying to cancel out the extra dHertz multiplication.

I could be completely wrong and sorry for doing the "I haven't run your code, but..."

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions