00001 /* 00002 $Id: Add2UG.h 3255 2005-05-14 03:27:27Z leighsmith $ 00003 00004 Defined In: The MusicKit 00005 Description: 00006 Add2UG - from dsp macro /usr/lib/dsp/ugsrc/add2.asm (see source for details). 00007 Outputs the sum of two input signals. 00008 00009 Original Author: David A. Jaffe 00010 00011 Copyright (c) 1988-1992, NeXT Computer, Inc. 00012 Portions Copyright (c) 1994 NeXT Computer, Inc. and reproduced under license from NeXT 00013 Portions Copyright (c) 1994 Stanford University. 00014 Portions Copyright (c) 1999-2001, The MusicKit Project. 00015 */ 00016 // classgroup Delays and Time-Modification Units 00039 #ifndef __MK_Add2UG_H___ 00040 #define __MK_Add2UG_H___ 00041 00042 #import <MusicKit/MKUnitGenerator.h> 00043 00044 @interface Add2UG:MKUnitGenerator 00045 00046 +(BOOL)shouldOptimize:(unsigned) arg; 00047 /* Specifies that all arguments are to be optimized if possible */ 00048 00058 -setInput1: (id) aPatchPoint; 00059 /* Sets input1 of adder. */ 00060 00061 00071 -setInput2: (id) aPatchPoint; 00072 /* Sets input2 of adder. */ 00073 00074 00084 -setOutput: (id) aPatchPoint; 00085 /* Sets output of adder. */ 00086 00087 @end 00088 00089 #endif