Anyone successfully added or edited a module yet?



  • 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.

    6da6d9eb-44a2-412b-b191-fc00164b8e28-image.png

    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 😞

    im dumb.zip

    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



  • 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...

    im less dumb.zip


Log in to reply
 

26
Online

810
Users

3.0k
Topics

25.5k
Posts