3 * Copyright (C) 2008-2019 Adam Williams <broadcast at earthling dot net>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 // A canvas for drawing a spectrogram on top of a filter envelope
27 #include "compressortools.h"
29 #include "pluginclient.inc"
30 #include "pluginaclient.h"
35 EQCanvas(BC_WindowBase *parent,
36 int x, int y, int w, int h,
37 float min_db, float max_db);
42 void update_spectrogram(CompressorFreqFrame *frame,
43 int offset, int size, int window_size);
44 void draw_envelope(double *envelope,
45 int samplerate, int window_size, int is_top, int flash_it);
47 BC_WindowBase *parent;
50 int canvas_x, canvas_y;
51 int canvas_w, canvas_h;
53 // divisions for the frequency
55 // divisions for the DB
57 float pixels_per_division;