summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorerdgeist <erdgeist@bauklotz.fritz.box>2017-04-08 14:21:36 +0200
committererdgeist <erdgeist@bauklotz.fritz.box>2017-04-08 14:21:36 +0200
commitf2683a4b707cd714b7f540ebf6482563df83d51e (patch)
treede4941add99f0eb1642aa57c6af180b4ee70119a /config.h
parent78d309a97b782bd6ab2716fa7595bb3f409479e3 (diff)
Near complete rewrite.
Diffstat (limited to 'config.h')
-rw-r--r--config.h27
1 files changed, 18 insertions, 9 deletions
diff --git a/config.h b/config.h
index d7399fa..64f7689 100644
--- a/config.h
+++ b/config.h
@@ -1,8 +1,10 @@
1#pragma once 1#pragma once
2 2
3#include <stdint.h> 3#include <stdint.h>
4#include "geometry.h"
4 5
5#define MAX_LINECOUNT 32 6#define MAX_LINECOUNT 32
7#define CALIB_DEBUG
6 8
7extern int g_min_y, g_max_y; 9extern int g_min_y, g_max_y;
8 10
@@ -37,14 +39,21 @@ typedef enum {
37 playing = 2 39 playing = 2
38} StringPlaying; 40} StringPlaying;
39 41
40typedef struct { 42typedef enum {
41 int x0; int y0; 43 sel_none = 0,
42 int x1; int y1; 44 sel_min_y = 1,
43} LLine; 45 sel_max_y = 2,
46 sel_2_oct = 3,
47 sel_3_oct_top = 4,
48 sel_3_oct_bottom = 5
49} ConfigSelect;
44 50
45typedef struct { 51typedef enum {
46 int x; int y; 52 source_none = 0,
47} LPoint; 53 source_harfe = 1,
54 source_file = 2,
55 source_edit = 3
56} ConfigSource;
48 57
49typedef struct { 58typedef struct {
50 StringMode mode; 59 StringMode mode;
@@ -70,6 +79,6 @@ extern StringConfig g_string_conf[MAX_LINECOUNT];
70extern int g_string_count; 79extern int g_string_count;
71void config_reset(); 80void config_reset();
72int config_handle_line( char *line); 81int config_handle_line( char *line);
73void config_dumpglobals(char *out, size_t outsize); 82size_t config_dumpglobals(char *out, size_t outsize);
74void config_dumpstring(int string, char *out, size_t outsize); 83size_t config_dumpstring(int string, char *out, size_t outsize);
75char *config_midi_note_to_string(int string); 84char *config_midi_note_to_string(int string);