Skip to content

SPI Data table

k-omura edited this page Feb 11, 2023 · 5 revisions

SPI Data table

SPI communication data format.
It has an unsigned 8-bit size 4 array structure.
There may be changes due to the addition of functions, so please check occasionally.
The policy is not to change the order of the currently determined parameters even when changing.
See the table below for details.
c header file here

SPI data format

byte content partition
0 parameter low
1 parameter high
2 value low
3 value high

Signal

DEC HEX Parameter Description Range
0 0x0000 M_VOLUME Master Volume 0-100[%]
1 0x0001 SYNC_WAVFORM Synchronize signal components to S1 for all channels ON:1/OFF:0
2 0x0002 S1_ENABLE Signal1 Volume 0-100[%]
3 0x0003 S1_FREQ Frequency of the Signal1 0-34579 (See Freq. Trans. tab)
4 0x0004 S1_SIN Sine amplitude of the Signal1 0-512
5 0x0005 S1_SQU Square amplitude of the Signal1 0-512
6 0x0006 S1_SAW Saw amplitude of the Signal1 0-512
7 0x0007 S1_TRI Triangle amplitude of the Signal1 0-512
8 0x0008 S2_ENABLE Signal2 Volume 0-100[%]
9 0x0009 S2_FREQ Frequency of the Signal2 0-34579 (See Freq. Trans. tab)
10 0x000A S2_SIN Sine amplitude of the Signal2 0-512
11 0x000B S2_SQU Square amplitude of the Signal2 0-512
12 0x000C S2_SAW Saw amplitude of the Signal2 0-512
13 0x000D S2_TRI Triangle amplitude of the Signal2 0-512
14 0x000E S3_ENABLE Signal3 Volume 0-100[%]
15 0x000F S3_FREQ Frequency of the Signal3 0-34579 (See Freq. Trans. tab)
16 0x0010 S3_SIN Sine amplitude of the Signal3 0-512
17 0x0011 S3_SQU Square amplitude of the Signal3 0-512
18 0x0012 S3_SAW Saw amplitude of the Signal3 0-512
19 0x0013 S3_TRI Triangle amplitude of the Signal3 0-512
20 0x0014 S4_ENABLE Signal4 Volume 0-100[%]
21 0x0015 S4_FREQ Frequency of the Signal4 0-34579 (See Freq. Trans. tab)
22 0x0016 S4_SIN Sine amplitude of the Signal4 0-512
23 0x0017 S4_SQU Square amplitude of the Signal4 0-512
24 0x0018 S4_SAW Saw amplitude of the Signal4 0-512
25 0x0019 S4_TRI Triangle amplitude of the Signal4 0-512
26 0x001A S5_ENABLE Signal5 Volume 0-100[%]
27 0x001B S5_FREQ Frequency of the Signal5 0-34579 (See Freq. Trans. tab)
28 0x001C S5_SIN Sine amplitude of the Signal5 0-512
29 0x001D S5_SQU Square amplitude of the Signal5 0-512
30 0x001E S5_SAW Saw amplitude of the Signal5 0-512
31 0x001F S5_TRI Triangle amplitude of the Signal5 0-512
32 0x0020 S6_ENABLE Signal6 Volume 0-100[%]
33 0x0021 S6_FREQ Frequency of the Signal6 0-34579 (See Freq. Trans. tab)
34 0x0022 S6_SIN Sine amplitude of the Signal6 0-512
35 0x0023 S6_SQU Square amplitude of the Signal6 0-512
36 0x0024 S6_SAW Saw amplitude of the Signal6 0-512
37 0x0025 S6_TRI Triangle amplitude of the Signal6 0-512
38 0x0026 S7_ENABLE Signal7 Volume 0-100[%]
39 0x0027 S7_FREQ Frequency of the Signal7 0-34579 (See Freq. Trans. tab)
40 0x0028 S7_SIN Sine amplitude of the Signal7 0-512
41 0x0029 S7_SQU Square amplitude of the Signal7 0-512
42 0x002A S7_SAW Saw amplitude of the Signal7 0-512
43 0x002B S7_TRI Triangle amplitude of the Signal7 0-512
44 0x002C S8_ENABLE Signal8 Volume 0-100[%]
45 0x002D S8_FREQ Frequency of the Signal8 0-34579 (See Freq. Trans. tab)
46 0x002E S8_SIN Sine amplitude of the Signal8 0-512
47 0x002F S8_SQU Square amplitude of the Signal8 0-512
48 0x0030 S8_SAW Saw amplitude of the Signal8 0-512
49 0x0031 S8_TRI Triangle amplitude of the Signal8 0-512
50 0x0032 S9_ENABLE Signal9 Volume 0-100[%]
51 0x0033 S9_FREQ Frequency of the Signal9 0-34579 (See Freq. Trans. tab)
52 0x0034 S9_SIN Sine amplitude of the Signal9 0-512
53 0x0035 S9_SQU Square amplitude of the Signal9 0-512
54 0x0036 S9_SAW Saw amplitude of the Signal9 0-512
55 0x0037 S9_TRI Triangle amplitude of the Signal9 0-512
56 0x0038 S10_ENABLE Signal10 Volume 0-100[%]
57 0x0039 S10_FREQ Frequency of the Signal10 0-34579 (See Freq. Trans. tab)
58 0x003A S10_SIN Sine amplitude of the Signal10 0-512
59 0x003B S10_SQU Square amplitude of the Signal10 0-512
60 0x003C S10_SAW Saw amplitude of the Signal10 0-512
61 0x003D S10_TRI Triangle amplitude of the Signal10 0-512
62 0x003E N1_ENABLE Noise without frequency band limitation 0-100[%]
63 0x003F N1_setting Reserved -
64 0x0040 N2_ENABLE Noise with LPF 0-100[%]
65 0x0041 N2_LPFFREQ Cutoff frequency of Low-Pass Filter for N2, Q=0.8 0-34579 (See Freq. Trans. tab)
66 0x0042 N3_ENABLE Noise with HPF 0-100[%]
67 0x0043 N3_HPFFREQ Cutoff frequency of High-Pass Filter for N3, Q=0.8 0-34579 (See Freq. Trans. tab)

Behavior

DEC HEX Parameter Description Range
68 0x0044 EG_ATTACK_TIM Envelope Generator Attack 0-65535[ms]
69 0x0045 EG_ATTACK_LEVEL Envelope Generator Attack Max Level 100< (SUSTAIN_LEVEL*EG_ATTACK_LEVEL/100 (Sustain level = Sx_ENABLE))
70 0x0046 EG_DECAY_TIME Envelope Generator Decay 0-65535[ms]
71 0x0047 EG_RELEASE_TIME Envelope Generator Release 0-65535[ms]
72 0x0048 LPF_CUTOFF Cutoff frequency of Low-Pass Filter 0-34579 (See Freq. Trans. tab)
73 0x0049 LPF_Q Q value of Low-Pass Filter LPF_Q/100
74 0x004A WOW_FORM WOW waveform. 0-4.[SIN,SQU,SAW1,TRI,SAW2]
75 0x004B WOW_LFO WOW frequency 0-65535 (See Freq. Trans. LFO tab)
76 0x004C WOW_AMP WOW amplitude 0-34579 (See Freq. Trans. tab)
77 0x004D VIB_FORM Vibrato waveform. 0-4.[SIN,SQU,SAW1,TRI,SAW2]
78 0x004E VIB_LFO Vibrato frequency 0-65535 (See Freq. Trans. LFO tab)
79 0x004F VIB_AMP Vibrato amplitude 0-34579 (See Freq. Trans. tab)
80 0x0050 TRE_FORM Tremolo waveform. 0-4.[SIN,SQU,SAW1,TRI,SAW2]
81 0x0051 TRE_LFO Tremolo frequency 0-65535 (See Freq. Trans. LFO tab)
82 0x0052 TRE_AMP Tremolo amplitude 0-512
83 0x0053 PITCH Pitch 0-512 (Sx_FREQ + Pitch - 256)
Clone this wiki locally