Skip to content

Commit

Permalink
Remove debug output, remove rc3 from version
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Willis committed Nov 13, 2018
1 parent d51a58d commit 75e4510
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 18 deletions.
4 changes: 1 addition & 3 deletions plugins/dragonfly-reverb/DistrhoPluginInfo.h
Expand Up @@ -29,15 +29,13 @@
#define DISTRHO_PLUGIN_NUM_INPUTS 2
#define DISTRHO_PLUGIN_NUM_OUTPUTS 2
#define DISTRHO_PLUGIN_WANT_STATE 1
// #define DISTRHO_PLUGIN_WANT_PROGRAMS 1
// #define DISTRHO_UI_USE_NANOVG 1

#define DISTRHO_PLUGIN_LV2_CATEGORY "lv2:ReverbPlugin"

#define MAJOR_VERSION 1
#define MINOR_VERSION 0
#define PATCH_VERSION 0
#define VERSION_SUFFIX "-rc3"
#define VERSION_SUFFIX ""

enum Parameters
{
Expand Down
2 changes: 0 additions & 2 deletions plugins/dragonfly-reverb/DragonflyReverbUI.cpp
Expand Up @@ -25,8 +25,6 @@
#include <math.h>
#include <string>

#include <iostream>

START_NAMESPACE_DISTRHO

namespace Art = DragonflyReverbArtwork;
Expand Down
13 changes: 0 additions & 13 deletions plugins/dragonfly-reverb/Spectrogram.cpp
Expand Up @@ -79,7 +79,6 @@ Spectrogram::Spectrogram(Widget * widget, NanoVG * fNanoText, DGL::Rectangle<int

x = 0;
sample_offset_processed = 0;
std::cout << "Spectrogram CTOR done!\n";
}

Spectrogram::~Spectrogram() {
Expand All @@ -105,10 +104,7 @@ void Spectrogram::uiIdle() {

int64_t limit = (duration_cast< milliseconds >(system_clock::now().time_since_epoch())).count() + 20;

std::cout << "Spectrogram uiIdle! limit: " << limit << "\n";

while(x < image->getWidth() && (duration_cast< milliseconds >(system_clock::now().time_since_epoch())).count() < limit) {
std::cout << "Rendering X = " << x << "\n";
// Calculate time in seconds, then determine where that is in the dsp_output buffer
float time = pow(M_E, (float) x * logf ( (float)SPECTROGRAM_MAX_SECONDS / SPECTROGRAM_MIN_SECONDS ) / image->getWidth()) * SPECTROGRAM_MIN_SECONDS;
uint32_t sample_offset = (time * (float) SPECTROGRAM_SAMPLE_RATE);
Expand All @@ -132,14 +128,6 @@ void Spectrogram::uiIdle() {
fft_imag[window_sample] = 0.0;
}

std::cout << "fft_real numbers: " << fft_real[0] << ", " << fft_real[10] << ", "
<< fft_real[100] << ", " << fft_real[101] << ", " << fft_real[102] << ", "
<< fft_real[103] << ", " << fft_real[104] << ", " << fft_real[105] << ", "
<< fft_real[106] << ", " << fft_real[107] << ", " << fft_real[108] << ", "
<< fft_real[109] << ", " << fft_real[110] << ", " << fft_real[111] << ", "
<< fft_real[1000] << ", " << fft_real[1001] << ", " << fft_real[1002] << ", "
<< fft_real[1003] << ", " << fft_real[1004] << ", " << fft_real[1005] << "\n";

Fft_transform(fft_real, fft_imag, (size_t) SPECTROGRAM_WINDOW_SIZE);

for (uint32_t y = 0; y < image->getHeight(); y++) {
Expand Down Expand Up @@ -195,7 +183,6 @@ void Spectrogram::setParameterValue(uint32_t i, float v) {
if (i == paramDry_level) {
v = 0.0f;
}
std::cout << "Setting parameter value of spectrogram DSP! " << i << ", " << v << "\n";
dsp.setParameterValue(i, v);
dsp.mute();
x = 0;
Expand Down

0 comments on commit 75e4510

Please sign in to comment.