Forum

    • Register
    • Login
    • Search
    • Categories

    Anyone successfully added or edited a module yet?

    Scripting Forum
    1
    2
    260
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • iamlamprey
      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.

      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

      Music - Instruments

      1 Reply Last reply Reply Quote 1
      • iamlamprey
        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...

        im less dumb.zip

        Music - Instruments

        1 Reply Last reply Reply Quote 0
        • First post
          Last post

        7
        Online

        857
        Users

        5.7k
        Topics

        53.1k
        Posts