in case of an event processor that doesn’t need to run at audio rate, and only outputs events immediately after receiving some (i.e. inside of an event callback), what should the run()
method be doing?
void run()
{
advance();
}
or
void run()
{
loop { advance(); }
}
is there a way to avoid writing the run-method altogether in a case like this? or have i misunderstood something and is using this type of a processor not recommended?
full example:
processor Example
{
input event float somethingIn;
output event float somethingOut;
event somethingIn(float something)
{
somethingOut << somethingIn * 2;
}
void run()
{
???
}
}