You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi!
First of all thanks so much for these examples. They are a really great resource when learning about plugins!
I am writing a plugin using the "new" wrapper style based on the AnalogEcho example and most of the code is easily translatable to the new style but I cannot figure out how to set the calculcation function to the output clear function:
if (unit->buf == NULL) {
// Avoid retaining AnalogEcho_next as the calculation function.SETCALC(ft->fClearUnitOutputs);
ClearUnitOutputs(unit, 1);
if(unit->mWorld->mVerbosity > -2) {
Print("Failed to allocate memory for AnalogEcho ugen.\n");
}
return;
}
I've "translated" the ClearUnitOutputs line to ClearUnitOutputs(this, 1); but how do I translate the SETCALC macro to use set_calc_function ? As a newbie I'm struggling to figure this out
The text was updated successfully, but these errors were encountered:
Hi!
First of all thanks so much for these examples. They are a really great resource when learning about plugins!
I am writing a plugin using the "new" wrapper style based on the AnalogEcho example and most of the code is easily translatable to the new style but I cannot figure out how to set the calculcation function to the output clear function:
I've "translated" the ClearUnitOutputs line to
ClearUnitOutputs(this, 1);
but how do I translate the SETCALC macro to useset_calc_function
? As a newbie I'm struggling to figure this outThe text was updated successfully, but these errors were encountered: