aboutsummaryrefslogtreecommitdiffstats
path: root/src/assets.c
blob: f685a05d63c25ae7fc100f522057681450dfe394 (plain)
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
#ifndef STEPPER_ASSETS_C
#define STEPPER_ASSETS_C

//
// Sprites.
//

static const u32 note_name_sprites[] = {
    0xe0000000, 0xe0202020, 0x0e000000, 0x0e020e08,
    0x98000000, 0x98a8a8a8, 0x38000000, 0x390a3b20,
    0x60000000, 0x60a0a0a0, 0x0e000000, 0x0e020e08,
    0xb8000000, 0xb8889888, 0x38000000, 0x390a3b20,
    0xe0000000, 0xe0206020, 0x0e000000, 0x0e020e08,
    0xe0000000, 0x20206020, 0x0e000000, 0x0e020e08,
    0xb8000000, 0xb8a88888, 0x38000000, 0x390a3b20,
    0xe0000000, 0xe0a02020, 0x0e000000, 0x0e020e08,
    0xb8000000, 0xa8b8a8a8, 0x38000000, 0x390a3b20,
    0xe0000000, 0xa0e0a0a0, 0x0e000000, 0x0e020e08,
    0xb8000000, 0xb8a898a8, 0x38000000, 0x390a3b20,
    0xe0000000, 0xe0a060a0, 0x0e000000, 0x0e020e08,
    0xe0000000, 0xe0202020, 0x0e000000, 0x0e080c08,
    0x98000000, 0x98a8a8a8, 0x38000000, 0x39223320,
    0x60000000, 0x60a0a0a0, 0x0e000000, 0x0e080c08,
    0xb8000000, 0xb8889888, 0x38000000, 0x39223320,
    0xe0000000, 0xe0206020, 0x0e000000, 0x0e080c08,
    0xe0000000, 0x20206020, 0x0e000000, 0x0e080c08,
    0xb8000000, 0xb8a88888, 0x38000000, 0x39223320,
    0xe0000000, 0xe0a02020, 0x0e000000, 0x0e080c08,
    0xb8000000, 0xa8b8a8a8, 0x38000000, 0x39223320,
    0xe0000000, 0xa0e0a0a0, 0x0e000000, 0x0e080c08,
    0xb8000000, 0xb8a898a8, 0x38000000, 0x39223320,
    0xe0000000, 0xe0a060a0, 0x0e000000, 0x0e080c08,
    0xe0000000, 0xe0202020, 0x0a000000, 0x08080e0a,
    0x98000000, 0x98a8a8a8, 0x28000000, 0x21223b28,
    0x60000000, 0x60a0a0a0, 0x0a000000, 0x08080e0a,
    0xb8000000, 0xb8889888, 0x28000000, 0x21223b28,
    0xe0000000, 0xe0206020, 0x0a000000, 0x08080e0a,
    0xe0000000, 0x20206020, 0x0a000000, 0x08080e0a,
    0xb8000000, 0xb8a88888, 0x28000000, 0x21223b28,
    0xe0000000, 0xe0a02020, 0x0a000000, 0x08080e0a,
    0xb8000000, 0xa8b8a8a8, 0x28000000, 0x21223b28,
    0xe0000000, 0xa0e0a0a0, 0x0a000000, 0x08080e0a,
    0xb8000000, 0xb8a898a8, 0x28000000, 0x21223b28,
    0xe0000000, 0xe0a060a0, 0x0a000000, 0x08080e0a,
    0xe0000000, 0xe0202020, 0x0e000000, 0x0e080e02,
    0x98000000, 0x98a8a8a8, 0x38000000, 0x39223b08,
    0x60000000, 0x60a0a0a0, 0x0e000000, 0x0e080e02,
    0xb8000000, 0xb8889888, 0x38000000, 0x39223b08,
    0xe0000000, 0xe0206020, 0x0e000000, 0x0e080e02,
    0xe0000000, 0x20206020, 0x0e000000, 0x0e080e02,
    0xb8000000, 0xb8a88888, 0x38000000, 0x39223b08,
    0xe0000000, 0xe0a02020, 0x0e000000, 0x0e080e02,
    0xb8000000, 0xa8b8a8a8, 0x38000000, 0x39223b08,
    0xe0000000, 0xa0e0a0a0, 0x0e000000, 0x0e080e02,
    0xb8000000, 0xb8a898a8, 0x38000000, 0x39223b08,
    0xe0000000, 0xe0a060a0, 0x0e000000, 0x0e080e02,
    0xe0000000, 0xe0202020, 0x0e000000, 0x0e0a0e02,
    0x98000000, 0x98a8a8a8, 0x38000000, 0x392a3b08,
    0x60000000, 0x60a0a0a0, 0x0e000000, 0x0e0a0e02,
    0xb8000000, 0xb8889888, 0x38000000, 0x392a3b08,
    0xe0000000, 0xe0206020, 0x0e000000, 0x0e0a0e02,
    0xe0000000, 0x20206020, 0x0e000000, 0x0e0a0e02,
    0xb8000000, 0xb8a88888, 0x38000000, 0x392a3b08,
    0xe0000000, 0xe0a02020, 0x0e000000, 0x0e0a0e02,
    0xb8000000, 0xa8b8a8a8, 0x38000000, 0x392a3b08,
    0xe0000000, 0xa0e0a0a0, 0x0e000000, 0x0e0a0e02,
    0xb8000000, 0xb8a898a8, 0x38000000, 0x392a3b08,
    0xe0000000, 0xe0a060a0, 0x0e000000, 0x0e0a0e02,
    0xe0000000, 0xe0202020, 0x0e000000, 0x02020408,
    0x98000000, 0x98a8a8a8, 0x38000000, 0x090a1320,
    0x60000000, 0x60a0a0a0, 0x0e000000, 0x02020408,
    0xb8000000, 0xb8889888, 0x38000000, 0x090a1320,
    0xe0000000, 0xe0206020, 0x0e000000, 0x02020408,
    0xe0000000, 0x20206020, 0x0e000000, 0x02020408,
    0xb8000000, 0xb8a88888, 0x38000000, 0x090a1320,
    0xe0000000, 0xe0a02020, 0x0e000000, 0x02020408,
    0xb8000000, 0xa8b8a8a8, 0x38000000, 0x090a1320,
    0xe0000000, 0xa0e0a0a0, 0x0e000000, 0x02020408,
    0xb8000000, 0xb8a898a8, 0x38000000, 0x090a1320,
    0xe0000000, 0xe0a060a0, 0x0e000000, 0x02020408,
    0xe0000000, 0xe0202020, 0x0e000000, 0x0e0a0e0a,
};

static const u32 ch_btn_sprite[] = {
    // CH1
    0x888e80ff, 0xff808e88,
    0xa1a100ff, 0xff00a9e1,
    0x101010f0, 0xf0101010,

    // CH2
    0x919d80ff, 0xff809d91,
    0x424200ff, 0xff0052c2,
    0x909010f0, 0xf0109090,

    // CH3
    0xa2ba80ff, 0xff80baa3,
    0x858500ff, 0xff00a585,
    0x505010f0, 0xf0105050,

    // CH4
    0xa2ba80ff, 0xff80baa3,
    0x858500ff, 0xff00a485,
    0x505010f0, 0xf010d050,
};

static const u32 default_wave_buttons[] = {
    0x493101ff, 0xff010185, 0x2820203f, 0x3f202324,
    0x516101ff, 0xff01c549, 0x2a2c203f, 0x3f202829,
    0x457d01ff, 0xff01c545, 0x2828203f, 0x3f202f28,
    0x114901ff, 0xff012581, 0x2821203f, 0x3f202024,
};

//
// Wave data.
//

static const u32 sine_wave[16] = {
    0xefdebc89, 0x98cbedfe, 0x10214376, 0x67341201,
};

static const u32 saw_wave[16] = {
    0x67452301, 0xefcdab89, 0x67452301, 0xefcdab89,
};

static const u32 square_wave[16] = {
    0xffffffff, 0xffffffff, 0x00000000, 0x00000000,
};

#endif // STEPPER_ASSETS_C