I've provided the pre-class code and a version with the green variables so that people can make their own versions.
I'm still hoping to find a way of writing the code so that the !SoftTakeover and !PreviousControlSourceIndex don't have to be global controllers and could stay hidden inside the class...
In the Oscillator example, note the code under "ControlSources" and "SoftTakeoverOn" that apply when the pen functions are currently chosen as control sources. You'll probably usually want to do this for the pen functions.
-- PhilCurtis - 21 Feb 2009