-
Notifications
You must be signed in to change notification settings - Fork 12
/
sequencer.h
82 lines (65 loc) · 2.31 KB
/
sequencer.h
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
/*
* Komposter
*
* Copyright (c) 2010 Noora Halme et al. (see AUTHORS)
*
* This code is licensed under the GNU General Public
* License version 2. See LICENSE for full text.
*
* Sequencer page
*
*/
#ifndef __SEQUENCER_H__
#define __SEQUENCER_H__
#include <stdio.h>
#include "arch.h"
#include "audio.h"
#include "buffermm.h"
#include "constants.h"
#include "dialog.h"
#include "font.h"
#include "patch.h"
#include "synthesizer.h"
#include "widgets.h"
// channel restart flags in seq
#define SEQ_RESTART_ENV 1
#define SEQ_RESTART_VCO 2
#define SEQ_RESTART_LFO 4
void sequencer_init();
void sequencer_clearsong(void);
int sequencer_ispattern(int ch, int clickpos);
int sequencer_patternstart(int ch, int clickpos);
void sequencer_mouse_hover(int x, int y);
void sequencer_mouse_drag(int x, int y);
void sequencer_mouse_click(int button, int state, int x, int y);
void sequencer_keyboard(unsigned char key, int x, int y);
void sequencer_draw(void);
void sequencer_draw_pattern(void);
void sequencer_pattern_hover(int x, int y);
void sequencer_pattern_click(int button, int state, int x, int y);
void sequencer_pattern_keyboard(unsigned char key, int x, int y);
void sequencer_draw_channel(void);
void sequencer_channel_hover(int x, int y);
void sequencer_channel_click(int button, int state, int x, int y);
void sequencer_channel_keyboard(unsigned char key, int x, int y);
void sequencer_draw_render(void);
void sequencer_render_hover(int x, int y);
void sequencer_render_click(int button, int state, int x, int y);
void sequencer_render_keyboard(unsigned char key, int x, int y);
void sequencer_draw_preview(void);
void sequencer_preview_hover(int x, int y);
void sequencer_preview_click(int button, int state, int x, int y);
void sequencer_preview_keyboard(unsigned char key, int x, int y);
void sequencer_draw_file(void);
void sequencer_file_hover(int x, int y);
void sequencer_file_click(int button, int state, int x, int y);
void sequencer_file_keyboard(unsigned char key, int x, int y);
void sequencer_file_drag(int x, int y);
void sequencer_file_checkstate(void);
void sequencer_draw_bpm(void);
void sequencer_bpm_hover(int x, int y);
void sequencer_bpm_click(int button, int state, int x, int y);
void sequencer_bpm_keyboard(unsigned char key, int x, int y);
int sequencer_bpm_convert(void);
void sequencer_bpm_close_dialog();
#endif