00001 /* 00002 $Id: ScaleUG.h 3255 2005-05-14 03:27:27Z leighsmith $ 00003 00004 Defined In: The MusicKit 00005 Description: 00006 ScaleUG - from dsp macro /usr/lib/dsp/ugsrc/scale.asm (see source for details). 00007 00008 You instantiate a subclass of the form 00009 ScaleUG<a><b>, where <a> = space of output and <b> = space of input. 00010 00011 The scale unit-generator simply copies one signal vector over to 00012 another, multiplying by a scale factor. The output patchpoint can 00013 be the same as the input patchpoint. 00014 00015 Original Author: David A. Jaffe 00016 00017 Copyright (c) 1988-1992, NeXT Computer, Inc. 00018 Portions Copyright (c) 1994 NeXT Computer, Inc. and reproduced under license from NeXT 00019 Portions Copyright (c) 1994 Stanford University. 00020 Portions Copyright (c) 1999-2001, The MusicKit Project. 00021 */ 00022 // classgroup Patchpoint Arithmetic 00037 #ifndef __MK_ScaleUG_H___ 00038 #define __MK_ScaleUG_H___ 00039 00040 #import <MusicKit/MKUnitGenerator.h> 00041 00042 @interface ScaleUG: MKUnitGenerator 00043 00049 - setInput: (id) aPatchPoint; 00050 00056 - setOutput: (id) aPatchPoint; 00057 00067 - setScale: (double) value; 00068 00074 + (BOOL) shouldOptimize: (unsigned) arg; 00075 00076 @end 00077 00078 #endif