tico 0.1
Mechanical Watch Terminal Timegrapher
mydefs.h
Go to the documentation of this file.
1#define ARRAY_BUFFER_SIZE 512
2#define AUTOCOR_LIMIT 1
3#define AVG_THRESHOLD 1000
4#define BEAT_WIDTH 5
5#define BITS_IN_BYTE 8
6#define BUFFER_SIZE 256
7#define CLEAR_LINE "\033[0K"
8#define CLIPSTREAK 10
9#define COLOR_CYAN "\033[96m"
10#define COLOR_GREEN "\033[32m"
11#define COLOR_RED "\033[31m"
12#define COLOR_RESET "\033[0m"
13#define CURSOR_COL_FMT "\033[%dG"
14#define CURSOR_RESTORE "\033[u"
15#define CURSOR_ROW12 "\033[12;0H"
16#define CURSOR_ROW2 "\033[2;0H"
17#define CURSOR_SAVE "\033[s"
18#define DEBUG 0
19#define DECIMAL 10
20#define DEFAULT_BPH 21600
21#define DEFAULT_COLUMNS 80
22#define DEFAULT_CVALUE 0.5
23#define DEFAULT_EVALUE 4
24#define DEFAULT_FITN 30
25#define DEFAULT_NN 1000
26#define DEFAULT_PERIOD 1024
27#define DEFAULT_RATE 48000
28#define DEFAULT_SDTHRESHOLD 3.0
29#define DEFAULT_TEETH 1
30#define DEFAULT_TIME 30
31#define DEFAULT_WRITE_INTERVAL 32
32#define DEFAULT_ZOOM 10
33#define DOUBLE_BUF 319
34#define DOUBLE_LIMIT 1e-18
35#define ERROR_ALLOCATE_MEM -5
36#define ERROR_NO_SOURCE -6
37#define ERROR_SIGNAL -6
38#define EVERY_WIDTH 14
39#define FALSE 0
40#define FILE_NAME_LENGTH 256
41#define FRAME_FALLBACK 64.0
42#define GAUSSIAN_CONST .398942280401
43#define GAUSSPOINTS 5
44#define GNUPLOTMARGIN 0.2
45#define HALF 0.5
46#define HEX_BASE 16
47#define INIT_ERROR -2
48#define INIT_N 4000
49#define INPUT_FILE_ERROR -33
50#define INPUT_OVERFLOW -4
51#define INPUT_SOUND_ERROR -34
52#define KILO 1000.
53#define LINE_BUFFER_SIZE 256
54#define MAX_COLUMNS 1024
55#define MAX_CVALUE 15
56#define MAX_DEVICE_LENGTH 80
57#define MEGA 1000000.
58#define MILLI 1e-3
59#define MILLION 1000000L
60#define NANO 1e-9
61#define NR_TESTS 5
62#define PCM_WIDTH 8
63#define PRESHIFT_THRESHOLD 100
64#define PRESHIFT_THRESHOLD_ROOT 10
65#define RATE_WIDTH 8
66#define READ_FAILED -1
67#define REINIT_ERROR -32
68#define SECS_DAY 86400
69#define SECS_HOUR 3600
70#define STDEV_LIMIT 1.5
71#define THOUSAND 1000
72#define TRUE 1
73#pragma once