forked from cboxdoerfer/ddb_musical_spectrum
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.h
More file actions
33 lines (26 loc) · 636 Bytes
/
render.h
File metadata and controls
33 lines (26 loc) · 636 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#pragma once
#include <gtk/gtk.h>
struct spectrum_render_t {
double *bars;
double *bars_peak;
double *peaks;
int *delay_bars;
int *delay_peaks;
double *v_bars;
double *v_peaks;
int bar_delay;
int peak_delay;
double bar_velocity;
double peak_velocity;
cairo_pattern_t *pattern;
};
gboolean
spectrum_draw (GtkWidget *widget, cairo_t *cr, gpointer user_data);
struct spectrum_data_t *
spectrum_data_new (void);
void
spectrum_data_free (struct spectrum_data_t *data);
struct spectrum_render_t *
spectrum_render_new (void);
void
spectrum_render_free (struct spectrum_render_t *render);