[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-dev] Control Special Index
Hey,
mSpecialIndex is not that self-explaining… so I tried to discover its
usage in the UGens:
-------------
mSpecialIndex seems to be used in IOUGens:
e.g. (ll. 126):
void Control_next_k(Unit *unit, int inNumSamples)
{
uint32 numChannels = unit->mNumOutputs;
float **mapin = unit->mParent->mMapControls + unit->mSpecialIndex;
for (uint32 i=0; i<numChannels; ++i, mapin++) {
float *out = OUT(i);
*out = **mapin;
}
}
is it to get the desired output channel?
--------------
mSpecialIndex is also used in Unary/BinaryOpUGens; here to define
which kind of functionality should be evaluated.
so this is different. Flo, you did implement it for the latter one,
right?
Don't know if you have to explicitely code it for the other case,
though…
Probably you just have to pass the information coming from the
language to the plugin.
hope that helps
Till
On 11.12.2008, at 20:01, Florian Schmidt wrote:
On Thursday 11 December 2008, Sciss wrote:
> i think it's used mainly for the operator in the case of UnaryOpUGen
> and BinaryOpUGen. and i think Control uses it (better check back the
> latter...)
>
> ciao, -sciss-
>
> Am 11.12.2008 um 19:33 schrieb Florian Schmidt:
> > Hi, during the debugging of ScGraph i found that Control UnitSpecs
> > can contain a special index != 0. What's the semantics of this?
> > Regards,
> > Flo
I have implemented the special index functionality for binary and
unary ops in scgraph already [for GraphicsRate, there's only
Addition ;)], but i don't think i ever found docs detailing the
semantics in the case of a Control Unit..
Regards,
Flo
--
Palimm Palimm!
http://tapas.affenbande.org
_______________________________________________
sc-dev mailing list
info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-dev/
search: https://listarc.bham.ac.uk/lists/sc-dev/search/