aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-05-13 16:04:14 +0000
committerDavid Robillard <d@drobilla.net>2009-05-13 16:04:14 +0000
commit2532a87bd1c1d2731b72f6c50e17249c62c25691 (patch)
treeb2d5b1ca9f42ff5d21d15b2c6e009c3c9ff968f9
parent69c44871c2b64329956f090d37dd14495059f6db (diff)
Strip trailing whitespace.
git-svn-id: http://svn.drobilla.net/lad/trunk/omins@1999 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--src/adenv.c4
-rw-r--r--src/adenv_lvl.c6
-rw-r--r--src/comparison_4440.c10
-rw-r--r--src/dahdsr_fexp.c2
-rw-r--r--src/dahdsr_hexp.c2
-rw-r--r--src/fast_crossfade_4410.c10
-rw-r--r--src/formant_filter_4300.c12
-rw-r--r--src/hz_voct_4200.c12
-rw-r--r--src/ladspa.h38
-rw-r--r--src/masher_4310.c14
-rw-r--r--src/multiplexer_4420.c6
-rw-r--r--src/power_4400.c12
-rw-r--r--src/prob_switch_2667.c14
-rw-r--r--src/range_trans_4210.c6
-rw-r--r--src/sample_and_hold_4430.c8
-rw-r--r--src/signal_abs_2669.c12
-rw-r--r--src/slew_limiter_2743.c6
-rw-r--r--src/slide_2741.c4
-rw-r--r--src/waveguide_mesh_2670.c56
19 files changed, 117 insertions, 117 deletions
diff --git a/src/adenv.c b/src/adenv.c
index f22528b..eb97108 100644
--- a/src/adenv.c
+++ b/src/adenv.c
@@ -1,7 +1,7 @@
/*
adenv.c - A LADSPA plugin to generate percussive (i.e no sustain time), linear AD envelopes.
-
- Copyright (C) 2005 Loki Davison
+
+ Copyright (C) 2005 Loki Davison
based on ADENV by Mike Rawes
This program is free software; you can redistribute it and/or modify
diff --git a/src/adenv_lvl.c b/src/adenv_lvl.c
index 3880400..40a8d5a 100644
--- a/src/adenv_lvl.c
+++ b/src/adenv_lvl.c
@@ -1,8 +1,8 @@
/*
adenv.c - A LADSPA plugin to generate percussive (i.e no sustain time), linear AD envelopes.
- This one takes in levels to make filter sweeps/etc easier.
-
- Copyright (C) 2005 Loki Davison
+ This one takes in levels to make filter sweeps/etc easier.
+
+ Copyright (C) 2005 Loki Davison
based of DADSR by Mike Rawes
This program is free software; you can redistribute it and/or modify
diff --git a/src/comparison_4440.c b/src/comparison_4440.c
index 90cb0b1..e377223 100644
--- a/src/comparison_4440.c
+++ b/src/comparison_4440.c
@@ -1,15 +1,15 @@
/* Comparison plugin. Copyright (C) 2005 Thorsten Wilms.
- *
+ *
* This plugin is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free
* Software Foundation; either version 2 of the License, or (at your option)
* any later version.
- *
+ *
* This plugin 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 General Public License for
* details.
- *
+ *
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
@@ -105,7 +105,7 @@ comp_run_ac(LADSPA_Handle instance, unsigned long nframes)
LADSPA_Data* const a_larger = plugin->a_larger_buffer;
LADSPA_Data* const equal = plugin->equal_buffer;
unsigned long i;
-
+
for (i = 0; i < nframes; i++) {
equal[i] = (a[i] == b) ? 1.0 : 0.0;
larger[i] = (a[i] > b) ? a[i] : b;
@@ -126,7 +126,7 @@ comp_run_aa(LADSPA_Handle instance, unsigned long nframes)
LADSPA_Data* const a_larger = plugin->a_larger_buffer;
LADSPA_Data* const equal = plugin->equal_buffer;
unsigned long i;
-
+
for (i = 0; i < nframes; i++) {
equal[i] = (a[i] == b[i]) ? 1.0 : 0.0;
larger[i] = (a[i] > b[i]) ? a[i] : b[i];
diff --git a/src/dahdsr_fexp.c b/src/dahdsr_fexp.c
index 557ae40..c66e2a9 100644
--- a/src/dahdsr_fexp.c
+++ b/src/dahdsr_fexp.c
@@ -1,6 +1,6 @@
/*
dahdsr_fexp.c - A LADSPA plugin to generate DAHDSR envelopes
- exponential attack, decay and release version.
+ exponential attack, decay and release version.
Copyright (C) 2005 Loki Davison, based on DAHDSR by Mike Rawes
This program is free software; you can redistribute it and/or modify
diff --git a/src/dahdsr_hexp.c b/src/dahdsr_hexp.c
index 0b20c45..455ba0f 100644
--- a/src/dahdsr_hexp.c
+++ b/src/dahdsr_hexp.c
@@ -1,6 +1,6 @@
/*
dahdsr.so.c - A LADSPA plugin to generate DAHDSR envelopes
- linear attack, exponential decay and release version.
+ linear attack, exponential decay and release version.
Copyright (C) 2005 Loki Davison, based on DAHDSR by Mike Rawes
This program is free software; you can redistribute it and/or modify
diff --git a/src/fast_crossfade_4410.c b/src/fast_crossfade_4410.c
index bb27066..3089859 100644
--- a/src/fast_crossfade_4410.c
+++ b/src/fast_crossfade_4410.c
@@ -1,18 +1,18 @@
/* Crossfade with AR Level plugin. Copyright (C) 2005 Thorsten Wilms.
* Based on Dave Robillard's "Hz to AMS style V/Oct" plugin for the skeleton.
- * Thanks to Florian Schmidt for explaining how to calculate the scale values
+ * Thanks to Florian Schmidt for explaining how to calculate the scale values
* before I could work it out myself! ;-)
- *
+ *
* This plugin is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free
* Software Foundation; either version 2 of the License, or (at your option)
* any later version.
- *
+ *
* This plugin 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 General Public License for
* details.
- *
+ *
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
@@ -87,7 +87,7 @@ XFADE_run_ar(LADSPA_Handle instance, unsigned long nframes)
XFADE* plugin;
unsigned long i;
float l;
-
+
plugin = (XFADE*)instance;
level = plugin->level_buffer;
diff --git a/src/formant_filter_4300.c b/src/formant_filter_4300.c
index ab7dbc7..c7fff62 100644
--- a/src/formant_filter_4300.c
+++ b/src/formant_filter_4300.c
@@ -4,17 +4,17 @@
* Copyright (C) 2001 David Griffiths <dave@pawfal.org>
*
* Based on public domain code from alex@smartelectronix.com
- *
+ *
* This plugin is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free
* Software Foundation; either version 2 of the License, or (at your option)
* any later version.
- *
+ *
* This plugin 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 General Public License for
* details.
- *
+ *
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
@@ -98,7 +98,7 @@ formant_activate(LADSPA_Handle instance)
{
Formant* plugin = (Formant*)instance;
int i, j;
-
+
for (i = 0; i < 5; ++i)
for (j = 0; j < 10; ++j)
plugin->memory[i][j] = 0.0;
@@ -138,12 +138,12 @@ formant_run_vc(LADSPA_Handle instance, unsigned long nframes)
LADSPA_Data res;
LADSPA_Data o[5];
size_t n, v;
-
+
for (n=0; n < nframes; ++n) {
vowel = plugin->vowel[0];
in = plugin->input[n];
out = plugin->output;
-
+
for (v=0; v < 5; ++v) {
res = (float) (coeff[v][0] * (in * 0.1f) +
coeff[v][1] * plugin->memory[v][0] +
diff --git a/src/hz_voct_4200.c b/src/hz_voct_4200.c
index c0cf91d..ce6517b 100644
--- a/src/hz_voct_4200.c
+++ b/src/hz_voct_4200.c
@@ -1,15 +1,15 @@
/* Hz to AMS style V/Oct plugin. Copyright (C) 2005 Dave Robillard.
- *
+ *
* This plugin is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free
* Software Foundation; either version 2 of the License, or (at your option)
* any later version.
- *
+ *
* This plugin 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 General Public License for
* details.
- *
+ *
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
@@ -82,7 +82,7 @@ hzvoct_run_cr(LADSPA_Handle instance, unsigned long nframes)
plugin = (HzVoct*)instance;
log2inv = 1.0f/logf(2.0f);
-
+
*plugin->output_buffer = logf(*plugin->input_buffer * eighth) * log2inv - offset;
}
@@ -99,11 +99,11 @@ hzvoct_run_ar(LADSPA_Handle instance, unsigned long nframes)
const float offset = 5.0313842; // + octave, ... -1, 0, 1 ...
plugin = (HzVoct*)instance;
- log2inv = 1.0f/logf(2.0);
+ log2inv = 1.0f/logf(2.0);
input = plugin->input_buffer;
output = plugin->output_buffer;
-
+
// Inverse of the formula used in AMS's converter module (except the 1/8 part)
for (i = 0; i < nframes; i++)
*output++ = logf((*input++) * eighth) * log2inv - offset;
diff --git a/src/ladspa.h b/src/ladspa.h
index 5c30a8a..b1a9c4e 100644
--- a/src/ladspa.h
+++ b/src/ladspa.h
@@ -3,17 +3,17 @@
Linux Audio Developer's Simple Plugin API Version 1.1[LGPL].
Copyright (C) 2000-2002 Richard W.E. Furse, Paul Barton-Davis,
Stefan Westerfeld.
-
+
This library 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.1 of
the License, or (at your option) any later version.
-
+
This library 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 library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
@@ -32,7 +32,7 @@ extern "C" {
/*****************************************************************************/
-/* Overview:
+/* Overview:
There is a large number of synthesis packages in use or development
on the Linux platform at this time. This API (`The Linux Audio
@@ -76,7 +76,7 @@ extern "C" {
/* Fundamental data type passed in and out of plugin. This data type
is used to communicate audio samples and control values. It is
assumed that the plugin will work sensibly given any numeric input
- value although it may have a preferred range (see hints below).
+ value although it may have a preferred range (see hints below).
For audio it is generally assumed that 1.0f is the `0dB' reference
amplitude and is a `normal' signal level. */
@@ -85,8 +85,8 @@ typedef float LADSPA_Data;
/*****************************************************************************/
-/* Special Plugin Properties:
-
+/* Special Plugin Properties:
+
Optional features of the plugin type are encapsulated in the
LADSPA_Properties type. This is assembled by ORing individual
properties together. */
@@ -122,7 +122,7 @@ typedef int LADSPA_Properties;
(3) The plugin will not access files, devices, pipes, sockets, IPC
or any other mechanism that might result in process or thread
blocking.
-
+
(4) The plugin will take an amount of time to execute a run() or
run_adding() call approximately of form (A+B*SampleCount) where A
and B depend on the machine and host in use. This amount of time
@@ -137,7 +137,7 @@ typedef int LADSPA_Properties;
/*****************************************************************************/
-/* Plugin Ports:
+/* Plugin Ports:
Plugins have `ports' that are inputs or outputs for audio or
data. Ports can communicate arrays of LADSPA_Data (for audio
@@ -172,23 +172,23 @@ typedef int LADSPA_PortDescriptor;
/*****************************************************************************/
-/* Plugin Port Range Hints:
+/* Plugin Port Range Hints:
The host may wish to provide a representation of data entering or
leaving a plugin (e.g. to generate a GUI automatically). To make
this more meaningful, the plugin should provide `hints' to the host
describing the usual values taken by the data.
-
+
Note that these are only hints. The host may ignore them and the
plugin must not assume that data supplied to it is meaningful. If
the plugin receives invalid input data it is expected to continue
to run without failure and, where possible, produce a sensible
output (e.g. a high-pass filter given a negative cutoff frequency
might switch to an all-pass mode).
-
+
Hints are meaningful for all input and output ports but hints for
input control ports are expected to be particularly useful.
-
+
More hint information is encapsulated in the
LADSPA_PortRangeHintDescriptor type which is assembled by ORing
individual hint types together. Hints may require further
@@ -353,7 +353,7 @@ typedef struct _LADSPA_PortRangeHint {
/*****************************************************************************/
-/* Plugin Handles:
+/* Plugin Handles:
This plugin handle indicates a particular instance of the plugin
concerned. It is valid to compare this to NULL (0 for C++) but
@@ -364,13 +364,13 @@ typedef void * LADSPA_Handle;
/*****************************************************************************/
-/* Descriptor for a Type of Plugin:
+/* Descriptor for a Type of Plugin:
This structure is used to describe a plugin type. It provides a
number of functions to examine the type, instantiate it, link it to
buffers and workspaces and to run it. */
-typedef struct _LADSPA_Descriptor {
+typedef struct _LADSPA_Descriptor {
/* This numeric identifier indicates the plugin type
uniquely. Plugin programmers may reserve ranges of IDs from a
@@ -430,7 +430,7 @@ typedef struct _LADSPA_Descriptor {
instantiation function accepts a sample rate as a parameter. The
plugin descriptor from which this instantiate function was found
must also be passed. This function must return NULL if
- instantiation fails.
+ instantiation fails.
Note that instance initialisation should generally occur in
activate() rather than here. */
@@ -551,7 +551,7 @@ typedef struct _LADSPA_Descriptor {
/* Once an instance of a plugin has been finished with it can be
deleted using the following function. The instance handle passed
ceases to be valid after this call.
-
+
If activate() was called for a plugin instance then a
corresponding call to deactivate() must be made before cleanup()
is called. */
@@ -589,7 +589,7 @@ typedef struct _LADSPA_Descriptor {
const LADSPA_Descriptor * ladspa_descriptor(unsigned long Index);
/* Datatype corresponding to the ladspa_descriptor() function. */
-typedef const LADSPA_Descriptor *
+typedef const LADSPA_Descriptor *
(*LADSPA_Descriptor_Function)(unsigned long Index);
/**********************************************************************/
diff --git a/src/masher_4310.c b/src/masher_4310.c
index 1c5c933..374b43d 100644
--- a/src/masher_4310.c
+++ b/src/masher_4310.c
@@ -63,7 +63,7 @@ typedef struct {
LADSPA_Data *grain_pitch;
LADSPA_Data *density;
LADSPA_Data *output;
-
+
Sample grain_store[GRAINSTORE_SIZE];
GrainDesc overlaps[OVERLAPS_SIZE];
size_t overlaps_size;
@@ -93,7 +93,7 @@ masher_activate(LADSPA_Handle instance)
{
Masher *plugin = (Masher*)instance;
int i = 0;
-
+
plugin->overlaps_size = 0;
plugin->write_grain = 0;
@@ -147,17 +147,17 @@ void
masher_run(LADSPA_Handle instance, unsigned long nframes)
{
Masher* plugin = (Masher*)instance;
-
+
static const int randomness = 1.0; // FIXME: make a control port
int read_grain = 0; // FIXME: what is this?
int grain_store_size = 100; // FIXME: what is this? (max 1000)
const LADSPA_Data grain_pitch = *plugin->grain_pitch;
const LADSPA_Data density = *plugin->density;
-
+
const LADSPA_Data* const in = plugin->input;
LADSPA_Data* const out = plugin->output;
-
+
Sample out_sample = { out, nframes };
size_t n = 0;
@@ -166,7 +166,7 @@ masher_run(LADSPA_Handle instance, unsigned long nframes)
bool first = true;
size_t grain_index = 0;
size_t next_grain = 0;
-
+
// Zero output buffer
for (n = 0; n < nframes; ++n)
out[n] = 0.0f;
@@ -210,7 +210,7 @@ masher_run(LADSPA_Handle instance, unsigned long nframes)
if (n + grain_length > nframes) {
if (plugin->overlaps_size < OVERLAPS_SIZE) {
GrainDesc new_grain;
-
+
new_grain.pos = n;
new_grain.grain = grain_num;
plugin->overlaps[plugin->overlaps_size++] = new_grain;
diff --git a/src/multiplexer_4420.c b/src/multiplexer_4420.c
index d9dd206..624e6c8 100644
--- a/src/multiplexer_4420.c
+++ b/src/multiplexer_4420.c
@@ -1,16 +1,16 @@
/* Multiplxer plugin. Copyright (C) 2005 Thorsten Wilms.
* GATEd on Dave Robillard's "Hz to AMS style V/Oct" plugin for the skeleton.
- *
+ *
* This plugin is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free
* Software Foundation; either version 2 of the License, or (at your option)
* any later version.
- *
+ *
* This plugin 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 General Public License for
* details.
- *
+ *
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
diff --git a/src/power_4400.c b/src/power_4400.c
index 972f120..befd373 100644
--- a/src/power_4400.c
+++ b/src/power_4400.c
@@ -1,17 +1,17 @@
/* Base to the power of Exponent plugin. Copyright (C) 2005 Thorsten Wilms.
- * Based on Dave Robillard's "Hz to AMS style V/Oct" plugin for the skeleton,
+ * Based on Dave Robillard's "Hz to AMS style V/Oct" plugin for the skeleton,
* and there's not much else in here :).
- *
+ *
* This plugin is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free
* Software Foundation; either version 2 of the License, or (at your option)
* any later version.
- *
+ *
* This plugin 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 General Public License for
* details.
- *
+ *
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
@@ -80,7 +80,7 @@ void
POWER_run_cr(LADSPA_Handle instance, unsigned long nframes)
{
POWER* plugin = (POWER*)instance;
-
+
*plugin->result_buffer = powf(*plugin->base_buffer, *plugin->exponent_buffer);
}
@@ -93,7 +93,7 @@ POWER_run_ar(LADSPA_Handle instance, unsigned long nframes)
const LADSPA_Data* const exponent = plugin->exponent_buffer;
LADSPA_Data* const result = plugin->result_buffer;
unsigned long i;
-
+
for (i = 0; i < nframes; ++i)
result[i] = powf(base[i], exponent[i]);
}
diff --git a/src/prob_switch_2667.c b/src/prob_switch_2667.c
index 1c385a8..fe35fdc 100644
--- a/src/prob_switch_2667.c
+++ b/src/prob_switch_2667.c
@@ -1,17 +1,17 @@
/* This file is an audio plugin. Copyright (C) 2005 Loki Davison.
- *
- * Probability parameter is the prob of input 1 being the output value.
- *
+ *
+ * Probability parameter is the prob of input 1 being the output value.
+ *
* This plugin is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free
* Software Foundation; either version 2 of the License, or (at your option)
* any later version.
- *
+ *
* This plugin 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 General Public License for
* details.
- *
+ *
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
@@ -98,7 +98,7 @@ probswitch_run_cr(LADSPA_Handle instance, unsigned long nframes)
if((temp/RAND_MAX) <= prob)
{
output[i] = input1[i];
- }
+ }
else
{
output[i] = input2[i];
@@ -123,7 +123,7 @@ probswitch_run_ar(LADSPA_Handle instance, unsigned long nframes)
if((rand()/RAND_MAX) <= prob[i])
{
output[i] = input1[i];
- }
+ }
else
{
output[i] = input2[i];
diff --git a/src/range_trans_4210.c b/src/range_trans_4210.c
index 1ea5f7e..5c0d085 100644
--- a/src/range_trans_4210.c
+++ b/src/range_trans_4210.c
@@ -1,15 +1,15 @@
/* This file is an audio plugin. Copyright (C) 2005 Dave Robillard.
- *
+ *
* This plugin is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free
* Software Foundation; either version 2 of the License, or (at your option)
* any later version.
- *
+ *
* This plugin 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 General Public License for
* details.
- *
+ *
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
diff --git a/src/sample_and_hold_4430.c b/src/sample_and_hold_4430.c
index 28b7198..652f26e 100644
--- a/src/sample_and_hold_4430.c
+++ b/src/sample_and_hold_4430.c
@@ -1,16 +1,16 @@
/* Sample and Hold. Copyright (C) 2005 Thorsten Wilms.
* Based on Dave Robillard's "Hz to AMS style V/Oct" plugin for the skeleton.
- *
+ *
* This plugin is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free
* Software Foundation; either version 2 of the License, or (at your option)
* any later version.
- *
+ *
* This plugin 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 General Public License for
* details.
- *
+ *
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
@@ -113,7 +113,7 @@ SH_run_cr(LADSPA_Handle instance, unsigned long nframes)
plugin->last_trigger = trigger[i];
output[i] = plugin->hold;
}
-
+
/* Continuous triggering off
* (only sample on first frame with trigger > threshold) */
} else {
diff --git a/src/signal_abs_2669.c b/src/signal_abs_2669.c
index c9eb99e..f709426 100644
--- a/src/signal_abs_2669.c
+++ b/src/signal_abs_2669.c
@@ -1,17 +1,17 @@
/* This file is an audio plugin. Copyright (C) 2005 Loki Davison.
- *
+ *
* Sign parameter is the sign of the output, 0 being negative and >0 begin positive.
- *
+ *
* This plugin is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free
* Software Foundation; either version 2 of the License, or (at your option)
* any later version.
- *
+ *
* This plugin 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 General Public License for
* details.
- *
+ *
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
@@ -90,7 +90,7 @@ signalabs_run_cr(LADSPA_Handle instance, unsigned long nframes)
if(sign > 0)
{
output[i] = fabs(input1[i]);
- }
+ }
else
{
output[i] = fabs(input1[i]) * -1;
@@ -114,7 +114,7 @@ signalabs_run_ar(LADSPA_Handle instance, unsigned long nframes)
if(sign[i] > 0.5)
{
output[i] = fabs(input1[i]);
- }
+ }
else
{
output[i] = fabs(input1[i]) * -1;
diff --git a/src/slew_limiter_2743.c b/src/slew_limiter_2743.c
index 370dcac..74ba867 100644
--- a/src/slew_limiter_2743.c
+++ b/src/slew_limiter_2743.c
@@ -9,12 +9,12 @@
* the terms of the GNU General Public License as published by the Free
* Software Foundation; either version 2 of the License, or (at your option)
* any later version.
- *
+ *
* This plugin 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 General Public License for
* details.
- *
+ *
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
@@ -169,7 +169,7 @@ void _init(void)
static const unsigned long ids[] = { 2743, 2744 };
static const char * labels[] = { "slew_limiter_ra", "slew_limiter_rc" };
static const char * names[] = { "Slew limiter (RA)", "Slew limiter (RC)" };
-
+
char** port_names;
LADSPA_PortDescriptor* port_descriptors;
LADSPA_PortRangeHint* port_range_hints;
diff --git a/src/slide_2741.c b/src/slide_2741.c
index 9adbf1b..86b1488 100644
--- a/src/slide_2741.c
+++ b/src/slide_2741.c
@@ -9,12 +9,12 @@
* the terms of the GNU General Public License as published by the Free
* Software Foundation; either version 2 of the License, or (at your option)
* any later version.
- *
+ *
* This plugin 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 General Public License for
* details.
- *
+ *
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
diff --git a/src/waveguide_mesh_2670.c b/src/waveguide_mesh_2670.c
index 4f9fc42..6d11905 100644
--- a/src/waveguide_mesh_2670.c
+++ b/src/waveguide_mesh_2670.c
@@ -1,23 +1,23 @@
/* This file is an audio plugin. Copyright (C) 2005 Loki Davison. Based on code by Brook Eaton and a couple
- * of papers...
- *
+ * of papers...
+ *
* Implements a Waveguide Mesh drum. FIXME to be extended, to have rimguides, power normalisation and all
* manner of other goodies.
*
* Tension is well, drum tension
- * power is how hard you hit it.
- *
- *
+ * power is how hard you hit it.
+ *
+ *
* This plugin is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free
* Software Foundation; either version 2 of the License, or (at your option)
* any later version.
- *
+ *
* This plugin 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 General Public License for
* details.
- *
+ *
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
@@ -79,12 +79,12 @@ typedef struct
LADSPA_Data* tension;
LADSPA_Data* power;
LADSPA_Data* ex_x;
- LADSPA_Data* ex_y;
+ LADSPA_Data* ex_y;
/* vars */
_junction mesh[LENGTH][WIDTH];
LADSPA_Data last_trigger;
-
+
} WgMesh;
@@ -109,7 +109,7 @@ wgmesh_instantiate(const LADSPA_Descriptor* descriptor,
plugin->mesh[i][j].e_temp = INITIAL;
}
}
- plugin->last_trigger = 0.0;
+ plugin->last_trigger = 0.0;
return (LADSPA_Handle)plugin;
}
@@ -151,15 +151,15 @@ inline static void excite_mesh(WgMesh* plugin, LADSPA_Data power, LADSPA_Data ex
int i=ex_x,j=ex_y;
LADSPA_Data temp;
LADSPA_Data Yj;
-
+
Yj = 2*(INIT_DELTA*INIT_DELTA/((INIT_T*INIT_T)*(INIT_GAMMA*INIT_GAMMA))); // junction admittance
temp = power*2/(LENGTH+WIDTH);
plugin->mesh[i][j].v_junction = plugin->mesh[i][j].v_junction + temp;
- plugin->mesh[i][j].n_junction = plugin->mesh[i][j].n_junction + Yj*temp/PORTS;
+ plugin->mesh[i][j].n_junction = plugin->mesh[i][j].n_junction + Yj*temp/PORTS;
// All velocities leaving the junction are equal to
- plugin->mesh[i][j].s_junction = plugin->mesh[i][j].s_junction + Yj*temp/PORTS;
+ plugin->mesh[i][j].s_junction = plugin->mesh[i][j].s_junction + Yj*temp/PORTS;
// the total velocity in the junction * the admittance
- plugin->mesh[i][j].e_junction = plugin->mesh[i][j].e_junction + Yj*temp/PORTS;
+ plugin->mesh[i][j].e_junction = plugin->mesh[i][j].e_junction + Yj*temp/PORTS;
// divided by the number of outgoing ports.
plugin->mesh[i][j].w_junction = plugin->mesh[i][j].w_junction + Yj*temp/PORTS;
//mesh[i][j].c_junction = 0;
@@ -167,7 +167,7 @@ inline static void excite_mesh(WgMesh* plugin, LADSPA_Data power, LADSPA_Data ex
void
wgmesh_run_cr(LADSPA_Handle instance, unsigned long nframes)
-{
+{
WgMesh* plugin = (WgMesh*)instance;
LADSPA_Data tension = *(plugin->tension);
LADSPA_Data ex_x = *(plugin->ex_x);
@@ -179,7 +179,7 @@ wgmesh_run_cr(LADSPA_Handle instance, unsigned long nframes)
size_t i,j,k;
LADSPA_Data filt, trg, oldfilt;
LADSPA_Data Yc,Yj,tempN,tempS,tempE,tempW;
-
+
// Set input variables //
oldfilt = plugin->mesh[LENGTH-LENGTH/4][WIDTH-WIDTH/4].v_junction;
@@ -187,15 +187,15 @@ wgmesh_run_cr(LADSPA_Handle instance, unsigned long nframes)
if (tension==0)
tension=0.0001;
trg = input[k];
-
+
if (trg > 0.0f && !(last_trigger > 0.0f))
{
//printf("got trigger, exciting mesh, %f \n", tension);
excite_mesh(plugin, power[k], ex_x, ex_y);
}
- //junction admitance
- Yj = 2*INIT_DELTA*INIT_DELTA/(( (tension)*((tension) )*(INIT_GAMMA*INIT_GAMMA)));
+ //junction admitance
+ Yj = 2*INIT_DELTA*INIT_DELTA/(( (tension)*((tension) )*(INIT_GAMMA*INIT_GAMMA)));
Yc = Yj-4; // junction admittance (left shift is for multiply by 2!)
//plugin->v_power = power[k];
@@ -203,15 +203,15 @@ wgmesh_run_cr(LADSPA_Handle instance, unsigned long nframes)
// INNER MESH //
for (j=1; j<WIDTH-1; j++) { // to multiply by 2 - simply shift to the left by 1!
plugin->mesh[i][j].v_junction = 2.0*(plugin->mesh[i][j].n_junction + plugin->mesh[i][j].s_junction
- + plugin->mesh[i][j].e_junction + plugin->mesh[i][j].w_junction + Yc*plugin->mesh[i][j].c_junction)/Yj;
+ + plugin->mesh[i][j].e_junction + plugin->mesh[i][j].w_junction + Yc*plugin->mesh[i][j].c_junction)/Yj;
- plugin->mesh[i][j+1].s_junction = plugin->mesh[i][j].v_junction - plugin->mesh[i][j].n_junction;
- plugin->mesh[i][j-1].n_junction = plugin->mesh[i][j].v_junction - plugin->mesh[i][j].s_temp;
+ plugin->mesh[i][j+1].s_junction = plugin->mesh[i][j].v_junction - plugin->mesh[i][j].n_junction;
+ plugin->mesh[i][j-1].n_junction = plugin->mesh[i][j].v_junction - plugin->mesh[i][j].s_temp;
- plugin->mesh[i+1][j].e_junction = plugin->mesh[i][j].v_junction - plugin->mesh[i][j].w_junction;
- plugin->mesh[i-1][j].w_junction = plugin->mesh[i][j].v_junction - plugin->mesh[i][j].e_temp;
+ plugin->mesh[i+1][j].e_junction = plugin->mesh[i][j].v_junction - plugin->mesh[i][j].w_junction;
+ plugin->mesh[i-1][j].w_junction = plugin->mesh[i][j].v_junction - plugin->mesh[i][j].e_temp;
- plugin->mesh[i][j].c_junction = plugin->mesh[i][j].v_junction - plugin->mesh[i][j].c_junction;
+ plugin->mesh[i][j].c_junction = plugin->mesh[i][j].v_junction - plugin->mesh[i][j].c_junction;
plugin->mesh[i][j].s_temp = plugin->mesh[i][j].s_junction; //
plugin->mesh[i][j].e_temp = plugin->mesh[i][j].e_junction; // update current values in the temp slots!
@@ -229,7 +229,7 @@ wgmesh_run_cr(LADSPA_Handle instance, unsigned long nframes)
plugin->mesh[1][i].e_junction = plugin->mesh[1][i].e_temp = tempE;
tempW = plugin->mesh[WIDTH-1][i].w_junction;
plugin->mesh[WIDTH-1][i].w_junction = -plugin->mesh[WIDTH-1][i].e_junction;
- plugin->mesh[WIDTH-2][i].w_junction = tempW;
+ plugin->mesh[WIDTH-2][i].w_junction = tempW;
}
filt = LOSS*(plugin->mesh[LENGTH-LENGTH/4][WIDTH-WIDTH/4].v_junction + oldfilt);
@@ -298,7 +298,7 @@ _init()
port_range_hints[MESH_POWER].HintDescriptor = LADSPA_HINT_DEFAULT_1 | LADSPA_HINT_BOUNDED_BELOW;
port_range_hints[MESH_POWER].LowerBound = 0.000f;
port_range_hints[MESH_POWER].UpperBound = 20.000f;
-
+
port_range_hints[MESH_EX_X].HintDescriptor = LADSPA_HINT_DEFAULT_1 | LADSPA_HINT_BOUNDED_BELOW | LADSPA_HINT_BOUNDED_ABOVE | LADSPA_HINT_INTEGER;
port_range_hints[MESH_EX_X].LowerBound = 0.950f; //1
port_range_hints[MESH_EX_X].UpperBound = LENGTH-0.99;//length-1 ish
@@ -306,7 +306,7 @@ _init()
port_range_hints[MESH_EX_Y].HintDescriptor = LADSPA_HINT_DEFAULT_1 | LADSPA_HINT_BOUNDED_BELOW | LADSPA_HINT_BOUNDED_ABOVE | LADSPA_HINT_INTEGER;
port_range_hints[MESH_EX_Y].LowerBound = 0.950f; //1
port_range_hints[MESH_EX_Y].UpperBound = LENGTH-0.99;//length-1 ish
-
+
port_range_hints[MESH_INPUT1].HintDescriptor = 0;
port_range_hints[MESH_OUTPUT].HintDescriptor = 0;
wg_mesh_cr_desc->instantiate = wgmesh_instantiate;