Add some foaf and doap info to zynadd.ttl
[zyn.git] / addsynth_component_filter_formant.cpp
blobe2eb4a36a71be94c803aabcc3ebb09c5741a9987
1 /* -*- Mode: C ; c-basic-offset: 2 -*- */
2 /*****************************************************************************
4 * Copyright (C) 2006,2007 Nedko Arnaudov <nedko@arnaudov.name>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19 *****************************************************************************/
21 #include <stdbool.h>
22 #include <assert.h>
24 #include "common.h"
25 #include "globals.h"
26 #include "addsynth.h"
27 #include "lfo_parameters.h"
28 #include "lfo.h"
29 #include "filter_parameters.h"
30 #include "filter_base.h"
31 #include "filter_common.h"
32 #include "analog_filter.h"
33 #include "sv_filter.h"
34 #include "formant_filter.h"
35 #include "filter.h"
36 #include "envelope_parameters.h"
37 #include "envelope.h"
38 #include "addnote.h"
39 #include "resonance.h"
40 #include "fft.h"
41 #include "oscillator.h"
42 #include "portamento.h"
43 #include "addsynth_internal.h"
44 #include "log.h"
46 #define zyn_addsynth_ptr ((struct zyn_addsynth *)context)
48 float
49 zyn_component_filter_formant_get_float(
50 void * context,
51 unsigned int parameter)
53 LOG_ERROR("Unknown formant filter float parameter %u", parameter);
54 assert(0);
56 return 0.0;
59 void
60 zyn_component_filter_formant_set_float(
61 void * context,
62 unsigned int parameter,
63 float value)
65 LOG_ERROR("Unknown formant filter float parameter %u", parameter);
66 assert(0);
69 signed int
70 zyn_component_filter_formant_get_int(
71 void * context,
72 unsigned int parameter)
74 LOG_ERROR("Unknown formant filter int/enum parameter %u", parameter);
75 assert(0);
77 return -1;
80 void
81 zyn_component_filter_formant_set_int(
82 void * context,
83 unsigned int parameter,
84 signed int value)
86 LOG_ERROR("Unknown formant filter int/enum parameter %u", parameter);
87 assert(0);
90 bool
91 zyn_component_filter_formant_get_bool(
92 void * context,
93 unsigned int parameter)
95 LOG_ERROR("Unknown formant filter bool parameter %u", parameter);
96 assert(0);
98 return false;
101 void
102 zyn_component_filter_formant_set_bool(
103 void * context,
104 unsigned int parameter,
105 bool value)
107 LOG_ERROR("Unknown formant filter bool parameter %u", parameter);
108 assert(0);
111 #undef zyn_addsynth_ptr
113 void
114 zyn_addsynth_component_init_filter_formant(
115 struct zyn_component_descriptor * component_ptr,
116 struct zyn_addsynth * zyn_addsynth_ptr)
118 ZYN_INIT_COMPONENT(component_ptr, zyn_addsynth_ptr, zyn_component_filter_formant_);