Having some confusion with PGM

OK I think I am narrowing down the issue. I will start with some recommendations about the information presented here.

The #1 How to get started document from September 2020 is obsolete so it should be unpinned.

It should have an entry at the top indicating that it is out of date and a link to the correct doc (which should be pinned). I haven’t got as far as #2 or #3 pinned doc so I don’t know if those need an update also.

I am pretty sure the problem gets down to this section.

FaustPlugInAudioProcessor::FaustPlugInAudioProcessor()
: foleys::MagicProcessor (getBusesProperties()), fParameterUI(this)	
#endif
{
    bool midi_sync = false;
    int nvoices = 0;
    
    mydsp* tmp_dsp = new mydsp();
    MidiMeta::analyse(tmp_dsp, midi_sync, nvoices);
    delete tmp_dsp;
	
#ifdef PLUGIN_MAGIC
    auto defaultGUI = magicState.createDefaultGUITree();
    magicState.setGuiValueTree(defaultGUI);
#endif

I’m just loading the defaultGUI.

If I try to use this approach:

magicState.setGuiValueTree (BinaryData::magic_xml, BinaryData::magic_xmlSize);

I get something wrong with BinaryData.

image

If I try to build, this happens:

I’ll look at how this is handled in the example which I got running.

This declaration is found in my project and the SignalGenerator project.

namespace BinaryData {
using namespace BinaryDataFallbacks;
}

When I look for declarations of this in SignalGenerator, I get:

When I try to find the declaration in my own project, I get:

(nothing)