00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00069 #ifndef __MK_SynthPatch_H___
00070 #define __MK_SynthPatch_H___
00071
00072 #import <Foundation/NSObject.h>
00073 #import <Foundation/NSArray.h>
00074 #import "MKPatch.h"
00075 #import "MKConductor.h"
00076 #import "MKUnitGenerator.h"
00077 #import "orch.h"
00078
00093 typedef enum _MKPhraseStatus {
00095 MK_phraseOn,
00099 MK_phraseOnPreempt,
00103 MK_phraseRearticulate,
00106 MK_phraseUpdate,
00108 MK_phraseOff,
00110 MK_phraseOffUpdate,
00112 MK_phraseEnd,
00115 MK_noPhraseActivity
00116 } MKPhraseStatus;
00117
00118 @interface MKSynthPatch : MKPatch
00119 {
00121 NSMutableArray *synthElements;
00123 id synthInstrument;
00125 int noteTag;
00127 MKSynthStatus status;
00129 id patchTemplate;
00131 BOOL isAllocated;
00133 MKOrchestra *orchestra;
00134
00135 @private
00136 unsigned short _whichList;
00137 int _orchIndex;
00138 id _next;
00139
00140
00141 MKMsgStruct *_noteEndMsgPtr;
00142
00143
00144
00145 MKMsgStruct *_noteDurMsgPtr;
00146
00147 id _sharedKey;
00148 MKMsgStruct *_notePreemptMsgPtr;
00149 short _phraseStatus;
00150 }
00151
00152 + new;
00153 + allocWithZone:(NSZone *)zone;
00154 + alloc;
00155 - copy;
00156 - copyWithZone:(NSZone *)zone;
00157
00158
00159
00160
00161
00177 + patchTemplateFor: (MKNote *) currentNote;
00178
00189 + orchestraClass;
00190
00197 + defaultPatchTemplate;
00198
00203 - synthInstrument;
00204
00217 - init;
00218
00226 - synthElementAt: (unsigned) anIndex;
00227
00238 - (void) mkdealloc;
00239
00254 - preemptFor: (MKNote *) aNote;
00255
00270 - noteOnSelf: (MKNote *) aNote;
00271
00282 - noteUpdateSelf: (MKNote *) aNote;
00283
00297 - (double) noteOffSelf: (MKNote *) aNote;
00298
00311 - noteEndSelf;
00312
00326 - noteOn: (MKNote *) aNote;
00327
00335 - noteUpdate: (MKNote *) aNote;
00336
00344 - (double) noteOff: (MKNote *) aNote;
00345
00354 - noteEnd;
00355
00367 - moved: (MKUnitGenerator *) aUG;
00368
00377 - (int) status;
00378
00387 - (BOOL) isEqual: (MKSynthPatch *) anObject;
00388
00393 - (unsigned) hash;
00394
00399 - patchTemplate;
00400
00406 - (int) noteTag;
00407
00416 - orchestra;
00417
00425 -(BOOL) isFreeable;
00426
00427 - (void) dealloc;
00428
00429
00430
00450 - controllerValues: (id) controllers;
00451
00463 - next;
00464
00470 - freeSelf;
00471
00481 - (MKPhraseStatus) phraseStatus;
00482
00483
00484
00485
00486
00487
00488
00489 @end
00490
00491 @interface MKSynthPatch(PatchLoad)
00492
00542 + (Class) findPatchClass: (NSString *) name;
00543
00544 @end
00545
00546 #endif