summaryrefslogtreecommitdiff
path: root/muse_qt4_evolution/plugins/doublechorus/doublechorus.cpp
diff options
context:
space:
mode:
authorRobert Jonsson <spamatica@gmail.com>2011-03-07 19:01:11 +0000
committerRobert Jonsson <spamatica@gmail.com>2011-03-07 19:01:11 +0000
commite40fc849149dd97c248866a4a1d026dda5e57b62 (patch)
treeb12b358f3b3a0608001d30403358f8443118ec5f /muse_qt4_evolution/plugins/doublechorus/doublechorus.cpp
parent1bd4f2e8d9745cabb667b043171cad22c8577768 (diff)
clean3
Diffstat (limited to 'muse_qt4_evolution/plugins/doublechorus/doublechorus.cpp')
-rw-r--r--muse_qt4_evolution/plugins/doublechorus/doublechorus.cpp173
1 files changed, 0 insertions, 173 deletions
diff --git a/muse_qt4_evolution/plugins/doublechorus/doublechorus.cpp b/muse_qt4_evolution/plugins/doublechorus/doublechorus.cpp
deleted file mode 100644
index 27d84336..00000000
--- a/muse_qt4_evolution/plugins/doublechorus/doublechorus.cpp
+++ /dev/null
@@ -1,173 +0,0 @@
-//=========================================================
-// DoubleChorus for MusE
-//
-// (C) Copyright 2006 Nil Geisweiller
-//=========================================================
-
-#include "doublechorusmodel.h"
-#include <stdio.h>
-
-//---------------------------------------------------------
-// instantiate doublechorus
-// Construct a new plugin instance.
-//---------------------------------------------------------
-
-LADSPA_Handle instantiate(const LADSPA_Descriptor* /*Descriptor*/,
- unsigned long samplerate)
-{
- return new DoubleChorusModel(samplerate);
-}
-
-//---------------------------------------------------------
-// connect PortTo doublechorus
-// Connect a port to a data location.
-//---------------------------------------------------------
-
-void connect(LADSPA_Handle Instance, unsigned long port,
- LADSPA_Data* data)
-{
- ((DoubleChorusModel *)Instance)->port[port] = data;
-}
-
-//---------------------------------------------------------
-// activate
-//---------------------------------------------------------
-
-void activate(LADSPA_Handle instance)
-{
- ((DoubleChorusModel *)instance)->activate();
-}
-
-//---------------------------------------------------------
-// deactivate
-//---------------------------------------------------------
-
-void deactivate(LADSPA_Handle /*Instance*/)
-{
-}
-
-//---------------------------------------------------------
-// run doublechorus
-//---------------------------------------------------------
-
-void run(LADSPA_Handle Instance, unsigned long n)
-{
- ((DoubleChorusModel *)Instance)->processReplace(n);
-}
-
-//---------------------------------------------------------
-// runAdding doublechorus
-// *ADD* the output to the output buffer.
-//---------------------------------------------------------
-
-void runAdding(LADSPA_Handle Instance, unsigned long n)
-{
- ((DoubleChorusModel *)Instance)->processMix(n);
-}
-
-//---------------------------------------------------------
-// set doublechorus RunAddingGain
-//---------------------------------------------------------
-
-void setGain(LADSPA_Handle /*Instance*/, LADSPA_Data /*Gain*/)
-{
- printf("TEST setGain\n");
- // ((DoubleChorusModel *)Instance)->m_fRunAddingGain = Gain;
-}
-
-//---------------------------------------------------------
-// cleanup doublechorus
-//---------------------------------------------------------
-
-void cleanup(LADSPA_Handle Instance)
-{
- delete (DoubleChorusModel *)Instance;
-}
-
-static const char* portNames[] = {
- "Input (Left)",
- "Input (Right)",
- "Output (Left)",
- "Output (Right)",
- "Pan 1",
- "LFOFreq 1",
- "Depth 1",
- "Pan 2",
- "LFOFreq 2",
- "Depth 2",
- "Dry/Wet"
-};
-
-LADSPA_PortDescriptor portDescriptors[] = {
- LADSPA_PORT_INPUT | LADSPA_PORT_AUDIO,
- LADSPA_PORT_INPUT | LADSPA_PORT_AUDIO,
- LADSPA_PORT_OUTPUT | LADSPA_PORT_AUDIO,
- LADSPA_PORT_OUTPUT | LADSPA_PORT_AUDIO,
- LADSPA_PORT_INPUT | LADSPA_PORT_CONTROL,
- LADSPA_PORT_INPUT | LADSPA_PORT_CONTROL,
- LADSPA_PORT_INPUT | LADSPA_PORT_CONTROL,
- LADSPA_PORT_INPUT | LADSPA_PORT_CONTROL,
- LADSPA_PORT_INPUT | LADSPA_PORT_CONTROL,
- LADSPA_PORT_INPUT | LADSPA_PORT_CONTROL,
- LADSPA_PORT_INPUT | LADSPA_PORT_CONTROL
-};
-
-LADSPA_PortRangeHint portRangeHints[] = {
- { 0, 0.0, 0.0 },
- { 0, 0.0, 0.0 },
- { 0, 0.0, 0.0 },
- { 0, 0.0, 0.0 },
- { LADSPA_HINT_BOUNDED_ABOVE | LADSPA_HINT_BOUNDED_BELOW | LADSPA_HINT_DEFAULT_HIGH, 0.0, 1.0 },
- { LADSPA_HINT_BOUNDED_ABOVE | LADSPA_HINT_BOUNDED_BELOW | LADSPA_HINT_LOGARITHMIC | LADSPA_HINT_DEFAULT_HIGH, MINFREQ, MAXFREQ },
- { LADSPA_HINT_BOUNDED_ABOVE | LADSPA_HINT_BOUNDED_BELOW | LADSPA_HINT_DEFAULT_LOW, 0.0, 1.0 },
- { LADSPA_HINT_BOUNDED_ABOVE | LADSPA_HINT_BOUNDED_BELOW | LADSPA_HINT_DEFAULT_LOW, 0.0, 1.0 },
- { LADSPA_HINT_BOUNDED_ABOVE | LADSPA_HINT_BOUNDED_BELOW | LADSPA_HINT_LOGARITHMIC | LADSPA_HINT_DEFAULT_MIDDLE, MINFREQ, MAXFREQ },
- { LADSPA_HINT_BOUNDED_ABOVE | LADSPA_HINT_BOUNDED_BELOW | LADSPA_HINT_DEFAULT_LOW, 0.0, 1.0 },
- { LADSPA_HINT_BOUNDED_ABOVE | LADSPA_HINT_BOUNDED_BELOW | LADSPA_HINT_DEFAULT_MIDDLE, 0.0, 1.0 },
-};
-
-LADSPA_Descriptor descriptor = {
- 1051,
- "doublechorus1",
- LADSPA_PROPERTY_HARD_RT_CAPABLE,
- "DoubleChorus",
- "Nil Geisweiller",
- "GPL",
- NBRPARAM + 4,
- portDescriptors,
- portNames,
- portRangeHints,
- 0, // impl. data
- instantiate,
- connect,
- activate,
- run,
- runAdding,
- setGain,
- deactivate,
- cleanup
-};
-
-//---------------------------------------------------------
-// _init
-// called automatically when the plugin library is first
-// loaded.
-//---------------------------------------------------------
-void _init() {
-}
-
-//---------------------------------------------------------
-// _fini
-// called automatically when the library is unloaded.
-//---------------------------------------------------------
-void _fini() {
-}
-
-//---------------------------------------------------------
-// ladspa_descriptor
-// Return a descriptor of the requested plugin type.
-//---------------------------------------------------------
-const LADSPA_Descriptor* ladspa_descriptor(unsigned long i) {
- return (i == 0) ? &descriptor : 0;
-}
-