00001 /* 00002 $Id: Out1nUG.h 3282 2005-05-22 07:35:24Z leighsmith $ 00003 00004 Defined In: The MusicKit 00005 Description: 00006 Out1nUG - from dsp macro /usr/lib/dsp/ugsrc/out1n.asm (see source for details). 00007 00008 Out1n writes its input signal to the Nth channel of the output stream, which 00009 must be set up appropraitely. 00010 The stream is cleared before each DSP tick (each orchestra program 00011 iteration). Out1n also provides a scaling on the output channel. 00012 00013 You instantiate a subclass of the form 00014 Out1nUG<a>, where <a> = space of input 00015 00016 Original Author: David A. Jaffe 00017 00018 Copyright (c) 1993 Stanford University. All rights reserved. 00019 Portions Copyright (c) 1999-2001, The MusicKit Project. 00020 */ 00021 // classgroup Sound Inputs and Outputs 00065 #ifndef __MK_Out1nUG_H___ 00066 #define __MK_Out1nUG_H___ 00067 00068 #import <MusicKit/MKUnitGenerator.h> 00069 00070 @interface Out1nUG : MKUnitGenerator 00071 { 00072 BOOL _reservedOut1n1; 00073 BOOL _reservedOut1n2; 00074 } 00075 00083 +(BOOL)shouldOptimize:(unsigned) arg; 00084 00094 - setScale: (double) value; 00095 00112 - setChannel: (int) chan; 00113 00120 -runSelf; 00121 /* If scaling has not been set, sets it to 1-e. */ 00122 00132 -setInput: (id) aPatchPoint; 00133 /* Sets input patch point. */ 00134 00135 @end 00136 00137 #endif