Hello World C++ patch

A simple tutorial of how to program a simple pass through patch in C++ would be greatly appreciated.

I have tried and get the stderr…

error: ‘HelloWorld’ does not name a type REGISTER_PATCH(HelloWorld, “untitled-a4ff8b0cff16”, 2, 2);

the code I am trying to compile is this HelloWorld.hpp…

#ifndef HelloWorld_hpp
#define HelloWorld_hpp

#include “Patch.h”

class HelloWorldPatch : public Patch {

public:
HelloWorldPatch() {
}

void processAudio(AudioBuffer &buffer) {
}

};

#endif // HelloWorld_hpp

What are the minimum requirements for getting a C++ patch to work?

Any help would be appreciated.
Thank you,
S

I have discovered the solution to the error…

The patch class that processes the audio and the main source hpp must share the same name exactly.

2 Likes