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
| void set_tone(void){
unsigned char tone_data[35] ={
0x81, // header Header: 1byte(80H + Maximum Tone Number)
// T_ADR 0
// Entire Tone Setting
0x01, // BO (Basic Octave)
0x43, // LFO,ALG
//Operator1 Setting
0x00, // SR, XOF, KSR
0xE7, // RR, DR
0xFF, // AR, SL
0x9D, // TL, KSL
0x00, // DAM(amplitude modulation depth), EAM(enable amplitude modulation), DVB(vibrato depth), EVB(enable vibrato)
0x10, // MULTI(magnification of frequency), DT(detune)
0x40, // WS(wave shape), FB(FM feedback level)
// Operator2 Setting
0x20, // SR, XOF, KSR
0x33, // RR, DR
0xE2, // AR, SL
0x73, // TL, KSL
0x00, // DAM(amplitude modulation depth), EAM(enable amplitude modulation), DVB(vibrato depth), EVB(enable vibrato)
0x50, // MULTI(magnification of frequency), DT(detune)
0x40, // WS(wave shape), FB(FM feedback level)
// Operator3 Setting
0x10, // SR, XOF, KSR
0x41, // RR, DR
0xD3, // AR, SL
0x5B, // TL, KSL
0x00, // DAM(amplitude modulation depth), EAM(enable amplitude modulation), DVB(vibrato depth), EVB(enable vibrato)
0x10, // MULTI(magnification of frequency), DT(detune)
0x41, // WS(wave shape), FB(FM feedback level)
// Operator4 Setting
0x20, // SR, XOF, KSR
0x63, // RR, DR
0xD4, // AR, SL
0x02, // TL, KSL
0x01, // DAM(amplitude modulation depth), EAM(enable amplitude modulation), DVB(vibrato depth), EVB(enable vibrato)
0x10, // MULTI(magnification of frequency), DT(detune)
0x40, // WS(wave shape), FB(FM feedback level)
0x80,0x03,0x81,0x80, // End(80H,03H,81H,80H)
};
|