Infinite-Noise Development blog

Real life got in the way a few times, but I finally reached the point where I could publish the plugin on GitHub.

So if anyone is interested in trying it out, you can find it here:

Although I’ve only been able to test it on Windows, the plugin should also work on macOS and Linux, as it is built using the standard VCV Rack toolchain.

I’ve also written a complete user manual covering every module, so hopefully everything you need to get started is there. If you run into any issues or have suggestions for improvements, I’d love to hear your feedback.

Just tried to build it on MacOS Tahoe 26.5.2 arm64 using Rack 2.6.6 SDK . Get the following failure:

In file included from src/CvToGt.cpp:6:
src/inMath.hpp:9:9: warning: 'M_PI' macro redefined [-Wmacro-redefined]
    9 | #define M_PI            3.14159265358979323846
      |         ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/math.h:741:9: note: previous definition is here
  741 | #define M_PI        3.14159265358979323846264338327950288   /* pi             */
      |         ^
In file included from src/CvToGt.cpp:6:
src/inMath.hpp:38:26: warning: implicit conversion from 'unsigned int' to 'float' changes value from 4294967295 to 4294967296
      [-Wimplicit-const-int-float-conversion]
   38 |                 return (float)next() / 0xFFFFFFFF;
      |                                      ~ ^~~~~~~~~~
src/CvToGt.cpp:21:9: error: expected identifier
   21 |         MAX_INPUT,
      |         ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/syslimits.h:90:34: note: expanded from macro 'MAX_INPUT'
   90 | #define MAX_INPUT                1024   /* max bytes in terminal input */
      |                                  ^
src/CvToGt.cpp:271:108: error: expected unqualified-id
  271 |         addInput(createInputCentered<infNoiseThemedPolyPort>(Vec(cntrClm, 170.886f), module, CvToGtModule::MAX_INPUT));
      |                                                                                                            ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/syslimits.h:90:34: note: expanded from macro 'MAX_INPUT'
   90 | #define MAX_INPUT                1024   /* max bytes in terminal input */
      |                                  ^
2 warnings and 2 errors generated.
make: *** [build/src/CvToGt.cpp.o] Error 1
make: *** Waiting for unfinished jobs....

Thanks for the report, and thanks for trying to build it for MacOS. I’ll report back when I have a fix

It seams to be a clash between the MAX_INPUT I define (id for an input port) and the MAX_INPUT that is defined as the value 1024 in syslimits.h for the MacOS build. As I recall I use MAX_INPUT and MIN_INPUT in several modules, so I better rename them all to someting different. The M_PI is at least “just a warning”, but I’ll have a look at it as well.

I’ve pushed the fixes for what I saw from your build log.

Perfect, builds fine now and even the warnings were sorted out. Nice one. I will report back if I find anything amiss, but that is a lots of modules to go through :wink: .

I’ve just submitted a request to have the plugin added to the VCV Library, so time will tell whether it’s smooth sailing from here. :slightly_smiling_face:

Since fixing the issues pointed out by @fractalgee the source code hasn’t changed. I have, however, gone through the module documentation, corrected a number of issues, and added a few more screenshots.

It turned out it wasn’t completely “smooth sailing” after all. Apparently, I had used an unsupported (unknown) tag in the manifest file. Also, while all of my dark-themed panel files are suffixed with “_dark”, one of them was accidentally named “_Dark”. That wasn’t an issue on Windows because of its case-insensitive file system, but it naturally caused problems on platforms with case-sensitive file systems. Finally, I received a cppcheck report from VCV that flagged a few warnings. These warnings are now fixed, so I just need a last test before pushing it for the VCV Library again.

In any case, I now have a release script in place that checks for all the issues identified during this release—including validating the manifest, checking file naming, running cppcheck, and performing several other release checks I wanted to automate. So, hopefully, future releases really will be smooth sailing.

There is a script that VCV uses to check your manifest file. I asked for a copy and received it. I use it to check my own manifest file on every build. Here it is for you to use also: rack-manifest-validator.py.

Sometimes it glitches out from network errors, so I call it in a retry loop like this from my bash script for building my plugin:

RETRY_SECONDS=5
for attempt in $(seq 1 3); do
    if python3 rack-manifest-validator.py ../.. -p sapphire; then
        break
    else
        if [[ $attempt < 3 ]]; then
            echo "Retrying in ${RETRY_SECONDS} seconds..."
            sleep ${RETRY_SECONDS}
        else
            echo "Exhausted retries."
            exit 1
        fi
    fi
done

This is just one more way you can check your own homework before turning it in!

Thanks @cosinekitty . I ended up writing (or at least instructed Cursor’s AI to write) a script, where I now perform all kinds of checks. So hopefully next time I hand in my homework, it will be more smooth :slight_smile:

If anyone is interested I don’t mind sharing this script, however it is very specialized to how I do things, and which files/folders I have:

=== panels-pairs ===

PASS: 76 light / 76 dark panel pairs OK

=== plugin-json-bom ===

PASS: No BOM; starts with '{'

=== plugin-json-parse ===

PASS: Parsed OK; version=2.0.2; 76 modules

=== version-changelog ===

PASS: version 2.0.2 matches CHANGELOG.md

=== manifest-panels ===

PASS: All 76 modules have light+dark panels (exact slug casing)

=== manifest-tags ===

PASS: All tags allowed (77 aliases from Tags.txt)

=== orphan-panels ===

PASS: No orphan panel bases

=== panel-layers ===

PASS: No multi-layer panels in res/ (152 SVGs checked)

=== status-modules ===

PASS: All 76 modules listed in Status.md; no orphans; none In Development / Needs Testing

=== manual-modules ===

PASS: All 76 modules linked in manual.md Modules section

=== model-class-slug ===

PASS: All 76 modules: Model* / Module / ModuleWidget names match slug

=== model-extern ===

PASS: All 76 modules have extern Model* in plugin.hpp

=== model-addModel ===

PASS: All 76 modules have p->addModel(...) in plugin.cpp

=== md-links ===

PASS: All relative .md links in doc/ resolve (25 file(s))

=== changelog-md-links ===

PASS: All doc links in CHANGELOG.md resolve

=== manifest-manualUrl ===

PASS: All 76 module manualUrl targets resolve in doc/

=== cppcheck ===

PASS: cppcheck clean (C:\Program Files\Cppcheck\cppcheck.exe)

=== Summary ===

PASS

Cool, thanks for sharing! Strange that it’s not in the SDK so everyone can use it.

I think I got all my ducks in a row some 5 days ago, as I haven’t got any Issues raised, and it appears to have reached the “Build update” stage, so I guess it will be implemented next time the Library is updated.

Anyhow I decided to have a go at GitHub Actions (of which I know nothing), in order to have Nightly builds (basically a new build, each time I push changes). These builds are both for Windows, Mac and Linux,

Getting this working was a lot more simple than I had initially expected, thanks to the work done by @Pachde and @Bloodbat. Paul’s Generic Template had the yml I needed (just had to replace “main” by “master”) and it relies on the container @Bloodbat have made. Then it was just a matter of creating the “Nightly” tag and release.

I’d accept a PR for GenericBlank to add the manifest validator.

Congrats on the rather large collection released today. I absolutely love utility modules, I’m gonna try most of these out.

I have just pushed a new Attack → Delay → Release envelope module (ADR Envelope) to GitHub.

ADREnvelope

If you don’t want to build it yourself, prebuilt binaries are available in the Nightly Builds release for Windows, macOS, and Linux. The documentation has also been updated with information about the new module.

So far, I’ve only completed my initial testing of the module, but there are currently no known issues. If anyone gives it a try and runs into any problems, I’d be happy to hear about them.

Forgot to metion: The Rate Chaos that can be selected via the context menu is not yet implemented in the device. However the idea is this that “the Chaos” (if enabled) will affect the time-settings dialed-in by the time knobs.

Rate Chaos is now enabled.

Have begun working on version 2.0.5

So far 2 new slew modules, where Slew4 can process 4 polyphonic signals and Slew2 can process 2 polyphonic signals, and both can both do constant rate- and constant time slew. Slew4 is your bread-and-butter slew (only knob operated and have shared fall/rise shapes), whereas Slew2 is much more cable, and have both knobs and CV for rise/fall time/shape (all inputs are polyphonic where each channel can have it’s own time/shape settings via CV). Slew2 can also do envelope following, and it have a Snap-gate/trigger input which basically snaps the slew output to the input. It also feature a Catch output, which outputs a high gate when the slew have “cóught up” to the input. Everything mentioned in the manual for both modules.

As version 2.0.5 is WIP, nothing is set in stone, but I am pretty confident the design/feature set is pretty locked down for Slew 2/4 at this time, and while I am still not finished testing it fully, there are no known issues, So if anyone have the time to spare please give them both a spin at let me hear if anything seems wacky. The source is available at GitHub, and binaries for Windows, Mac and Linux are awailable as a Nightly Build.

If interrested the Changelog mention what else have been updated/fixed so far since version 2.0.4. Not mentioned in the changelog, a new Chaos module have been added as well. But at this moment it’s just en empty shell (there is a panel, but it does not generate any output).

Interesting naming but I get why, just looks a bit funny:

Slew 4: 2HP

Slew 2: 4HP

:wink:

Perhaps there is a hidden number … Slew4: 2HP … 42 … ? :grinning_face:

These slew modules look useful, and I really appreciate the documentation you wrote, explaining the different slew modes and why you might choose one over the other. I like glissando effects sometimes for hopping octaves or just for voices that should sound more like a trombone or a human voice. So next time I want to do that in a patch, I will try one of your slew modules!

While testing the new modules, I sadly discovered a couple of simple/embarrassing bugs in a few other modules. So, I’ve decided to run through all of the modules once again. As I do run into bugs, I will fix them and mention them in the Changelog. However if anyone have run into any issues, please let me know.