nonfunctional plugin, just the framework
This commit is contained in:
commit
272dceb41b
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
build/
|
||||||
|
bin/
|
||||||
|
.vscode
|
||||||
|
|
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[submodule "dpf"]
|
||||||
|
path = dpf
|
||||||
|
url = https://github.com/DISTRHO/DPF
|
7
LICENCE
Normal file
7
LICENCE
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
ISC License
|
||||||
|
|
||||||
|
Copyright 2024 Gordon JC Pearce <gordonjcp@gjcp.net>
|
||||||
|
|
||||||
|
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
35
Makefile
Normal file
35
Makefile
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
###############################
|
||||||
|
#
|
||||||
|
# Makefile for BarrVerb
|
||||||
|
# based on the work of falkTX
|
||||||
|
#
|
||||||
|
# for full licence, see LICENCE in the root of the project
|
||||||
|
#
|
||||||
|
###############################
|
||||||
|
|
||||||
|
include dpf/Makefile.base.mk
|
||||||
|
|
||||||
|
all: plugins gen
|
||||||
|
|
||||||
|
plugins:
|
||||||
|
$(MAKE) all -C plugin
|
||||||
|
|
||||||
|
ifneq ($(CROSS_COMPILING),true)
|
||||||
|
gen: plugins dpf/utils/lv2_ttl_generator
|
||||||
|
@$(CURDIR)/dpf/utils/generate-ttl.sh
|
||||||
|
ifeq ($(MACOS),true)
|
||||||
|
@$(CURDIR)/dpf/utils/generate-vst-bundles.sh
|
||||||
|
endif
|
||||||
|
|
||||||
|
dpf/utils/lv2_ttl_generator:
|
||||||
|
$(MAKE) -C dpf/utils/lv2-ttl-generator
|
||||||
|
else
|
||||||
|
gen:
|
||||||
|
endif
|
||||||
|
|
||||||
|
clean:
|
||||||
|
$(MAKE) clean -C dpf/utils/lv2-ttl-generator
|
||||||
|
$(MAKE) clean -C plugin
|
||||||
|
rm -rf bin build
|
||||||
|
|
||||||
|
.PHONY: plugins
|
1
dpf
Submodule
1
dpf
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit f5815166356e85a5fe244f6024c2e401f04b10fa
|
40
plugin/DistrhoPluginInfo.h
Normal file
40
plugin/DistrhoPluginInfo.h
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
/*
|
||||||
|
BarrVerb reverb plugin
|
||||||
|
|
||||||
|
Copyright 2024 Gordon JC Pearce <gordonjcp@gjcp.net>
|
||||||
|
|
||||||
|
Permission to use, copy, modify, and/or distribute this software for any
|
||||||
|
purpose with or without fee is hereby granted, provided that the above
|
||||||
|
copyright notice and this permission notice appear in all copies.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||||
|
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||||
|
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
|
||||||
|
SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||||
|
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
|
||||||
|
OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
|
||||||
|
CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef DISTRHO_PLUGIN_INFO_H
|
||||||
|
#define DISTRHO_PLUGIN_INFO_H
|
||||||
|
|
||||||
|
#define DISTRHO_PLUGIN_NAME "BarrVerb"
|
||||||
|
#define DISTRHO_PLUGIN_URI "https://gjcp.net/plugins/barrverb"
|
||||||
|
|
||||||
|
#define DISTRHO_PLUGIN_NUM_INPUTS 2
|
||||||
|
#define DISTRHO_PLUGIN_NUM_OUTPUTS 2
|
||||||
|
|
||||||
|
#define DISTRHO_PLUGIN_IS_RT_SAFE 1
|
||||||
|
|
||||||
|
#define DISTRHO_PLUGIN_WANT_PROGRAMS 1
|
||||||
|
|
||||||
|
|
||||||
|
enum Parameters {
|
||||||
|
program,
|
||||||
|
mix,
|
||||||
|
kParameterCount
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
19
plugin/Makefile
Normal file
19
plugin/Makefile
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
###############################
|
||||||
|
#
|
||||||
|
# Makefile for BarrVerb
|
||||||
|
# based on the work of falkTX
|
||||||
|
#
|
||||||
|
# for full licence, see LICENCE in the root of the project
|
||||||
|
#
|
||||||
|
###############################
|
||||||
|
|
||||||
|
NAME = BarrVerb
|
||||||
|
|
||||||
|
FILES_DSP = barrverb.cpp
|
||||||
|
include ../dpf/Makefile.plugins.mk
|
||||||
|
|
||||||
|
TARGETS += vst2 vst3 jack lv2_dsp
|
||||||
|
|
||||||
|
all: $(TARGETS)
|
||||||
|
|
||||||
|
|
55
plugin/barrverb.cpp
Normal file
55
plugin/barrverb.cpp
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
/*
|
||||||
|
BarrVerb reverb plugin
|
||||||
|
|
||||||
|
Copyright 2024 Gordon JC Pearce <gordonjcp@gjcp.net>
|
||||||
|
|
||||||
|
Permission to use, copy, modify, and/or distribute this software for any
|
||||||
|
purpose with or without fee is hereby granted, provided that the above
|
||||||
|
copyright notice and this permission notice appear in all copies.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||||
|
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||||
|
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
|
||||||
|
SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||||
|
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
|
||||||
|
OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
|
||||||
|
CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "barrverb.hpp"
|
||||||
|
|
||||||
|
START_NAMESPACE_DISTRHO
|
||||||
|
|
||||||
|
BarrVerb::BarrVerb() : Plugin(kParameterCount, 1, 0) { // two parameters, one program, no states
|
||||||
|
// dummy
|
||||||
|
deactivate();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Initialisation functions
|
||||||
|
|
||||||
|
void BarrVerb::initAudioPort(bool input, uint32_t index, AudioPort &port) {
|
||||||
|
port.groupId = kPortGroupStereo;
|
||||||
|
Plugin::initAudioPort(input, index, port);
|
||||||
|
}
|
||||||
|
|
||||||
|
void BarrVerb::initProgramName(uint32_t index, String &programName) {
|
||||||
|
programName="Default Reverb";
|
||||||
|
}
|
||||||
|
|
||||||
|
// Processing functions
|
||||||
|
|
||||||
|
void BarrVerb::activate() {
|
||||||
|
// calculate filter coefficients
|
||||||
|
}
|
||||||
|
|
||||||
|
void BarrVerb::deactivate() {
|
||||||
|
// zero out the outputs, maybe
|
||||||
|
}
|
||||||
|
|
||||||
|
void BarrVerb::run(const float **inputs, float **outputs, uint32_t frames) {
|
||||||
|
}
|
||||||
|
|
||||||
|
// create the plugin
|
||||||
|
Plugin* createPlugin() { return new BarrVerb(); }
|
||||||
|
END_NAMESPACE_DISTRHO
|
||||||
|
|
62
plugin/barrverb.hpp
Normal file
62
plugin/barrverb.hpp
Normal file
@ -0,0 +1,62 @@
|
|||||||
|
/*
|
||||||
|
BarrVerb reverb plugin
|
||||||
|
|
||||||
|
Copyright 2024 Gordon JC Pearce <gordonjcp@gjcp.net>
|
||||||
|
|
||||||
|
Permission to use, copy, modify, and/or distribute this software for any
|
||||||
|
purpose with or without fee is hereby granted, provided that the above
|
||||||
|
copyright notice and this permission notice appear in all copies.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||||
|
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||||
|
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
|
||||||
|
SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||||
|
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
|
||||||
|
OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
|
||||||
|
CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef BARRVERB_HPP
|
||||||
|
#define BARRVERB_HPP
|
||||||
|
|
||||||
|
#include "DistrhoPlugin.hpp"
|
||||||
|
|
||||||
|
START_NAMESPACE_DISTRHO
|
||||||
|
|
||||||
|
class BarrVerb : public Plugin {
|
||||||
|
public:
|
||||||
|
enum Parameters {
|
||||||
|
program,
|
||||||
|
kParameterCount
|
||||||
|
};
|
||||||
|
|
||||||
|
BarrVerb();
|
||||||
|
|
||||||
|
protected:
|
||||||
|
const char *getLabel() const override { return "BarrVerb"; }
|
||||||
|
const char *getDescription() const override {
|
||||||
|
return "MIDIVerb emulation, a tribute to Keith Barr";
|
||||||
|
}
|
||||||
|
const char *getMaker() const override { return "Gordonjcp"; }
|
||||||
|
const char *getLicense() const override { return "ISC"; }
|
||||||
|
uint32_t getVersion() const override { return d_version(1, 0, 0); }
|
||||||
|
int64_t getUniqueId() const override { return d_cconst('B', 'A', 'R', 'R'); }
|
||||||
|
|
||||||
|
// Initialisation
|
||||||
|
void initAudioPort(bool input, uint32_t index, AudioPort &port) override;
|
||||||
|
void initProgramName(uint32_t index, String &programName) override;
|
||||||
|
|
||||||
|
// Processing
|
||||||
|
void activate() override;
|
||||||
|
void deactivate() override;
|
||||||
|
void run(const float **inputs, float **outputs, uint32_t frames) override;
|
||||||
|
|
||||||
|
private:
|
||||||
|
float c1, c2, d0, in_z1, in_z2, out_z1, out_z2;
|
||||||
|
|
||||||
|
DISTRHO_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(BarrVerb);
|
||||||
|
};
|
||||||
|
|
||||||
|
END_NAMESPACE_DISTRHO
|
||||||
|
|
||||||
|
#endif // BARRVERB_HPP
|
Loading…
Reference in New Issue
Block a user