home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / SoundMusicDSP / Resound-2.5-MIHS / APIExamples / Math / MathModule.h < prev    next >
Encoding:
Text File  |  1997-12-05  |  1.1 KB  |  50 lines

  1.  
  2. /* 
  3. MathModule
  4. For Resound 2.2
  5. Sean Luke
  6. Jan 10 1995
  7.  
  8. An example math transform module, including reversing, inverting,
  9. abs, volume and vertical shifting.  This module includes a custom
  10. nib file and several menu additions to Resound's Modules menu.
  11.  
  12. INTEL READY
  13.  
  14.  
  15. Copyright (c) 1995 by Sean Luke
  16.  
  17. Permission to use, copy, modify, and distribute this material 
  18. for any purpose and without fee is hereby granted.  SEAN LUKE 
  19. MAKES NO REPRESENTATIONS ABOUT THE ACCURACY OR SUITABILITY 
  20. OF THIS MATERIAL FOR ANY PURPOSE.  IT IS PROVIDED "AS IS", 
  21. WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES.
  22.  
  23. */
  24.  
  25. #import "Module.h"
  26.  
  27. @interface MathModule:Module
  28. {
  29.     BOOL nib_loaded;        // panels have been loaded
  30.     id    multiplyPanel;
  31.     id    percentChangeScroller;
  32.     id    percentChangeField;
  33.     id    shiftPanel;
  34.     id    shiftSliderValue;
  35. }
  36.  
  37. - init;
  38. - reverseIt:sender;            // reverse, but keep channels correct
  39. - invertIt:sender;            // invert
  40. - absIt:sender;                // perform absolute value
  41. - shiftIt:sender;            // changing vertical position
  42. - multiplyIt:sender;        // changing volume
  43. - showShiftPanel:sender;
  44. - showMultiplyPanel:sender;
  45. - halve:sender;
  46. - double:sender;
  47. - maximize:sender;
  48.  
  49. @end
  50.