Add some foaf and doap info to zynadd.ttl
[zyn.git] / addsynth_voice.h
blob1f3ceda4bbfbaea9d477fe84f195264a4ebdf441
1 /* -*- Mode: C ; c-basic-offset: 2 -*- */
2 /*****************************************************************************
4 * DESCRIPTION:
5 *
7 * NOTES:
8 *
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 /***********************************************************/
18 struct addsynth_voice
20 /* If the voice is enabled */
21 bool enabled;
23 /* Voice Type (sound/noise)*/
24 bool white_noise;
26 /* Filter Bypass */
27 int filterbypass;
29 /* Delay (ticks) */
30 int DelayTicks;
32 /* Waveform of the Voice */
33 REALTYPE *OscilSmp;
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;
45 LFO m_frequency_lfo;
47 /***************************
48 * AMPLITUDE PARAMETERS *
49 ***************************/
51 /* Panning 0.0=left, 0.5 - center, 1.0 = right */
52 REALTYPE Panning;
53 REALTYPE Volume;// [-1.0 .. 1.0]
55 Envelope m_amplitude_envelope;
56 LFO m_amplitude_lfo;
58 /*************************
59 * FILTER PARAMETERS *
60 *************************/
62 Filter m_voice_filter;
64 REALTYPE FilterCenterPitch;/* Filter center Pitch*/
65 REALTYPE FilterFreqTracking;
67 Envelope m_filter_envelope;
68 LFO m_filter_lfo;
70 /****************************
71 * MODULLATOR PARAMETERS *
72 ****************************/
74 unsigned int fm_type;
76 int FMVoice;
78 // Voice Output used by other voices if use this as modullator
79 REALTYPE *VoiceOut;
81 /* Wave of the Voice */
82 REALTYPE *FMSmp;
84 REALTYPE FMVolume;
85 REALTYPE FMDetune; //in cents
87 Envelope m_fm_frequency_envelope;
88 Envelope m_fm_amplitude_envelope;
91 #ifdef __cplusplus
92 extern "C" {
93 #endif
94 #if 0
95 } /* Adjust editor indent */
96 #endif
99 #if 0
100 { /* Adjust editor indent */
101 #endif
102 #ifdef __cplusplus
103 } /* extern "C" */
104 #endif
106 #endif /* #ifndef ADDSYNTH_VOICE_H__9CE7A6FD_7DC3_4A78_8F9F_6065E6563DB9__INCLUDED */