PiPo
Plug In Plug Out / Plugin Interface for Processing Objects
PiPoMel Class Reference
Inheritance diagram for PiPoMel:
PiPoSlice PiPo

Public Member Functions

 PiPoMel (Parent *parent, PiPo *receiver=NULL)
 
void setReceiver (PiPo *receiver, bool add)
 Sets a PiPo modules receiver (call only by the PiPo host) More...
 
- Public Member Functions inherited from PiPoSlice
 PiPoSlice (Parent *parent, PiPo *receiver=NULL)
 
int streamAttributes (bool hasTimeTags, double rate, double offset, unsigned int width, unsigned int size, const char **labels, bool hasVarSize, double domain, unsigned int maxFrames)
 Configures a PiPo module according to the input stream attributes and propagate output stream attributes. More...
 
int reset (void)
 Resets processing (optional) More...
 
int frames (double time, double weight, float *values, unsigned int size, unsigned int num)
 Processes a single frame or a block of frames. More...
 
- Public Member Functions inherited from PiPo
 PiPo (Parent *parent, PiPo *receiver=NULL)
 
 PiPo (const PiPo &other)
 
virtual void setParent (Parent *parent)
 Sets PiPo parent. More...
 
int propagateStreamAttributes (bool hasTimeTags, double rate, double offset, unsigned int width, unsigned int height, const char **labels, bool hasVarSize, double domain, unsigned int maxFrames)
 Propagates a module's output stream attributes to its receiver. More...
 
int propagateReset (void)
 Propagates the reset control event. More...
 
int propagateFrames (double time, double weight, PiPoValue *values, unsigned int size, unsigned int num)
 Propagates a module's output frames to its receiver. More...
 
int propagateFinalize (double inputEnd)
 Propagates the finalize control event. More...
 
virtual PiPogetReceiver (unsigned int index=0)
 Gets a PiPo modules receiver (call only by the PiPo host) More...
 
virtual int segment (double time, bool start)
 Signals segment start or end. More...
 
virtual int finalize (double inputEnd)
 Finalizes processing (optinal) More...
 
void streamAttributesChanged (Attr *attr)
 
void signalError (std::string errorMsg)
 
void signalWarning (std::string errorMsg)
 
void addAttr (PiPo *pipo, const char *name, const char *descr, Attr *attr, bool clear=false)
 att attribute
 
AttrgetAttr (unsigned int index)
 Gets PiPo attribute by index. More...
 
AttrgetAttr (const char *name)
 Gets PiPo attribute by name. More...
 
AttrgetAttr (const char *piponame, const char *name)
 Gets PiPo attribute by qualified name. More...
 
bool setAttr (unsigned int index, int value, bool silently=false)
 
bool setAttr (unsigned int index, int *values, unsigned int numValues, bool silently=false)
 
bool setAttr (unsigned int index, double val, bool silently=false)
 
bool setAttr (unsigned int index, double *values, unsigned int numValues, bool silently=false)
 
unsigned int getNumAttrs (void)
 Gets number of attributes. More...
 
void cloneAttrs (PiPo *other)
 Copies current parent and attributes values. More...
 
void cloneAttr (PiPo::Attr *attr)
 Copies current value(s) of given attribute. More...
 

Public Attributes

PiPoFft fft
 
PiPoBands bands
 
- Public Attributes inherited from PiPoSlice
PiPoScalarAttr< int > size
 
PiPoScalarAttr< int > hop
 
PiPoScalarAttr< PiPo::Enumerate > wind
 
PiPoScalarAttr< PiPo::Enumerate > norm
 

Additional Inherited Members

- Public Types inherited from PiPoSlice
enum  WindowTypeE {
  UndefinedWindow = -1, NoWindow = 0, HannWindow, HammingWindow,
  BlackmanWindow, BlackmanHarrisWindow, SineWindow, NumWindows
}
 
enum  NormModeE { UndefinedNorm = -1, NoNorm = 0, LinearNorm, PowerNorm }
 
- Public Types inherited from PiPo
enum  Type {
  Undefined, Bool, Enum, Int,
  Float, Double, String
}
 
enum  Enumerate
 
- Static Public Member Functions inherited from PiPo
static float getVersion ()
 
- Protected Attributes inherited from PiPo
Parentparent
 
std::vector< PiPo * > receivers
 
std::vector< Attr * > attrs
 

Member Function Documentation

◆ setReceiver()

void PiPoMel::setReceiver ( PiPo receiver,
bool  add 
)
inlinevirtual

Sets a PiPo modules receiver (call only by the PiPo host)

Parameters
receiverPiPo module receiving this module's output stream
addreceiver (versus clear and set first)

Reimplemented from PiPo.