initial does-nothing import
This commit is contained in:
commit
7e55a0fe5e
|
|
@ -0,0 +1,5 @@
|
|||
bin/
|
||||
build/
|
||||
.vscode/
|
||||
*.code-workspace
|
||||
core
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
[submodule "dpf"]
|
||||
path = dpf
|
||||
url = https://github.com/DISTRHO/DPF
|
||||
|
|
@ -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.
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
###############################
|
||||
#
|
||||
# Makefile for Peacock
|
||||
# based on the work of falkTX
|
||||
#
|
||||
# for full licence, see LICENCE in the root of the project
|
||||
#
|
||||
###############################
|
||||
|
||||
include dpf/Makefile.base.mk
|
||||
|
||||
CFLAGS += -ggdb
|
||||
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
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
Building
|
||||
--------
|
||||
|
||||
Check the dpf and pugl submodule out with
|
||||
|
||||
git submodule update --init --recursive
|
||||
|
||||
|
|
@ -0,0 +1 @@
|
|||
Subproject commit f5815166356e85a5fe244f6024c2e401f04b10fa
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
/*
|
||||
Peacock-8 VA polysynth
|
||||
|
||||
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
|
||||
|
||||
// DPF definitions
|
||||
#define DISTRHO_PLUGIN_NAME "peacock-8"
|
||||
#define DISTRHO_PLUGIN_URI "https://gjcp.net/plugins/peacock"
|
||||
|
||||
#define DISTRHO_PLUGIN_NUM_INPUTS 0
|
||||
#define DISTRHO_PLUGIN_NUM_OUTPUTS 2
|
||||
#define DISTRHO_PLUGIN_IS_SYNTH 1
|
||||
#define DISTRHO_PLUGIN_IS_RT_SAFE 1
|
||||
|
||||
#define DISTRHO_PLUGIN_HAS_UI 0
|
||||
#define DISTRHO_PLUGIN_WANT_PROGRAMS 0
|
||||
|
||||
#endif
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
###############################
|
||||
#
|
||||
# Makefile for Peacock
|
||||
# based on the work of falkTX, in the DPF example plugins
|
||||
#
|
||||
# for full licence, see LICENCE in the root of the project
|
||||
#
|
||||
###############################
|
||||
|
||||
NAME = peacock
|
||||
|
||||
FILES_DSP = \
|
||||
peacock.cpp
|
||||
|
||||
include ../dpf/Makefile.plugins.mk
|
||||
|
||||
SKIP_NATIVE_AUDIO_FALLBACK = true
|
||||
|
||||
TARGETS += jack lv2
|
||||
|
||||
all: $(TARGETS)
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,45 @@
|
|||
/*
|
||||
Peacock-8 VA polysynth
|
||||
|
||||
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 "peacock.hpp"
|
||||
|
||||
START_NAMESPACE_DISTRHO
|
||||
|
||||
Peacock::Peacock() : Plugin(0, 0, 0) {
|
||||
d_debug("peacock constructor\n");
|
||||
|
||||
|
||||
}
|
||||
|
||||
void Peacock::initAudioPort(bool input, uint32_t index, AudioPort &port) {
|
||||
port.groupId = kPortGroupStereo;
|
||||
Plugin::initAudioPort(input, index, port);
|
||||
|
||||
if (!input && index == 0) port.name = "Left Out";
|
||||
if (!input && index == 1) port.name = "Right Out";
|
||||
}
|
||||
|
||||
void Peacock::run(const float **, float **outputs, uint32_t frames, const MidiEvent *midiEvents, uint32_t midiEventCount) {
|
||||
memset(outputs[0], 0, frames * sizeof(float));
|
||||
memset(outputs[1], 0, frames * sizeof(float));
|
||||
|
||||
}
|
||||
|
||||
Plugin *createPlugin() { return new Peacock(); }
|
||||
|
||||
END_NAMESPACE_DISTRHO
|
||||
|
|
@ -0,0 +1,55 @@
|
|||
/*
|
||||
Peacock-8 VA polysynth
|
||||
|
||||
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 _PEACOCK_HPP
|
||||
#define _PEACOCK_HPP
|
||||
|
||||
#define DEBUG
|
||||
|
||||
#include "DistrhoPlugin.hpp"
|
||||
|
||||
START_NAMESPACE_DISTRHO
|
||||
|
||||
class Peacock : public Plugin {
|
||||
public:
|
||||
Peacock();
|
||||
|
||||
protected:
|
||||
const char *getLabel() const override { return "peacock-8"; }
|
||||
const char *getDescription() const override {
|
||||
return "simple 8-voice polysynth";
|
||||
}
|
||||
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('P', 'f', 'a', 'u'); }
|
||||
|
||||
// Initialisation
|
||||
void initAudioPort(bool input, uint32_t index, AudioPort &port) override;
|
||||
|
||||
void run(const float **, float **outputs, uint32_t frames, const MidiEvent *midiEvents, uint32_t midiEventCount) override;
|
||||
|
||||
private:
|
||||
|
||||
|
||||
DISTRHO_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(Peacock);
|
||||
};
|
||||
|
||||
END_NAMESPACE_DISTRHO
|
||||
|
||||
#endif
|
||||
Loading…
Reference in New Issue