[Clam-devel] New code conventions. Please read. (Moving to typed controls)
Hernán Ordiales
h at ordia.com.ar
Fri Jul 25 17:41:22 PDT 2008
As we talked and agreed, Francisco started to commit some previous
steps before complete the migration to typed controls. Mainly
replacing the getIn|OutControls methods by externals ones. Please take
it in account and start using the new convention in your new code ( or
talk now or shut up forever :-D ). Here some examples:
Before:
mPitchShift.GetInControl("PitchSteps").DoControl(amount);
Now:
SendFloatToInControl(mPitchShift,"PitchSteps",amount);
Before:
GetInControl("Amount").DoControl(0.);
Now:
mAmount.DoControl(0.);
Before:
GetOutControls().GetByNumber(i).SendControl(_outputControlValues[i]);
Now:
SendFloatToOutControl(*this, i, _outputControlValues[i]);
And so...
Francisco: I think this need a wiki entry, could you make it? (maybe
here? http://iua-share.upf.edu/wikis/clam/index.php/Version_Migration_Guide)
Cheers.
--
Hernán
http://h.ordia.com.ar
GnuPG: 0xEE8A3FE9
More information about the clam-devel
mailing list