00001 /* 00002 $Id: Shapev.h 3291 2005-05-31 10:57:33Z leighsmith $ 00003 00004 Defined In: The MusicKit 00005 Description: 00006 (See discussion below) 00007 00008 Original Author: Eric J. Graves and David A. Jaffe 00009 00010 Copyright (c) 1992 Eric J. Graves & Stanford University. 00011 Portions Copyright (c) 1994 NeXT Computer, Inc. and reproduced under license from NeXT 00012 Portions Copyright (c) 1994 Stanford University. 00013 Portions Copyright (c) 1999-2005, The MusicKit Project. 00014 */ 00055 #ifndef __MK_Shapev_H___ 00056 #define __MK_Shapev_H___ 00057 00058 #import "Shape.h" 00059 #import <MusicKit/MKWaveTable.h> 00060 00061 @interface Shapev:Shape 00062 { 00063 MKWaveTable *vibWaveform; /* Waveform used for vibrato. */ 00064 double svibAmp0; /* Vibrato, on a scale of 0 to 1, when modWheel is 0. */ 00065 double svibAmp1; /* Vibrato, on a scale of 0 to 1, when modWheel is 127.*/ 00066 double svibFreq0; /* Vibrato freq in Hz. when modWheel is 0. */ 00067 double svibFreq1; /* Vibrato freq in Hz. when modWheel is 1. */ 00068 double rvibAmp; /* Random vibrato. On a scale of 0 to 1. */ 00069 int modWheel; /* MIDI modWheel. Controls vibrato frequency and amp */ 00070 id svib,nvib,onep,add; 00071 } 00072 00081 + patchTemplateFor: (MKNote *) aNote; 00082 00083 @end 00084 00085 #endif