gearmulator

Emulation of classic VA synths of the late 90s/2000s that are based on Motorola 56300 family DSPs
Log | Files | Refs | Submodules | README | LICENSE

commit ab6b739bbb458228284a7d4d45dc0e9fad8ecedf
parent f1e753a92275e4b9190137bff098d2f34595cd75
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date:   Mon, 29 Jul 2024 11:31:40 +0200

add bool to turn off factory demo

Diffstat:
Msource/nord/n2x/n2xTestConsole/n2xTestConsole.cpp | 24+++++++++++++++---------
1 file changed, 15 insertions(+), 9 deletions(-)

diff --git a/source/nord/n2x/n2xTestConsole/n2xTestConsole.cpp b/source/nord/n2x/n2xTestConsole/n2xTestConsole.cpp @@ -5,6 +5,8 @@ #include "n2xLib/n2xrom.h" #include "synthLib/wavWriter.h" +static constexpr bool g_factoryDemo = true; + namespace n2x { class Hardware; @@ -64,16 +66,20 @@ int main() return _seconds * (n2x::g_samplerate / blockSize) * blockSize; }; - if(totalSamples == seconds(4)) - { - hw->setButtonState(n2x::ButtonType::Shift, true); - hw->setButtonState(n2x::ButtonType::OscSync, true); - } - - else if(totalSamples == seconds(5)) + if constexpr (g_factoryDemo) { - hw->setButtonState(n2x::ButtonType::Shift, false); - hw->setButtonState(n2x::ButtonType::OscSync, false); + // Run factory demo, press shift + osc sync + if(totalSamples == seconds(4)) + { + hw->setButtonState(n2x::ButtonType::Shift, true); + hw->setButtonState(n2x::ButtonType::OscSync, true); + } + + else if(totalSamples == seconds(5)) + { + hw->setButtonState(n2x::ButtonType::Shift, false); + hw->setButtonState(n2x::ButtonType::OscSync, false); + } } auto& outs = hw->getAudioOutputs();