Advertisement
Guest User

Untitled

a guest
Jul 3rd, 2013
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. //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 //
  2.  
  3. const float CtrlrModulatorProcessor::getValueForHost() const
  4.  
  5. {
  6.  
  7. const ScopedReadLock sl (processorLock);
  8.  
  9. getMin();
  10. getMax();
  11.  
  12. if ( minValue < 0)
  13. {
  14. return (getFloatValue(currentValue+(abs(minValue)), abs(maxValue*(minValue/maxValue)*1.99)));
  15.  
  16. }
  17. if (minValue > 0 );
  18. {
  19. return (getFloatValue(currentValue, maxValue));
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement