PianoProcessor Class Reference

#include <mdaPianoProcessor.h>

Inheritance diagram for PianoProcessor:
Inheritance graph
[legend]

Data Structures

struct  KGRP
struct  VOICE

Public Types

enum  { EVENTBUFFER = 120, NPROGS = 8, NVOICES = 32 }

Public Member Functions

 PianoProcessor ()
 ~PianoProcessor ()
tresult initialize (FUnknown *context)
tresult terminate ()
tresult setActive (TBool state)
void doProcessing (ProcessData &data)

Static Public Member Functions

static FUnknowncreateInstance (void *)

Static Public Attributes

static FUID uid
static float programParams [][12]

Protected Member Functions

void setParameter (ParamID index, ParamValue newValue, int32 sampleOffset)
void processEvents (IEventList *events)
void noteOn (int32 note, int32 velocity)
void recalculate ()
void allNotesOff ()

Protected Attributes

float Fs
float iFs
int32 notes [EVENTBUFFER+8]
KGRP kgrp [16]
 global internal variables
VOICE voice [NVOICES]
int32 activevoices
int32 poly
int32 cpos
short * waves
int32 cmax
float * comb
float cdep
float width
float trim
int32 size
int32 sustain
float tune
float fine
float random
float stretch
float muff
float muffvel
float sizevel
float velsens
float volume
int32 eventPos

Member Enumeration Documentation

anonymous enum
Enumerator:
EVENTBUFFER 
NPROGS 
NVOICES 

Constructor & Destructor Documentation

PianoProcessor (  ) 
~PianoProcessor (  ) 

Member Function Documentation

tresult initialize ( FUnknown context  )  [virtual]

Reimplemented from Component.

tresult terminate (  )  [virtual]

Reimplemented from Component.

tresult setActive ( TBool  state  )  [virtual]

Reimplemented from BaseProcessor.

void doProcessing ( ProcessData data  )  [virtual]

Implements BaseProcessor.

static FUnknown* createInstance ( void *   )  [inline, static]
void setParameter ( ParamID  index,
ParamValue  newValue,
int32  sampleOffset 
) [protected, virtual]

Reimplemented from BaseProcessor.

void processEvents ( IEventList events  )  [protected, virtual]

Reimplemented from BaseProcessor.

void noteOn ( int32  note,
int32  velocity 
) [protected]
void recalculate (  )  [protected, virtual]

Reimplemented from BaseProcessor.

void allNotesOff (  )  [protected]

Field Documentation

FUID uid [static]
float programParams [static]
Initial value:
 { 
   {0.500f, 0.500f, 0.500f, 0.5f, 0.803f, 0.251f, 0.376f, 0.500f, 0.330f, 0.500f, 0.246f, 0.500f},
   {0.500f, 0.500f, 0.500f, 0.5f, 0.751f, 0.000f, 0.452f, 0.000f, 0.000f, 0.500f, 0.000f, 0.500f},
   {0.902f, 0.399f, 0.623f, 0.5f, 1.000f, 0.331f, 0.299f, 0.499f, 0.330f, 0.500f, 0.000f, 0.500f},
   {0.399f, 0.251f, 1.000f, 0.5f, 0.672f, 0.124f, 0.127f, 0.249f, 0.330f, 0.500f, 0.283f, 0.667f},
   {0.648f, 0.500f, 0.500f, 0.5f, 0.298f, 0.602f, 0.550f, 0.850f, 0.356f, 0.500f, 0.339f, 0.660f},
   {0.500f, 0.602f, 0.000f, 0.5f, 0.304f, 0.200f, 0.336f, 0.651f, 0.330f, 0.500f, 0.317f, 0.500f},
   {0.450f, 0.598f, 0.626f, 0.5f, 0.603f, 0.500f, 0.174f, 0.331f, 0.330f, 0.500f, 0.421f, 0.801f},
   {0.050f, 0.957f, 0.500f, 0.5f, 0.299f, 1.000f, 0.000f, 0.500f, 0.330f, 0.450f, 0.718f, 0.000f},
}
float Fs [protected]
float iFs [protected]
int32 notes[EVENTBUFFER+8] [protected]
KGRP kgrp[16] [protected]

global internal variables

VOICE voice[NVOICES] [protected]
int32 activevoices [protected]
int32 poly [protected]
int32 cpos [protected]
short* waves [protected]
int32 cmax [protected]
float* comb [protected]
float cdep [protected]
float width [protected]
float trim [protected]
int32 size [protected]
int32 sustain [protected]
float tune [protected]
float fine [protected]
float random [protected]
float stretch [protected]
float muff [protected]
float muffvel [protected]
float sizevel [protected]
float velsens [protected]
float volume [protected]
int32 eventPos [protected]
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Defines
Empty

Copyright ©2013 Steinberg Media Technologies GmbH. All Rights Reserved.