1 /* -*- Mode: C ; c-basic-offset: 2 -*- */
2 /*****************************************************************************
10 *****************************************************************************/
12 #ifndef ADDSYNTH_VOICE_H__9CE7A6FD_7DC3_4A78_8F9F_6065E6563DB9__INCLUDED
13 #define ADDSYNTH_VOICE_H__9CE7A6FD_7DC3_4A78_8F9F_6065E6563DB9__INCLUDED
15 /***********************************************************/
16 /* VOICE PARAMETERS */
17 /***********************************************************/
20 /* If the voice is enabled */
23 /* Voice Type (sound/noise)*/
32 /* Waveform of the Voice */
35 /************************************
36 * FREQUENCY PARAMETERS *
37 ************************************/
38 int fixedfreq
;//if the frequency is fixed to 440 Hz
39 int fixedfreqET
;//if the "fixed" frequency varies according to the note (ET)
41 // cents = basefreq*VoiceDetune
42 REALTYPE Detune
,FineDetune
;
44 Envelope m_frequency_envelope
;
47 /***************************
48 * AMPLITUDE PARAMETERS *
49 ***************************/
51 /* Panning 0.0=left, 0.5 - center, 1.0 = right */
53 REALTYPE Volume
;// [-1.0 .. 1.0]
55 Envelope m_amplitude_envelope
;
58 /*************************
60 *************************/
62 Filter m_voice_filter
;
64 REALTYPE FilterCenterPitch
;/* Filter center Pitch*/
65 REALTYPE FilterFreqTracking
;
67 Envelope m_filter_envelope
;
70 /****************************
71 * MODULLATOR PARAMETERS *
72 ****************************/
78 // Voice Output used by other voices if use this as modullator
81 /* Wave of the Voice */
85 REALTYPE FMDetune
; //in cents
87 Envelope m_fm_frequency_envelope
;
88 Envelope m_fm_amplitude_envelope
;
95 } /* Adjust editor indent */
100 { /* Adjust editor indent */
106 #endif /* #ifndef ADDSYNTH_VOICE_H__9CE7A6FD_7DC3_4A78_8F9F_6065E6563DB9__INCLUDED */