int TpTz::Set(char* mess, float value){ switch (FindMsg(mess)){ case 21: SetParam((double)value,m_a1,m_a2,m_b1, m_b2); return 1; case 22: SetParam(m_a,(double)value,m_a2,m_b1, m_b2); return 1; case 23: SetParam(m_a,m_a1,(double)value,m_b1, m_b2); return 1; case 24: SetParam(m_a,m_a1,m_a2,(double)value, m_b2); return 1; case 25: SetParam(m_a,m_a1,m_a2,m_b1, (double)value); return 1; default: return Filter::Set(mess,value); } }
int PVBlur::Set(char* mess, float value){ switch(FindMsg(mess)){ case 31: SetBlurTime(value); return 1; default: return SpecMult::Set(mess,value); } }
int FFT::Connect(const char* mess, void *input){ switch(FindMsg(mess)){ case 24: SetWindow((Table *) input); return 1; default: return SndObj::Connect(mess, input); } }
int MidiMap::Connect(char* mess, void* input){ switch (FindMsg(mess)){ case 33: m_maptable = (Table *) input; return 1; default: return MidiIn::Connect(mess,input); } }
int SndObj::Connect(char* mess, void *input){ switch (FindMsg(mess)){ case 3: m_input = (SndObj *) input; return 1; default: return 0; } }
int IFGram::Set(char* mess, float value){ switch(FindMsg(mess)){ case 22: SetFFTSize((int) value); return 1; default: return PVA::Set(mess, value); } }
int AdSyn::Set(char* mess, float value){ switch(FindMsg(mess)){ case 31: SetPitch(value); return 1; default: return SinSyn::Set(mess, value); } }
int PVTransp::Connect(char* mess, void* input){ switch(FindMsg(mess)){ case 31: SetPitch(m_pitch, (SndObj*) input); return 1; default: return SpecMult::Connect(mess, input); } }
int Lookup::Connect(char* mess, void* input){ switch(FindMsg(mess)){ case 24: m_ptable = (Table *) input; return 1; default: return SndObj::Connect(mess, input); } }
int Osci::Connect(char* mess, void* input){ switch (FindMsg(mess)){ case 23: SetTable((Table *) input); return 1; default: return SndObj::Connect(mess,input); } }
////////////////// OPERATIONS //////////////////////////////////// int PhOscili::Connect(char* mess, void* input){ switch (FindMsg(mess)){ case 23: m_inputphase = (SndObj *) input; return 1; default: return Oscil::Connect(mess,input); } }
int Pan::Set(char* mess, float value){ switch(FindMsg(mess)){ case 21: SetPan(value); return 1; default: return SndObj::Set(mess, value); } }
//////////////////OPERATIONS ////////////////////// int Tapi::Connect(char* mess, void* input) { switch (FindMsg(mess)) { case 41: SetDelayInput((SndObj *) input); return 1; default: return Tap::Connect(mess,input); } }
int Phase::Connect(char* mess, void* input){ switch (FindMsg(mess)){ case 21: m_input = (SndObj *) input; return 1; default: return SndObj::Connect(mess,input); } }
int PVFilter::Set(char* mess, float value){ switch(FindMsg(mess)){ case 41: SetAmount(value, m_interpobj); return 1; default: return SpecInterp::Set(mess, value); } }
int PVMask::Set(char* mess, float value) { switch(FindMsg(mess)) { case 41: SetMaskGain(value, m_interpobj); return 1; default: return SpecInterp::Set(mess, value); } }
int PVS::Set(char* mess, float value){ switch(FindMsg(mess)){ case 22: SetFFTSize((int) value); return 1; case 23: SetHopSize((int) value); return 1; default: return IFFT::Set(mess, value); } }
int Mixer::Connect(char* mess, void* input){ switch (FindMsg(mess)){ case 21: AddObj((SndObj *) input); return 1; case 22: DeleteObj((SndObj *) input); return 1; default: return SndObj::Connect(mess,input); } }
int IFGram::Connect(char* mess, void* input){ int i; switch(FindMsg(mess)){ case 24: SetWindow((Table *) input); for(i=0; i<m_fftsize; i++) m_diffwin[i] = m_table->Lookup(i) - m_table->Lookup(i+1); return 1; default: return PVA::Connect(mess,input); } }
int MidiMap::Set(char* mess, float value){ switch (FindMsg(mess)){ case 31: SetRange(value, m_max); return 1; case 32: SetRange(m_min, value); return 1; default: return MidiIn::Set(mess,value); } }
int SndObj::Set(const char* mess, double value){ switch (FindMsg(mess)){ case 1: SetSr(value); return 1; case 2: SetVectorSize((int) value); return 1; default: return 0; } }
////////////////// OPERATIONS /////////////////////////////// int IADSR::Set(char* mess, float value){ switch (FindMsg(mess)){ case 31: SetInit(value); return 1; case 32: SetEnd(value); return 1; default: return ADSR::Set(mess,value); } }
int FIR::Set(char *mess, float value) { switch(FindMsg(mess)){ case 21: SetDelayTime(value); return 1; case 32: m_size = (int) value; return 1; default: return DelayLine::Set(mess, value); } }
int SpecMult::Connect(char* mess, void* input){ switch(FindMsg(mess)){ case 21: SetInput2((SndObj*) input); return 1; case 22: SetTable((Table*) input); return 1; default: return SndObj::Connect(mess, input); } }
int PVMorph::Connect(char* mess, void* input){ switch(FindMsg(mess)){ case 41: SetFreqMorph(m_offset, (SndObj*) input); return 1; case 42: SetAmpMorph(m_offset2, (SndObj*) input); return 1; default: return SpecInterp::Connect(mess, input); } }
int Phase::Set(char* mess, float value){ switch (FindMsg(mess)){ case 21: SetFreq(value); return 1; case 22: SetPhase(value); return 1; default: return SndObj::Set(mess,value); } }
////////////////////OPERATIONS//////////////////// int Pitch::Set(char* mess, float value){ switch (FindMsg(mess)){ case 31: SetPitch(value); return 1; case 32: SetPitch((int) value); return 1; default: return DelayLine::Set(mess,value); } }
int PVTransp::Set(char* mess, float value){ switch(FindMsg(mess)){ case 31: SetPitch(value, m_input2); return 1; case 32: SetMode((int)value); return 1; default: return SpecMult::Set(mess, value); } }
int HiPass::Set(char* mess, float value){ switch (FindMsg(mess)){ case 21: SetFreq(value); return 1; case 23: SetSr(value); return 1; default: return SndObj::Set(mess,value); } }
int DelayLine::Set(char* mess, float value){ switch (FindMsg(mess)){ case 21: SetDelayTime(value); return 1; case 1: SetSr(value); return 1; default: return SndObj::Set(mess,value); } }