From d48420ce85389af6d20623af83ca20082f1cdcaa Mon Sep 17 00:00:00 2001 From: Krzysztof Foltman Date: Mon, 9 Nov 2009 21:47:03 +0000 Subject: [PATCH] + Framework: placeholder for waveshaper class (need it to merge further changes from Markus) --- src/calf/Makefile.am | 2 +- src/calf/waveshaping.h | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 src/calf/waveshaping.h diff --git a/src/calf/Makefile.am b/src/calf/Makefile.am index 5688ccd..56963f6 100644 --- a/src/calf/Makefile.am +++ b/src/calf/Makefile.am @@ -5,4 +5,4 @@ noinst_HEADERS = audio_fx.h benchmark.h biquad.h buffer.h custom_ctl.h \ lv2_uri_map.h lv2-midiport.h lv2helpers.h lv2wrap.h \ main_win.h metadata.h modmatrix.h modules.h modules_dev.h modules_small.h modules_synths.h modulelist.h \ multichorus.h onepole.h organ.h osc.h osctl.h osctlnet.h osctlserv.h plugininfo.h preset.h \ - preset_gui.h primitives.h synth.h utils.h wave.h + preset_gui.h primitives.h synth.h utils.h wave.h waveshaping.h diff --git a/src/calf/waveshaping.h b/src/calf/waveshaping.h new file mode 100644 index 0000000..914637c --- /dev/null +++ b/src/calf/waveshaping.h @@ -0,0 +1,37 @@ +/* Calf DSP Library + * Placeholder for waveshaping classes + * + * Copyright (C) 2001-2009 Krzysztof Foltman + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General + * Public License along with this program; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02111-1307, USA. + */ +#ifndef __CALF_WAVESHAPING_H +#define __CALF_WAVESHAPING_H + +/// This will be a waveshaper... when I'll code it (-: +/// (or get Tom Szlagyi's permission to use his own) +class waveshaper { +public: + waveshaper(); + void activate() {} + void deactivate() {} + void set_params(float blend, float drive) {} + void set_sample_rate(uint32_t sr) {} + float process(float in) { return in; } + float get_distortion_level() { return 1; } +}; + +#endif -- 2.11.4.GIT