00001 /* 00002 $Id: Fm1vi.h 3291 2005-05-31 10:57:33Z leighsmith $ 00003 00004 Defined In: The MusicKit 00005 Description: 00006 Fm1vi is like Fm1i but adds periodic and random vibrato. 00007 See Fm1i.h for a description of the non-vibrato parameters. 00008 See discussion below. 00009 00010 Original Author: David A. Jaffe 00011 00012 Copyright (c) 1988-1992, NeXT Computer, Inc. 00013 Portions Copyright (c) 1994 NeXT Computer, Inc. and reproduced under license from NeXT 00014 Portions Copyright (c) 1994 Stanford University. 00015 Portions Copyright (c) 1999-2005, The MusicKit Project. 00016 */ 00051 #ifndef __MK_Fm1vi_H___ 00052 #define __MK_Fm1vi_H___ 00053 00054 #import "Fm1i.h" 00055 00056 @interface Fm1vi:Fm1i 00057 { 00058 /* Instance variables for the parameters to which the MKSynthPatch 00059 responds. */ 00060 00061 MKWaveTable *vibWaveform; /* Waveform used for vibrato. */ 00062 double svibAmp0; /* Vibrato, on a scale of 0 to 1, when modWheel is 0. */ 00063 double svibAmp1; /* Vibrato, on a scale of 0 to 1, when modWheel is 127.*/ 00064 double svibFreq0; /* Vibrato freq in Hz. when modWheel is 0. */ 00065 double svibFreq1; /* Vibrato freq in Hz. when modWheel is 1. */ 00066 00067 double rvibAmp; /* Random vibrato. On a scale of 0 to 1. */ 00068 00069 int modWheel; /* MIDI modWheel. Controls vibrato frequency and amp */ 00070 } 00071 00072 /* Default parameter values, if corresponding parameter is omitted: 00073 vibWaveform - sine wave 00074 svibAmp0 - 0.0 00075 svibAmp1 - 0.0 00076 svibFreq0 - 0.0 Hz. 00077 svibFreq1 - 0.0 Hz. 00078 00079 rvibAmp - 0.0 00080 00081 modWheel - vibrato amplitude of svibAmp1 and frequency of svibFreq1 (127) 00082 00083 */ 00084 00085 @end 00086 00087 #endif