Expose all 8 voices
[zyn.git] / addsynth_component_filter_formant.cpp
blobecfb05088a9bbca12034b5eb87037edadc93f365
1 /* -*- Mode: C ; c-basic-offset: 2 -*- */
2 /*****************************************************************************
4 * Copyright (C) 2006,2007,2008,2009 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 "filter_parameters.h"
29 #include "envelope_parameters.h"
30 #include "resonance.h"
31 #include "fft.h"
32 #include "oscillator.h"
33 #include "portamento.h"
34 #include "addsynth_internal.h"
35 #include "log.h"
37 #define zyn_addsynth_ptr ((struct zyn_addsynth *)context)
39 float
40 zyn_component_filter_formant_get_float(
41 void * context,
42 unsigned int parameter)
44 LOG_ERROR("Unknown formant filter float parameter %u", parameter);
45 assert(0);
47 return 0.0;
50 void
51 zyn_component_filter_formant_set_float(
52 void * context,
53 unsigned int parameter,
54 float value)
56 LOG_ERROR("Unknown formant filter float parameter %u", parameter);
57 assert(0);
60 signed int
61 zyn_component_filter_formant_get_int(
62 void * context,
63 unsigned int parameter)
65 LOG_ERROR("Unknown formant filter int/enum parameter %u", parameter);
66 assert(0);
68 return -1;
71 void
72 zyn_component_filter_formant_set_int(
73 void * context,
74 unsigned int parameter,
75 signed int value)
77 LOG_ERROR("Unknown formant filter int/enum parameter %u", parameter);
78 assert(0);
81 bool
82 zyn_component_filter_formant_get_bool(
83 void * context,
84 unsigned int parameter)
86 LOG_ERROR("Unknown formant filter bool parameter %u", parameter);
87 assert(0);
89 return false;
92 void
93 zyn_component_filter_formant_set_bool(
94 void * context,
95 unsigned int parameter,
96 bool value)
98 LOG_ERROR("Unknown formant filter bool parameter %u", parameter);
99 assert(0);
102 #undef zyn_addsynth_ptr
104 void
105 zyn_addsynth_component_init_filter_formant(
106 struct zyn_component_descriptor * component_ptr,
107 struct zyn_addsynth * zyn_addsynth_ptr)
109 ZYN_INIT_COMPONENT(component_ptr, zyn_addsynth_ptr, zyn_component_filter_formant_);