forked from sjlongland/atinysynth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtune_gen.c
91 lines (84 loc) · 6.81 KB
/
tune_gen.c
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
83
84
85
86
87
88
89
90
#include "tune_gen.h"
// Auto-generated code. Don't modify
// Tune: resources/tetris.mml
const uint16_t tune_adsr_time_scale_refs[] = {
0xe, 0xf, 0x1d, 0x1e, 0x38, 0x39, 0x3c, 0x3d, 0x5a, 0x5b, 0x79, 0x7a, 0xaa, 0xab, 0xf3, 0x1c8, 0x1c9, 0x2ae,
};
const uint16_t tune_wf_period_refs[] = {
0x0, 0x58, 0x63, 0x6f, 0x76, 0x85, 0x95, 0x9e, 0xb1, 0xbc, 0xc7, 0xdf, 0xed, 0x10a, 0x12b, 0x13d, 0x163, 0x179, 0x190, 0x1c1, 0x1dc, 0x217, 0x258,
};
const int8_t tune_wf_amplitude_refs[] = {
0x0, 0x28,
};
const uint8_t tune_adsr_release_start_refs[] = {
0x27, 0x37,
};
const uint8_t tune_data[TUNE_DATA_SIZE] = {
0x84, 0x44, 0xce, 0x10, 0x48, 0x0, 0xd, 0x58, 0x4e, 0xc4, 0x44, 0x4a, 0x11, 0x48, 0x0, 0xc5,
0x44, 0x4e, 0x4, 0x5, 0x81, 0x4, 0x40, 0x50, 0xc5, 0x44, 0x48, 0x4, 0x40, 0x4a, 0xc5, 0x44,
0x4e, 0x24, 0xfd, 0x80, 0x4, 0xc0, 0x80, 0xe4, 0x44, 0x4c, 0xa5, 0x4, 0x81, 0x4, 0x40, 0x48,
0x4, 0x50, 0x4c, 0x10, 0x48, 0x0, 0x4, 0x45, 0x0, 0xd, 0xd5, 0xd8, 0x4, 0x40, 0x80, 0x86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