Hi there,
inside my base CTOR plugin class I create a new instance of ITempoEngine:
Code:
MIDITest::MIDITest(IPlugInstanceInfo instanceInfo) : IPLUG_CTOR(kNumParams, PLUG_NUM_PRESETS, instanceInfo) {
// ..
// tempo engine
pTempoEngine = new ITempoEngine(this);
// ..
}
which is somethings like this right now:
Code:
class ITempoEngine
{
private:
IPlugBase *pPlug;
public:
ITempoEngine(IPlugBase *pPlug) : pPlug(pPlug) {
}
~ITempoEngine() {
};
};
I'd like to invoke later within ITempoEngine the function SendMidiMsg(), but it seems I'm inside another "scope" of members visibility.
Tried with pPlug->SendMidiMsg() but I can't see that function. I'm passing "this" to the CTOR, why I can't wrap the function? Also tried to pass a IPlugVST or just IPlug as type object in the function, but it's the same.
Where am I wrong? Thanks