예제 #1
0
/**
 * @author Justin Philipp Heinermann <*****@*****.**>
 * @author Jendrik Poloczek <*****@*****.**>
 */
IWRSENSOR_PARSED_F AttitudeSensor::normalizeSensor(
    IWRSENSOR_PARSED &calibMin,  
	IWRSENSOR_PARSED &calibMax, 
    IWRSENSOR_PARSED &sensor) {

	IWRSENSOR_PARSED_F retVal;		
	
    retVal.x=normalizeValue(calibMin.x,calibMax.x,sensor.x);
	retVal.y=normalizeValue(calibMin.y,calibMax.y,sensor.y);
	retVal.z=normalizeValue(calibMin.z,calibMax.z,sensor.z);

    return retVal;
}
const void CtrlrModulatorProcessor::setParameterNotifyingHost()
{
	if (owner.getVstIndex() >= 0 && owner.isExportedToVst())
	{
		getProcessor()->setParameterNotifyingHost (owner.getVstIndex(), normalizeValue (currentValue, minValue, maxValue));
	}
}
int AnalogReader::getCurrentValue()
{
    return normalizeValue(m_currentValue);
}
const float CtrlrModulatorProcessor::getValueForHost() const
{
	const ScopedReadLock sl (processorLock);

	return (normalizeValue (currentValue, minValue, maxValue));
}