#include <iso_synth_patch.h>
Inherits iso::synth::PortOwner.
Inherited by iso::synth::AdditiveSynthesisPatch, iso::synth::BandPassFilterPatch, iso::synth::DelayBandPassPatch, iso::synth::DelayLinesPatch, iso::synth::ModulationPatch, iso::synth::ModulationPatch, iso::synth::SamplePatch, iso::synth::StringsPatch, RhythmPatchCross, and RhythmPatchNeighbor.
Inheritance diagram for iso::synth::Patch:


Public Member Functions | ||||
| Patch () throw (SynthException) | ||||
create patch
| ||||
| Patch (const base::String &pPatchName) throw (SynthException) | ||||
create patch
| ||||
| virtual | ~Patch () | |||
| destructor | ||||
| void | setActive (const data::Values &pValues) | |||
| activate or deactivate patch | ||||
| Unit * | unit (const base::String &pUnitName) throw (SynthException) | |||
| return unit | ||||
| SwitchPorts & | switchPorts () | |||
| return switch ports | ||||
| bool | checkSwitchPort (const String &pPortName) | |||
| check existence of switch port | ||||
| SwitchPort * | switchPort (const String &pPortName) throw (SynthException) | |||
| return switch port | ||||
| void | set (const String &pPortName, const data::Values &pValues, sample pDuration=-1) throw (SynthException) | |||
| set port to fixed values | ||||
| void | notify (const com::Message &pMessage) | |||
| message notification | ||||
Protected Member Functions | ||||
| void | setName (const base::String &pName) | |||
| set patch name | ||||
| template<class FunctionDataType> | ||||
| SwitchPort * | createSwitchPort (const String &pName, const data::Values &pValues, void(PortOwner::*pSetFunction)(FunctionDataType)) | |||
| create a switch port | ||||
| template<class FunctionDataType> | ||||
| SwitchPort * | createSwitchPort (const serialize::SerializeData &pSerializeData, void(PortOwner::*pSetFunction)(FunctionDataType)) throw (serialize::SerializeException) | |||
| create a switch port | ||||
| template<class FunctionDataType> | ||||
| SwitchPort * | createSwitchPort (const String &pName, const serialize::SerializeData &pSerializeData, void(PortOwner::*pSetFunction)(FunctionDataType)) throw (serialize::SerializeException) | |||
| create a switch port | ||||
| template<class DataType, class FunctionType> | ||||
| SwitchPort * | createFadingSwitchPort (const String &pName, FunctionType pFunctionPointer) | |||
| template<class DataType1, class DataType2, class FunctionType> | ||||
| SwitchPort * | createFadingSwitchPort (const String &pName, FunctionType pFunctionPointer) | |||
| template<class DataType, class FunctionType> | ||||
| SwitchPort * | createDataSwitchPort (const String &pName, FunctionType pFunctionPointer) | |||
| template<class DataType1, class DataType2, class FunctionType> | ||||
| SwitchPort * | createDataSwitchPort (const String &pName, FunctionType pFunctionPointer) | |||
| virtual void | construct ()=0 throw (SynthException) | |||
function to create patch
| ||||
Protected Attributes | ||||
| QVector< Unit * > | mUnits | |||
| SwitchPorts | mSwitches | |||
| all patch units | ||||
| long | mPreviousMessageId | |||
| switch ports | ||||
| bool | mActive | |||
| previous message id | ||||
| Patch::Patch | ( | ) | throw (SynthException) |
| Patch::Patch | ( | const base::String & | pPatchName | ) | throw (SynthException) |
| Patch::~Patch | ( | ) | [virtual] |
destructor
| void Patch::setActive | ( | const data::Values & | pValues | ) |
activate or deactivate patch
| pValues | element 0 true : activate , element 0 false : deactivate |
| Unit * Patch::unit | ( | const base::String & | pUnitName | ) | throw (SynthException) |
| SwitchPorts & Patch::switchPorts | ( | ) |
return switch ports
| bool Patch::checkSwitchPort | ( | const String & | pPortName | ) |
check existence of switch port
| pPortName | name of switch port |
| SwitchPort * Patch::switchPort | ( | const String & | pPortName | ) | throw (SynthException) |
return switch port
| pPortName | name of switch port |
| SynthException | no switch port with supplied name exists |
| void Patch::set | ( | const String & | pPortName, | |
| const data::Values & | pValues, | |||
| sample | pDuration = -1 | |||
| ) | throw (SynthException) |
set port to fixed values
| pPortName | port name | |
| pValues | fixed port values | |
| pDuration | duration (in milisecs) till the control port should reach fixed value |
| SynthException | failed to set port |
| void Patch::notify | ( | const com::Message & | pMessage | ) |
message notification
| pMessage | message |
Reimplemented in RhythmPatchCross, RhythmPatchNeighbor, iso::synth::AdditiveSynthesisPatch, iso::synth::ModulationPatch, and iso::synth::StringsPatch.
| void Patch::setName | ( | const base::String & | pName | ) | [protected] |
set patch name
| pName | patch name |
| SwitchPort * iso::synth::Patch::createSwitchPort | ( | const String & | pName, | |
| const data::Values & | pValues, | |||
| void(PortOwner::*)(FunctionDataType) | pSetFunction | |||
| ) | [protected] |
create a switch port
| pName | name of switch port | |
| pValues | switch port values | |
| pSetFunction | set function called by switch port |
| SwitchPort * iso::synth::Patch::createSwitchPort | ( | const serialize::SerializeData & | pSerializeData, | |
| void(PortOwner::*)(FunctionDataType) | pSetFunction | |||
| ) | throw (serialize::SerializeException) [protected] |
create a switch port
| pSerializeData | switch port serialization data | |
| pSetFunction | set function called by switch port |
| SerializeException | failed to create switch port |
| SwitchPort * iso::synth::Patch::createSwitchPort | ( | const String & | pName, | |
| const serialize::SerializeData & | pSerializeData, | |||
| void(PortOwner::*)(FunctionDataType) | pSetFunction | |||
| ) | throw (serialize::SerializeException) [protected] |
create a switch port
| pName | name of Switch Port | |
| pSerializeData | switch port serialization data | |
| pSetFunction | set function called by switch port |
| SerializeException | switchport creation failed |
| SwitchPort * iso::synth::Patch::createFadingSwitchPort | ( | const String & | pName, | |
| FunctionType | pFunctionPointer | |||
| ) | [protected] |
| SwitchPort * iso::synth::Patch::createFadingSwitchPort | ( | const String & | pName, | |
| FunctionType | pFunctionPointer | |||
| ) | [protected] |
| SwitchPort * iso::synth::Patch::createDataSwitchPort | ( | const String & | pName, | |
| FunctionType | pFunctionPointer | |||
| ) | [protected] |
| SwitchPort * iso::synth::Patch::createDataSwitchPort | ( | const String & | pName, | |
| FunctionType | pFunctionPointer | |||
| ) | [protected] |
| virtual void iso::synth::Patch::construct | ( | ) | throw (SynthException) [protected, pure virtual] |
function to create patch
| SynthException | failed to create patch |
Implemented in iso::synth::ModulationPatch, RhythmPatchCross, RhythmPatchNeighbor, iso::synth::AdditiveSynthesisPatch, iso::synth::BandPassFilterPatch, iso::synth::DelayBandPassPatch, iso::synth::DelayLinesPatch, iso::synth::ModulationPatch, iso::synth::SamplePatch, and iso::synth::StringsPatch.
QVector<Unit*> iso::synth::Patch::mUnits [protected] |
SwitchPorts iso::synth::Patch::mSwitches [protected] |
all patch units
long iso::synth::Patch::mPreviousMessageId [protected] |
switch ports
bool iso::synth::Patch::mActive [protected] |
previous message id
1.5.1