[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-dev] Control Special Index



On Saturday 13 December 2008, LFSaw wrote:

> Hey,

Ho, let's go..

>

> mSpecialIndex is not that self-explaining… so I tried to discover its

> usage in the UGens:

> mSpecialIndex seems to be used in IOUGens:

Ah, that slipped by me. My grep fu isn't strong enough it seems..

> 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?

This makes some sense :)

> 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?

Right.. But only for BinaryOp. UnaryOp is used only for control rate signals in ScGraph, thus i didn't need to reimplement it..

> 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.

As ScGraph has its own implementation of Control, i need to implement it corerctly. Thanks for the info..

Regards,

Flo

--

Palimm Palimm!

http://tapas.affenbande.org