CanDos, Properties and UniquePluginId

Topics: Backward Compatibility, Getting Started, Newbie, Plugin Parameters
Nov 10, 2012 at 8:50 PM

Hi, a couple of more beginner questions (converting an existing plugin).

How do you set the plugin CanDos (e.g receiveVstEvents, receiveVstMidiEvent,
  sendVstEvents, sendVstMidiEvent, receiveVstTimeInfo)?

And also Properties (e.g. prCanMono, prCanReplacing, prIsSynth, prProgramsAreChunks)?

Also UniquePluginId only takes an integer, but it can be a 4 character string. I think this is probably not used much anymore though.

Nov 10, 2012 at 9:08 PM

Most of the canDo's and flags are set for you by the framework. It knows by the interfaces you implement what features should be turned on. 

All you need to specify are the constructor parameters of one of the two available plugin base classes.

Use the FourCharacterCode class (in Core) to convert a 4 char string to an int (ToInt32).

Hope it helps.