builds after starting cleanup

This commit is contained in:
Gordon JC Pearce 2024-10-19 23:11:28 +01:00
parent fd7634671f
commit 08712969c7
10 changed files with 13 additions and 12 deletions

View File

@ -12,10 +12,10 @@ NAME = peacock
FILES_DSP = \ FILES_DSP = \
peacock.cpp \ peacock.cpp \
controls.cpp \ controls.cpp \
ic1.cpp \ assigner.cpp \
oscillator.cpp \ oscillator.cpp \
filter.cpp \ filter.cpp \
ic29.cpp voiceboard.cpp
include ../dpf/Makefile.plugins.mk include ../dpf/Makefile.plugins.mk

View File

@ -16,9 +16,9 @@
CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#include "ic1.hpp" #include "assigner.hpp"
#include "ic29.hpp" #include "voiceboard.hpp"
#include "peacock.hpp" #include "peacock.hpp"
Assigner ic1; Assigner ic1;

View File

@ -16,7 +16,7 @@
CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#include "ic29.hpp" #include "assigner.hpp"
#include "peacock.hpp" #include "peacock.hpp"
void Peacock::initParameter(uint32_t index, Parameter& parameter) { void Peacock::initParameter(uint32_t index, Parameter& parameter) {
@ -316,6 +316,7 @@ void Peacock::setParameterValue(uint32_t index, float value) {
if (value < 0.0f) value = 0.0f; if (value < 0.0f) value = 0.0f;
if (value > 127.0f) value = 127.0f; if (value > 127.0f) value = 127.0f;
#if 0
switch (index) { switch (index) {
case p_lfoRate: case p_lfoRate:
ic29.patchRam.lfoRate = value; ic29.patchRam.lfoRate = value;
@ -409,6 +410,8 @@ void Peacock::setParameterValue(uint32_t index, float value) {
break; break;
case p_vcoBend: case p_vcoBend:
ic29.vcoBend = (uint8_t)value; ic29.vcoBend = (uint8_t)value;
break; break;
} }
#endif
} }

View File

@ -16,7 +16,7 @@
CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#include "ic29.hpp" #include "voiceboard.hpp"
void Voice::filter(float *buffer, uint32_t pos, uint32_t frames) { void Voice::filter(float *buffer, uint32_t pos, uint32_t frames) {
for (uint32_t i = 0; i < frames; i++) { for (uint32_t i = 0; i < frames; i++) {

View File

@ -18,8 +18,6 @@
#pragma once #pragma once
#include "ic29.hpp"
const uint16_t Envelope::atkTable[128] = { const uint16_t Envelope::atkTable[128] = {
0x4000, 0x2000, 0x1000, 0x0aaa, 0x0800, 0x0666, 0x0555, 0x0492, 0x0400, 0x4000, 0x2000, 0x1000, 0x0aaa, 0x0800, 0x0666, 0x0555, 0x0492, 0x0400,
0x038e, 0x0333, 0x02e9, 0x02ab, 0x0276, 0x0249, 0x0222, 0x0200, 0x01e2, 0x038e, 0x0333, 0x02e9, 0x02ab, 0x0276, 0x0249, 0x0222, 0x0200, 0x01e2,

View File

@ -16,7 +16,7 @@
CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#include "ic29.hpp" #include "voiceboard.hpp"
static inline float poly3blep0(float t) { static inline float poly3blep0(float t) {
float t2 = t * t; float t2 = t * t;

View File

@ -18,8 +18,8 @@
#include "peacock.hpp" #include "peacock.hpp"
#include "ic1.hpp" #include "assigner.hpp"
#include "ic29.hpp" #include "voiceboard.hpp"
START_NAMESPACE_DISTRHO START_NAMESPACE_DISTRHO

View File

@ -16,7 +16,7 @@
CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#include "ic29.hpp" #include "voiceboard.hpp"
#include "ic29tables.hpp" #include "ic29tables.hpp"