Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //KALYWAY OFFSET FOR HOST SETTING//1.99 is the correction factor for a variation 0 to 1 >> -64+63 , the max host value over for other settings (-33+33 >>>0 to 1.02) but the 0 is always ok , the normal factor is 2 //
- const float CtrlrModulatorProcessor::getValueForHost() const
- {
- const ScopedReadLock sl (processorLock);
- getMin();
- getMax();
- if ( minValue < 0)
- {
- return (getFloatValue(currentValue+(abs(minValue)), abs(maxValue*(minValue/maxValue)*1.99)));
- }
- if (minValue > 0 );
- {
- return (getFloatValue(currentValue, maxValue));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement