From 04c65a5da0de3f0265687a6ff1036b77ccf0b52d Mon Sep 17 00:00:00 2001 From: Holger Wirtz Date: Fri, 25 Nov 2016 20:25:13 +0000 Subject: [PATCH] isModnoMode() added. --- src/dexed.cpp | 9 ++++++--- src/dexed.h | 3 +-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/dexed.cpp b/src/dexed.cpp index f08c47e..649549e 100644 --- a/src/dexed.cpp +++ b/src/dexed.cpp @@ -88,13 +88,12 @@ Dexed::~Dexed() void Dexed::set_params(void) { -/* // Dexed-Unisono - if(getEngineType()!=int(*p(p_unisono))) + if(isMonoMode()!=int(*p(p_unisono))) { panic(); setMonoMode(int(*p(p_unisono))); - } */ + } // Dexed-Engine if(getEngineType()!=int(*p(p_engine))) @@ -628,6 +627,10 @@ void Dexed::setEngineType(int tp) { engineType = tp; } +bool Dexed::isMonoMode(void) { + return monoMode; +} + void Dexed::setMonoMode(bool mode) { monoMode = mode; } diff --git a/src/dexed.h b/src/dexed.h index 5d5f95b..4b1e4a9 100644 --- a/src/dexed.h +++ b/src/dexed.h @@ -78,11 +78,10 @@ class Dexed : public lvtk::Synth void run(uint32_t sample_count); int getEngineType(); void setEngineType(int rs); + bool isMonoMode(void); void setMonoMode(bool mode); void set_params(void); void GetSamples(int n_samples, float *buffer); - //bool isMonoMode(); - //void setMonoMode(bool mode); uint8_t data[161]; Controllers controllers;