Anyone successfully added or edited a module yet?
iamlamprey last edited by iamlamprey
I just cannot wrap my head around it. I'm trying to add a new slider to the Sine Wave generator and I'm just getting a bajillion compile errors, despite copying the original formatting exactly.
I guess I've missed a file somewhere when setting up the custom slider? I've added it in the SineSynth.cpp, SineSynth.h, SineSynthBody.cpp, SineSynthBody.h.
My brain hurts
Edit: There's a semicolon instead of a colon in one of the files, but I've since fixed it and still same errors occur (mostly saying customFrequency is an undeclared identifier).
Edit #2: Found ModulatorSynth.cpp and assume this has something to do with adding/modifying modules? Bleh
iamlamprey last edited by
Ok trying an alternative method by just duplicating the source and editing the original files.
SemiTones slider now ranges from 20-20000 and I can reference it properly in a script, but now there's no output.
If I manually set the float cyclesPerSecond it works (obviously), but if I replace that value with the semiTones it just outputs nothing...