|
@@ -3,6 +3,9 @@
|
3
|
3
|
|
4
|
4
|
Arguments in curly braces are optional.
|
5
|
5
|
|
|
6
|
+------------------------------------------------------------------------------------------
|
|
7
|
+
|
|
8
|
+Hold PWM Duty Cycle
|
6
|
9
|
|
7
|
10
|
Function | Opcode | Arguments
|
8
|
11
|
-------------------------|--------|---------------------------
|
|
@@ -16,7 +19,6 @@ Arguments | Range | Default | Note
|
16
|
19
|
|
17
|
20
|
PWM frequency and period for each possible (div) setting.
|
18
|
21
|
|
19
|
|
-Reg. | | Base |
|
20
|
22
|
Value | Div | Frequency | Period
|
21
|
23
|
------|------|-------------|-------
|
22
|
24
|
1 | 1 | 16 M | 62.5 n
|
|
@@ -35,6 +37,9 @@ Value | Div | Frequency | Period
|
35
|
37
|
14 | 8192 | 1953.125 Hz | 512 u
|
36
|
38
|
15 |16384 | 976.6625 Hz | 1024 u
|
37
|
39
|
|
|
40
|
+------------------------------------------------------------------------------------------
|
|
41
|
+
|
|
42
|
+Note-on Velocity
|
38
|
43
|
|
39
|
44
|
Function | Opcode | Arguments
|
40
|
45
|
-------------------------|--------|---------------------------
|
|
@@ -48,6 +53,9 @@ Execute a note onset.
|
48
|
53
|
The (vel) value is translated to an attack pulse duration
|
49
|
54
|
by looking up the pulse tick count in the velocity table.
|
50
|
55
|
|
|
56
|
+------------------------------------------------------------------------------------------
|
|
57
|
+
|
|
58
|
+Note-on Microseconds
|
51
|
59
|
|
52
|
60
|
Function | Opcode | Arguments
|
53
|
61
|
-------------------------|--------|-------------------------------------------------
|
|
@@ -67,6 +75,10 @@ ticks to micoseconds:
|
67
|
75
|
usecs = (pulse-ticks * 1e6)*(256/16e6)
|
68
|
76
|
|
69
|
77
|
|
|
78
|
+------------------------------------------------------------------------------------------
|
|
79
|
+
|
|
80
|
+Note-off
|
|
81
|
+
|
70
|
82
|
Function | Opcode | Arguments
|
71
|
83
|
-------------------------|--------|---------------------------
|
72
|
84
|
Note off | 3 | None
|
|
@@ -74,6 +86,10 @@ Note off | 3 | None
|
74
|
86
|
Turn off a sounding note by settting the hold-voltage to 0.
|
75
|
87
|
|
76
|
88
|
|
|
89
|
+------------------------------------------------------------------------------------------
|
|
90
|
+
|
|
91
|
+Set Read Address
|
|
92
|
+
|
77
|
93
|
Function | Opcode | Arguments
|
78
|
94
|
-------------------------|--------|---------------------------
|
79
|
95
|
Set read address | 4 | (src) {(addr)}
|
|
@@ -84,18 +100,24 @@ The read can come from one of three memory banks:
|
84
|
100
|
Register File, MIDI velocity table or EEPROM.
|
85
|
101
|
See the _Memory Location Id_ table below for the (src) id values.
|
86
|
102
|
|
87
|
|
-
|
88
|
103
|
Arguments | Range | Default | Note
|
89
|
104
|
------------|-------|---------|-------------------------------------------------------
|
90
|
105
|
(src) | 0-2 | n/a | Memory location id. See _Memory Location Id_ table.
|
91
|
106
|
(addr) | 0-255 | n/a | Offset from base address set by (src)
|
92
|
107
|
|
93
|
108
|
|
|
109
|
+------------------------------------------------------------------------------------------
|
|
110
|
+
|
|
111
|
+Write Memory
|
|
112
|
+
|
94
|
113
|
Function | Opcode | Arguments
|
95
|
114
|
-------------------------|--------|---------------------------
|
96
|
115
|
Write memory | 5 |
|
97
|
116
|
|
98
|
117
|
|
|
118
|
+------------------------------------------------------------------------------------------
|
|
119
|
+
|
|
120
|
+Set Hold Delay
|
99
|
121
|
|
100
|
122
|
Function | Opcode | Arguments
|
101
|
123
|
-------------------------|--------|---------------------------
|
|
@@ -106,6 +128,9 @@ hold voltage is applied.
|
106
|
128
|
The high and low byte values are calculated identically to the
|
107
|
129
|
attack pulse duration values.
|
108
|
130
|
|
|
131
|
+------------------------------------------------------------------------------------------
|
|
132
|
+
|
|
133
|
+Set *flags* variable
|
109
|
134
|
|
110
|
135
|
Function | Opcode | Arguments
|
111
|
136
|
-------------------------|--------|---------------------------
|
|
@@ -117,8 +142,10 @@ Set flags variable | 7 | (flags)
|
117
|
142
|
|
118
|
143
|
_HOA_ : Set to apply the hold voltage at the beginning of the attack.
|
119
|
144
|
|
|
145
|
+------------------------------------------------------------------------------------------
|
|
146
|
+
|
|
147
|
+Register File Address
|
120
|
148
|
|
121
|
|
-Register file
|
122
|
149
|
|
123
|
150
|
Address | Label | Note
|
124
|
151
|
--------|-----------------|------------------------------------------------------------------------------------------------
|
|
@@ -144,6 +171,8 @@ Address | Label | Note
|
144
|
171
|
19 | Flags_Addr | Binary variable field.
|
145
|
172
|
|
146
|
173
|
|
|
174
|
+------------------------------------------------------------------------------------------
|
|
175
|
+
|
147
|
176
|
Memory Location Id table.
|
148
|
177
|
|
149
|
178
|
Id | Memory | Note
|