From 43288b1aafa0697fc136c204b6ed0f8d24562d15 Mon Sep 17 00:00:00 2001 From: Tim Churches Date: Sat, 11 Apr 2015 10:19:44 +1000 Subject: [PATCH] Fix RNDM mode in meta-sequencer, don't re-init bytebeat counter --- braids/braids.cc | 2 +- braids/digital_oscillator.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/braids/braids.cc b/braids/braids.cc index ba63014..5b6a4e5 100755 --- a/braids/braids.cc +++ b/braids/braids.cc @@ -514,7 +514,7 @@ void RenderBlock() { } } else if (metaseq_direction == 2) { // random - metaseq_index = (uint8_t(Random::GetWord() >> 29) * metaseq_length) >> 3; + metaseq_index = (uint8_t(Random::GetWord() >> 29) * (metaseq_length + 1)) >> 3; } } MacroOscillatorShape metaseq_current_shape = settings.metaseq_shape(metaseq_index); diff --git a/braids/digital_oscillator.h b/braids/digital_oscillator.h index 9f8661a..14f5a72 100755 --- a/braids/digital_oscillator.h +++ b/braids/digital_oscillator.h @@ -251,7 +251,7 @@ class DigitalOscillator { svf_[1].Init(); svf_[2].Init(); phase_ = 0; - t_ = 0; + // t_ = 0; // Don't reset the bytebeat counter to allow continuity when switch models strike_ = true; init_ = true; }