-
Notifications
You must be signed in to change notification settings - Fork 2
/
tune.h
75 lines (55 loc) · 1.74 KB
/
tune.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
#ifndef __TUNE_H__
#define __TUNE_H__
#include "player.h"
const byte Seq1[] PROGMEM = { 8, 9, 10, 11, 12, 14, 16, 12, 10, SEQ_REL, 6, 5, 4, 3, 2, 1, SEQ_END };
const byte Seq2[] PROGMEM = { SEQ_LOOP, 1, 5, 8, SEQ_END };
const byte Seq3[] PROGMEM = { 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, SEQ_END };
const byte Seq4[] PROGMEM = { 15, 14, 13, 10, 7, 4, 2, 1, SEQ_END };
const byte Seqs[] = { Seq1, Seq2, Seq3 };
const byte SongData0[] PROGMEM = {
NOTE_LEN, 15,
QUANT_LEN, 12,
VOLUME_ENV, 1,
VOLUME, 15,
INC_OCTAVE,
TRACK_LOOP,
LOOP_START, 2, NOTE_C, NOTE_E, NOTE_G, NOTE_B, DEC_VOLUME, LOOP_END,
LOOP_START, 2, NOTE_C, NOTE_DS, NOTE_G, NOTE_AS, DEC_VOLUME, LOOP_END,
END
};
const byte SongData1[] PROGMEM = {
NOTE_LEN, 15,
QUANT_LEN, 12,
VOLUME_ENV, 1,
VOLUME, 7,
REST|WITH_LEN|WITH_Q, 12, 12,
INC_OCTAVE,
TRACK_LOOP,
LOOP_START, 2, NOTE_C, NOTE_E, NOTE_G, NOTE_B, DEC_VOLUME, LOOP_END,
LOOP_START, 2, NOTE_C, NOTE_DS, NOTE_G, NOTE_AS, DEC_VOLUME, LOOP_END,
END
};
const byte SongData2[] PROGMEM = {
NOTE_LEN, 7,
QUANT_LEN, 7,
OCTAVE, 3,
LOOP_START, 8,
LOOP_START, 4, NOTE_C, LOOP_END,
INC_OCTAVE, NOTE_C, DEC_OCTAVE, NOTE_C, NOTE_B, DEC_OCTAVE, NOTE_B, INC_OCTAVE,
LOOP_END,
END
};
const byte SongData3[] PROGMEM = {
//REST|WITH_LEN|WITH_Q, 64, 64,
VOLUME_ENV, 3,
//NOTE_ENV, 2,
//NOTE_LEN, 32, QUANT_LEN, 32,
NOTE_LEN, 15, QUANT_LEN, 15,
OCTAVE, 0,
LOOP_START, 8,
NOTE_C, NOTE_CS, NOTE_D, NOTE_DS, NOTE_E, NOTE_F, NOTE_FS, NOTE_G, NOTE_GS, NOTE_A, NOTE_AS, NOTE_B, INC_OCTAVE,
LOOP_END,
END,
};
const byte* SongData[] = { SongData0, SongData1, SongData2, SongData3 };
#endif /* ifndef __TUNE_H__ */