home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 January / macformat-020.iso / Shareware City / Developers / OutOfPhase1.01Source / OutOfPhase Folder / FastModulation.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-10-01  |  891 b   |  28 lines  |  [TEXT/KAHL]

  1. /* FastModulation.h */
  2.  
  3. #ifndef Included_FastModulation_h
  4. #define Included_FastModulation_h
  5.  
  6. /* FastModulation module depends on */
  7. /* MiscInfo.h */
  8. /* Audit */
  9. /* Debug */
  10. /* Definitions */
  11. /* Memory */
  12. /* ModulationSpecifier */
  13.  
  14. #include "ModulationSpecifier.h"
  15.  
  16. /* unfortunately, due to the very restrictive range of fast fixedpoint numbers */
  17. /* (i.e. -1..1), we need to use floating point values for modulation. */
  18.  
  19. /* apply a modulation chain to a value.  all vectors are of length NumModulators */
  20. /* except for OldValueVector whose length is the number of oscillators.  each */
  21. /* oscillator is looked up as OldValueVector[IndirectionTable[i]] */
  22. float                                    ApplyModulation(float Value, ModulationTypes* ModulateHow,
  23.                                                 float* ModulationScaling, float* ModulationOrigin,
  24.                                                 float* OldValueVector, long* IndirectionTable,
  25.                                                 long NumModulators);
  26.  
  27. #endif
  28.