Esempio n. 1
0
	void Set(PB2Value& v, ReferenceMaker* owner, ParamID id, int tabIndex, TimeValue t)    // set from v
	{
		Noise* p = (Noise*)owner;
		if (p!=NULL)
			{
			switch (id)
				{
				case noise_lowthresh:
					{
					float high = p->GetHiThresh();
					float low = v.f;
					if (low > high) p->SetHiThresh(low+0.001f);
					break;
					}
				case noise_hithresh:
					{
					float low = p->GetLowThresh();
					float high = v.f;
					if (low > high) p->SetLowThresh(high-0.001f);
					break;
					}
				}
			p->EnableStuff();
			}

	}
Esempio n. 2
0
		void SetThing(ReferenceTarget *m) {
			noise = (Noise*)m;
			noise->EnableStuff();
			}