@audiofab-io/fv1-core 0.5.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/blocks/ATL_DEVELOPER_REFERENCE.md +156 -156
- package/blocks/control/constant.atl +36 -36
- package/blocks/control/entropy_lfo.atl +74 -74
- package/blocks/control/envelope.atl +120 -120
- package/blocks/control/invert.atl +33 -33
- package/blocks/control/pot.atl +149 -149
- package/blocks/control/power.atl +76 -76
- package/blocks/control/ramp_lfo.atl +122 -122
- package/blocks/control/scale_offset.atl +84 -84
- package/blocks/control/sincos_lfo.atl +126 -126
- package/blocks/control/smoother.atl +48 -48
- package/blocks/control/tremolizer.atl +54 -54
- package/blocks/effects/delay/micro_stutter.atl +77 -77
- package/blocks/effects/delay/mn3011.atl +280 -280
- package/blocks/effects/delay/simple_delay.atl +96 -96
- package/blocks/effects/delay/triple_tap_delay.atl +176 -176
- package/blocks/effects/lo-fi/bit_mangler.atl +74 -74
- package/blocks/effects/lo-fi/chiptune.atl +311 -311
- package/blocks/effects/lo-fi/tape_degrade.atl +181 -181
- package/blocks/effects/modulation/chorus.atl +141 -141
- package/blocks/effects/modulation/chorus_4voice.atl +188 -188
- package/blocks/effects/modulation/flanger.atl +184 -184
- package/blocks/effects/modulation/harmonic_trem.atl +129 -129
- package/blocks/effects/modulation/phaser.atl +299 -299
- package/blocks/effects/pitch/octave_up_down.atl +80 -80
- package/blocks/effects/pitch/pitch_offset.atl +149 -149
- package/blocks/effects/pitch/pitch_offset_dual.atl +197 -197
- package/blocks/effects/pitch/pitch_shift.atl +115 -115
- package/blocks/effects/pitch/sub_octave.atl +100 -100
- package/blocks/effects/reverb/ducking_reverb.atl +145 -145
- package/blocks/effects/reverb/min_reverb.atl +132 -132
- package/blocks/effects/reverb/plate_reverb.atl +344 -344
- package/blocks/effects/reverb/room_reverb.atl +293 -293
- package/blocks/effects/reverb/smear.atl +90 -90
- package/blocks/effects/reverb/spring_reverb.atl +353 -353
- package/blocks/filter/1p_high_pass.atl +62 -62
- package/blocks/filter/1p_low_pass.atl +58 -58
- package/blocks/filter/auto_wah.atl +207 -207
- package/blocks/filter/bbd_loss.atl +79 -79
- package/blocks/filter/shelving_high_pass.atl +76 -76
- package/blocks/filter/shelving_low_pass.atl +76 -76
- package/blocks/filter/svf_2p.atl +116 -116
- package/blocks/gain_mix/crossfade.atl +93 -93
- package/blocks/gain_mix/crossfade2.atl +86 -86
- package/blocks/gain_mix/crossfade3.atl +71 -71
- package/blocks/gain_mix/gainboost.atl +54 -54
- package/blocks/gain_mix/mixer2.atl +76 -76
- package/blocks/gain_mix/mixer3.atl +109 -109
- package/blocks/gain_mix/mixer4.atl +151 -151
- package/blocks/gain_mix/volume.atl +50 -50
- package/blocks/io/adc.atl +53 -53
- package/blocks/io/dac.atl +61 -61
- package/blocks/other/stickynote.atl +24 -24
- package/blocks/other/tone_gen_adjustable.atl +137 -137
- package/blocks/other/tone_gen_fixed.atl +109 -109
- package/dist/blockDiagram/builtinBlocks.js +107 -107
- package/dist/blockDiagram/builtinBlocks.js.map +1 -1
- package/dist/blockDiagram/compiler/BlockTemplate.d.ts.map +1 -1
- package/dist/blockDiagram/compiler/BlockTemplate.js +18 -0
- package/dist/blockDiagram/compiler/BlockTemplate.js.map +1 -1
- package/dist/spnbank/index.d.ts +49 -7
- package/dist/spnbank/index.d.ts.map +1 -1
- package/dist/spnbank/index.js +99 -15
- package/dist/spnbank/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,293 +1,293 @@
|
|
|
1
|
-
---
|
|
2
|
-
{
|
|
3
|
-
"type": "effects.reverb.room",
|
|
4
|
-
"category": "Effects",
|
|
5
|
-
"subcategory": "Reverb",
|
|
6
|
-
"name": "Room Reverb",
|
|
7
|
-
"description": "Hall-style reverb with pre-delay, damping, and stereo output",
|
|
8
|
-
"color": "#7100FC",
|
|
9
|
-
"inputs": [
|
|
10
|
-
{ "id": "input", "name": "Input", "type": "audio", "required": true },
|
|
11
|
-
{ "id": "pre_delay", "name": "Pre Delay", "type": "control", "required": false, "parameter": "preDelay" },
|
|
12
|
-
{ "id": "reverb_time", "name": "Reverb Time", "type": "control", "required": false, "parameter": "reverbTime" },
|
|
13
|
-
{ "id": "hf_loss", "name": "HF Loss", "type": "control", "required": false, "parameter": "hfLoss" }
|
|
14
|
-
],
|
|
15
|
-
"outputs": [
|
|
16
|
-
{ "id": "outputL", "name": "Output L", "type": "audio" },
|
|
17
|
-
{ "id": "outputR", "name": "Output R", "type": "audio" }
|
|
18
|
-
],
|
|
19
|
-
"parameters": [
|
|
20
|
-
{
|
|
21
|
-
"id": "inputGain",
|
|
22
|
-
"name": "Input Gain",
|
|
23
|
-
"type": "number",
|
|
24
|
-
"min": -24,
|
|
25
|
-
"max": 0,
|
|
26
|
-
"default": -6,
|
|
27
|
-
"conversion": "DBLEVEL"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"id": "preDelay",
|
|
31
|
-
"name": "Pre-Delay (ms)",
|
|
32
|
-
"type": "number",
|
|
33
|
-
"default": 25,
|
|
34
|
-
"min": 0,
|
|
35
|
-
"max": 100,
|
|
36
|
-
"conversion": "MS_TO_SAMPLES",
|
|
37
|
-
"step": 1
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"id": "reverbTime",
|
|
41
|
-
"name": "Reverb Time",
|
|
42
|
-
"type": "number",
|
|
43
|
-
"default": 0.5,
|
|
44
|
-
"min": 0.05,
|
|
45
|
-
"max": 0.95,
|
|
46
|
-
"step": 0.01
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"id": "hfDamping",
|
|
50
|
-
"name": "HF Damping",
|
|
51
|
-
"type": "number",
|
|
52
|
-
"min": 40,
|
|
53
|
-
"max": 1000,
|
|
54
|
-
"default": 100,
|
|
55
|
-
"conversion": "LOGFREQ"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"id": "inputAllpassCoeff",
|
|
59
|
-
"name": "Input Allpass",
|
|
60
|
-
"type": "number",
|
|
61
|
-
"default": 0.5,
|
|
62
|
-
"min": 0.05,
|
|
63
|
-
"max": 0.95,
|
|
64
|
-
"step": 0.01
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
"id": "delayAllpassCoeff",
|
|
68
|
-
"name": "Delay Allpass",
|
|
69
|
-
"type": "number",
|
|
70
|
-
"default": 0.5,
|
|
71
|
-
"min": 0.05,
|
|
72
|
-
"max": 0.95,
|
|
73
|
-
"step": 0.01
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
"id": "hfLoss",
|
|
77
|
-
"name": "HF Loss",
|
|
78
|
-
"type": "number",
|
|
79
|
-
"default": 1.0,
|
|
80
|
-
"min": 0.0,
|
|
81
|
-
"max": 1.0,
|
|
82
|
-
"step": 0.01,
|
|
83
|
-
"description": "High-frequency loss applied in the reverb loops. 1.0 = full HF, 0.0 = maximum loss."
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
"id": "lfoRate",
|
|
87
|
-
"name": "LFO Rate (Hz)",
|
|
88
|
-
"type": "number",
|
|
89
|
-
"default": 0.25,
|
|
90
|
-
"min": 0.05,
|
|
91
|
-
"max": 2.0,
|
|
92
|
-
"conversion": "HZ_TO_LFO_RATE",
|
|
93
|
-
"description": "Frequency of the LFO modulation in Hz.",
|
|
94
|
-
"step": 0.01
|
|
95
|
-
}
|
|
96
|
-
],
|
|
97
|
-
"memories": [
|
|
98
|
-
{ "id": "pdel", "size": 3276 },
|
|
99
|
-
{ "id": "tdel", "size": 4000 },
|
|
100
|
-
{ "id": "ap1", "size": 473 },
|
|
101
|
-
{ "id": "ap2", "size": 536 },
|
|
102
|
-
{ "id": "ap3", "size": 667 },
|
|
103
|
-
{ "id": "ap4", "size": 791 },
|
|
104
|
-
{ "id": "tap1", "size": 452 },
|
|
105
|
-
{ "id": "tap2", "size": 561 },
|
|
106
|
-
{ "id": "lap1a", "size": 878 },
|
|
107
|
-
{ "id": "lap1b", "size": 1287 },
|
|
108
|
-
{ "id": "d1", "size": 1536 },
|
|
109
|
-
{ "id": "lap2a", "size": 968 },
|
|
110
|
-
{ "id": "lap2b", "size": 1367 },
|
|
111
|
-
{ "id": "d2", "size": 1891 },
|
|
112
|
-
{ "id": "lap3a", "size": 678 },
|
|
113
|
-
{ "id": "lap3b", "size": 1127 },
|
|
114
|
-
{ "id": "d3", "size": 1936 },
|
|
115
|
-
{ "id": "lap4a", "size": 1263 },
|
|
116
|
-
{ "id": "lap4b", "size": 1198 },
|
|
117
|
-
{ "id": "d4", "size": 1781 }
|
|
118
|
-
],
|
|
119
|
-
"registers": [
|
|
120
|
-
"apout", "temp", "kd", "rt_cv", "lp1", "lp2", "lp3", "lp4", "hp1", "hp2", "tlp"
|
|
121
|
-
]
|
|
122
|
-
}
|
|
123
|
-
---
|
|
124
|
-
@section init
|
|
125
|
-
@if pinConnected(input)
|
|
126
|
-
; Room Reverb init
|
|
127
|
-
skp run, room_reverb_init
|
|
128
|
-
wrax ${reg.lp1}, 0.0
|
|
129
|
-
wrax ${reg.lp2}, 0.0
|
|
130
|
-
wrax ${reg.hp1}, 0.0
|
|
131
|
-
wrax ${reg.hp2}, 0.0
|
|
132
|
-
wrax ${reg.tlp}, 0.0
|
|
133
|
-
wlds SIN0, ${lfoRate}, 100
|
|
134
|
-
room_reverb_init:
|
|
135
|
-
@endif
|
|
136
|
-
|
|
137
|
-
@section main
|
|
138
|
-
@if pinConnected(input)
|
|
139
|
-
|
|
140
|
-
; Room Reverb
|
|
141
|
-
|
|
142
|
-
; Evaluate Control Voltages globally
|
|
143
|
-
@cv hf_loss
|
|
144
|
-
wrax ${reg.kd}, 0.0
|
|
145
|
-
|
|
146
|
-
@cv reverb_time
|
|
147
|
-
wrax ${reg.rt_cv}, 0.0
|
|
148
|
-
|
|
149
|
-
@cv pre_delay
|
|
150
|
-
sof 0.1, 0.0
|
|
151
|
-
wrax ADDR_PTR, 0.0
|
|
152
|
-
|
|
153
|
-
; Feed input to pre-delay
|
|
154
|
-
rdax ${input.input}, ${inputGain}
|
|
155
|
-
wra ${mem.pdel}, 0.0
|
|
156
|
-
|
|
157
|
-
; Read pre-delay and write to tap delay
|
|
158
|
-
rmpa 1.0
|
|
159
|
-
wra ${mem.tdel}, 1.0
|
|
160
|
-
|
|
161
|
-
; 4 input allpass filters
|
|
162
|
-
rda ${mem.ap1}^, ${inputAllpassCoeff}
|
|
163
|
-
wrap ${mem.ap1}, -${inputAllpassCoeff}
|
|
164
|
-
rda ${mem.ap2}^, ${inputAllpassCoeff}
|
|
165
|
-
wrap ${mem.ap2}, -${inputAllpassCoeff}
|
|
166
|
-
rda ${mem.ap3}^, ${inputAllpassCoeff}
|
|
167
|
-
wrap ${mem.ap3}, -${inputAllpassCoeff}
|
|
168
|
-
rda ${mem.ap4}^, ${inputAllpassCoeff}
|
|
169
|
-
wrap ${mem.ap4}, -${inputAllpassCoeff}
|
|
170
|
-
wrax ${reg.apout}, 0.0
|
|
171
|
-
|
|
172
|
-
; Delay loop 1
|
|
173
|
-
rda ${mem.d4}^, ${reverbTime}
|
|
174
|
-
mulx ${reg.rt_cv}
|
|
175
|
-
rdax ${reg.apout}, 1.0
|
|
176
|
-
rda ${mem.lap1a}^, ${delayAllpassCoeff}
|
|
177
|
-
wrap ${mem.lap1a}, -${delayAllpassCoeff}
|
|
178
|
-
rda ${mem.lap1b}^, -${delayAllpassCoeff}
|
|
179
|
-
wrap ${mem.lap1b}, ${delayAllpassCoeff}
|
|
180
|
-
rdfx ${reg.hp1}, ${hfDamping}
|
|
181
|
-
wrhx ${reg.hp1}, -0.5
|
|
182
|
-
wrax ${reg.temp}, -1.0
|
|
183
|
-
rdfx ${reg.lp1}, 0.5
|
|
184
|
-
wrhx ${reg.lp1}, -1.0
|
|
185
|
-
mulx ${reg.kd}
|
|
186
|
-
rdax ${reg.temp}, 1.0
|
|
187
|
-
wra ${mem.d1}, 0.0
|
|
188
|
-
|
|
189
|
-
; Delay loop 2
|
|
190
|
-
rda ${mem.d1}^, -${reverbTime}
|
|
191
|
-
mulx ${reg.rt_cv}
|
|
192
|
-
rdax ${reg.apout}, 1.0
|
|
193
|
-
rda ${mem.lap2a}^, ${delayAllpassCoeff}
|
|
194
|
-
wrap ${mem.lap2a}, -${delayAllpassCoeff}
|
|
195
|
-
rda ${mem.lap2b}^, ${delayAllpassCoeff}
|
|
196
|
-
wrap ${mem.lap2b}, -${delayAllpassCoeff}
|
|
197
|
-
rdfx ${reg.hp2}, ${hfDamping}
|
|
198
|
-
wrhx ${reg.hp2}, -0.5
|
|
199
|
-
wrax ${reg.temp}, -1.0
|
|
200
|
-
rdfx ${reg.lp2}, 0.5
|
|
201
|
-
wrhx ${reg.lp2}, -1.0
|
|
202
|
-
mulx ${reg.kd}
|
|
203
|
-
rdax ${reg.temp}, 1.0
|
|
204
|
-
wra ${mem.d2}, 0.0
|
|
205
|
-
|
|
206
|
-
; Delay loop 3
|
|
207
|
-
rda ${mem.d2}^, -1.0
|
|
208
|
-
mulx ${reg.rt_cv}
|
|
209
|
-
rdax ${reg.apout}, 1.0
|
|
210
|
-
rda ${mem.lap3a}^, ${delayAllpassCoeff}
|
|
211
|
-
wrap ${mem.lap3a}, -${delayAllpassCoeff}
|
|
212
|
-
rda ${mem.lap3b}^, ${delayAllpassCoeff}
|
|
213
|
-
wrap ${mem.lap3b}, -${delayAllpassCoeff}
|
|
214
|
-
rdfx ${reg.hp2}, 0.05
|
|
215
|
-
wrhx ${reg.hp2}, -0.5
|
|
216
|
-
wrax ${reg.temp}, -1.0
|
|
217
|
-
rdfx ${reg.lp3}, 0.5
|
|
218
|
-
wrhx ${reg.lp3}, -1.0
|
|
219
|
-
mulx ${reg.kd}
|
|
220
|
-
rdax ${reg.temp}, 1.0
|
|
221
|
-
wra ${mem.d3}, 0.0
|
|
222
|
-
|
|
223
|
-
; Delay loop 4
|
|
224
|
-
rda ${mem.d3}^, -1.0
|
|
225
|
-
mulx ${reg.rt_cv}
|
|
226
|
-
rdax ${reg.apout}, 1.0
|
|
227
|
-
rda ${mem.lap4a}^, ${delayAllpassCoeff}
|
|
228
|
-
wrap ${mem.lap4a}, -${delayAllpassCoeff}
|
|
229
|
-
rda ${mem.lap4b}^, ${delayAllpassCoeff}
|
|
230
|
-
wrap ${mem.lap4b}, -${delayAllpassCoeff}
|
|
231
|
-
wrax ${reg.temp}, -1.0
|
|
232
|
-
rdfx ${reg.lp4}, 0.5
|
|
233
|
-
wrhx ${reg.lp4}, -1.0
|
|
234
|
-
mulx ${reg.kd}
|
|
235
|
-
rdax ${reg.temp}, 1.0
|
|
236
|
-
wra ${mem.d4}, 0.0
|
|
237
|
-
|
|
238
|
-
; Tap delay processing
|
|
239
|
-
rda ${mem.tdel}+100, 1.0
|
|
240
|
-
rda ${mem.tap1}^, 0.5
|
|
241
|
-
wrap ${mem.tap1}, -0.5
|
|
242
|
-
wrax ${reg.temp}, 1.0
|
|
243
|
-
rdfx ${reg.tlp}, 0.1
|
|
244
|
-
wrhx ${reg.tlp}, -1.0
|
|
245
|
-
mulx ${reg.kd}
|
|
246
|
-
rdax ${reg.temp}, 1.0
|
|
247
|
-
wra ${mem.tdel}+101, 0.0
|
|
248
|
-
|
|
249
|
-
rda ${mem.tdel}+1000, 1.0
|
|
250
|
-
rda ${mem.tap2}^, 0.5
|
|
251
|
-
wrap ${mem.tap2}, -0.5
|
|
252
|
-
wra ${mem.tdel}+1001, 0.0
|
|
253
|
-
|
|
254
|
-
; Left output mix
|
|
255
|
-
rda ${mem.tdel}+701, 0.7
|
|
256
|
-
rda ${mem.tdel}+956, 0.6
|
|
257
|
-
rda ${mem.tdel}+409, 0.5
|
|
258
|
-
rda ${mem.tdel}+1323, 0.4
|
|
259
|
-
|
|
260
|
-
@if pinConnected(outputR)
|
|
261
|
-
rda ${mem.d1}, 1.5
|
|
262
|
-
@else
|
|
263
|
-
rda ${mem.d1}^, 0.7
|
|
264
|
-
rda ${mem.d2}^, 0.8
|
|
265
|
-
@endif
|
|
266
|
-
@if pinConnected(outputL)
|
|
267
|
-
wrax ${output.outputL}, 0.0
|
|
268
|
-
@else
|
|
269
|
-
wrax ADDR_PTR, 0.0
|
|
270
|
-
@endif
|
|
271
|
-
|
|
272
|
-
; Right output mix
|
|
273
|
-
@if pinConnected(outputR)
|
|
274
|
-
rda ${mem.tdel}+582, 0.7
|
|
275
|
-
rda ${mem.tdel}+956, 0.6
|
|
276
|
-
rda ${mem.tdel}+1047, 0.5
|
|
277
|
-
rda ${mem.tdel}+1323, 0.4
|
|
278
|
-
rda ${mem.d3}, 1.5
|
|
279
|
-
wrax ${output.outputR}, 0.0
|
|
280
|
-
@endif
|
|
281
|
-
|
|
282
|
-
; LFO chorus modulation
|
|
283
|
-
cho rda, SIN0, REG|COMPC, ${mem.lap1b}+100
|
|
284
|
-
cho rda, SIN0, SIN, ${mem.lap1b}+101
|
|
285
|
-
wra ${mem.lap1b}+200, 0.0
|
|
286
|
-
|
|
287
|
-
cho rda, SIN0, COS|REG|COMPC, ${mem.lap3b}+100
|
|
288
|
-
cho rda, SIN0, COS, ${mem.lap3b}+101
|
|
289
|
-
wra ${mem.lap3b}+200, 0.0
|
|
290
|
-
|
|
291
|
-
@else
|
|
292
|
-
; Room Reverb (no input connected)
|
|
293
|
-
@endif
|
|
1
|
+
---
|
|
2
|
+
{
|
|
3
|
+
"type": "effects.reverb.room",
|
|
4
|
+
"category": "Effects",
|
|
5
|
+
"subcategory": "Reverb",
|
|
6
|
+
"name": "Room Reverb",
|
|
7
|
+
"description": "Hall-style reverb with pre-delay, damping, and stereo output",
|
|
8
|
+
"color": "#7100FC",
|
|
9
|
+
"inputs": [
|
|
10
|
+
{ "id": "input", "name": "Input", "type": "audio", "required": true },
|
|
11
|
+
{ "id": "pre_delay", "name": "Pre Delay", "type": "control", "required": false, "parameter": "preDelay" },
|
|
12
|
+
{ "id": "reverb_time", "name": "Reverb Time", "type": "control", "required": false, "parameter": "reverbTime" },
|
|
13
|
+
{ "id": "hf_loss", "name": "HF Loss", "type": "control", "required": false, "parameter": "hfLoss" }
|
|
14
|
+
],
|
|
15
|
+
"outputs": [
|
|
16
|
+
{ "id": "outputL", "name": "Output L", "type": "audio" },
|
|
17
|
+
{ "id": "outputR", "name": "Output R", "type": "audio" }
|
|
18
|
+
],
|
|
19
|
+
"parameters": [
|
|
20
|
+
{
|
|
21
|
+
"id": "inputGain",
|
|
22
|
+
"name": "Input Gain",
|
|
23
|
+
"type": "number",
|
|
24
|
+
"min": -24,
|
|
25
|
+
"max": 0,
|
|
26
|
+
"default": -6,
|
|
27
|
+
"conversion": "DBLEVEL"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"id": "preDelay",
|
|
31
|
+
"name": "Pre-Delay (ms)",
|
|
32
|
+
"type": "number",
|
|
33
|
+
"default": 25,
|
|
34
|
+
"min": 0,
|
|
35
|
+
"max": 100,
|
|
36
|
+
"conversion": "MS_TO_SAMPLES",
|
|
37
|
+
"step": 1
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"id": "reverbTime",
|
|
41
|
+
"name": "Reverb Time",
|
|
42
|
+
"type": "number",
|
|
43
|
+
"default": 0.5,
|
|
44
|
+
"min": 0.05,
|
|
45
|
+
"max": 0.95,
|
|
46
|
+
"step": 0.01
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"id": "hfDamping",
|
|
50
|
+
"name": "HF Damping",
|
|
51
|
+
"type": "number",
|
|
52
|
+
"min": 40,
|
|
53
|
+
"max": 1000,
|
|
54
|
+
"default": 100,
|
|
55
|
+
"conversion": "LOGFREQ"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"id": "inputAllpassCoeff",
|
|
59
|
+
"name": "Input Allpass",
|
|
60
|
+
"type": "number",
|
|
61
|
+
"default": 0.5,
|
|
62
|
+
"min": 0.05,
|
|
63
|
+
"max": 0.95,
|
|
64
|
+
"step": 0.01
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"id": "delayAllpassCoeff",
|
|
68
|
+
"name": "Delay Allpass",
|
|
69
|
+
"type": "number",
|
|
70
|
+
"default": 0.5,
|
|
71
|
+
"min": 0.05,
|
|
72
|
+
"max": 0.95,
|
|
73
|
+
"step": 0.01
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"id": "hfLoss",
|
|
77
|
+
"name": "HF Loss",
|
|
78
|
+
"type": "number",
|
|
79
|
+
"default": 1.0,
|
|
80
|
+
"min": 0.0,
|
|
81
|
+
"max": 1.0,
|
|
82
|
+
"step": 0.01,
|
|
83
|
+
"description": "High-frequency loss applied in the reverb loops. 1.0 = full HF, 0.0 = maximum loss."
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"id": "lfoRate",
|
|
87
|
+
"name": "LFO Rate (Hz)",
|
|
88
|
+
"type": "number",
|
|
89
|
+
"default": 0.25,
|
|
90
|
+
"min": 0.05,
|
|
91
|
+
"max": 2.0,
|
|
92
|
+
"conversion": "HZ_TO_LFO_RATE",
|
|
93
|
+
"description": "Frequency of the LFO modulation in Hz.",
|
|
94
|
+
"step": 0.01
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
"memories": [
|
|
98
|
+
{ "id": "pdel", "size": 3276 },
|
|
99
|
+
{ "id": "tdel", "size": 4000 },
|
|
100
|
+
{ "id": "ap1", "size": 473 },
|
|
101
|
+
{ "id": "ap2", "size": 536 },
|
|
102
|
+
{ "id": "ap3", "size": 667 },
|
|
103
|
+
{ "id": "ap4", "size": 791 },
|
|
104
|
+
{ "id": "tap1", "size": 452 },
|
|
105
|
+
{ "id": "tap2", "size": 561 },
|
|
106
|
+
{ "id": "lap1a", "size": 878 },
|
|
107
|
+
{ "id": "lap1b", "size": 1287 },
|
|
108
|
+
{ "id": "d1", "size": 1536 },
|
|
109
|
+
{ "id": "lap2a", "size": 968 },
|
|
110
|
+
{ "id": "lap2b", "size": 1367 },
|
|
111
|
+
{ "id": "d2", "size": 1891 },
|
|
112
|
+
{ "id": "lap3a", "size": 678 },
|
|
113
|
+
{ "id": "lap3b", "size": 1127 },
|
|
114
|
+
{ "id": "d3", "size": 1936 },
|
|
115
|
+
{ "id": "lap4a", "size": 1263 },
|
|
116
|
+
{ "id": "lap4b", "size": 1198 },
|
|
117
|
+
{ "id": "d4", "size": 1781 }
|
|
118
|
+
],
|
|
119
|
+
"registers": [
|
|
120
|
+
"apout", "temp", "kd", "rt_cv", "lp1", "lp2", "lp3", "lp4", "hp1", "hp2", "tlp"
|
|
121
|
+
]
|
|
122
|
+
}
|
|
123
|
+
---
|
|
124
|
+
@section init
|
|
125
|
+
@if pinConnected(input)
|
|
126
|
+
; Room Reverb init
|
|
127
|
+
skp run, room_reverb_init
|
|
128
|
+
wrax ${reg.lp1}, 0.0
|
|
129
|
+
wrax ${reg.lp2}, 0.0
|
|
130
|
+
wrax ${reg.hp1}, 0.0
|
|
131
|
+
wrax ${reg.hp2}, 0.0
|
|
132
|
+
wrax ${reg.tlp}, 0.0
|
|
133
|
+
wlds SIN0, ${lfoRate}, 100
|
|
134
|
+
room_reverb_init:
|
|
135
|
+
@endif
|
|
136
|
+
|
|
137
|
+
@section main
|
|
138
|
+
@if pinConnected(input)
|
|
139
|
+
|
|
140
|
+
; Room Reverb
|
|
141
|
+
|
|
142
|
+
; Evaluate Control Voltages globally
|
|
143
|
+
@cv hf_loss
|
|
144
|
+
wrax ${reg.kd}, 0.0
|
|
145
|
+
|
|
146
|
+
@cv reverb_time
|
|
147
|
+
wrax ${reg.rt_cv}, 0.0
|
|
148
|
+
|
|
149
|
+
@cv pre_delay
|
|
150
|
+
sof 0.1, 0.0
|
|
151
|
+
wrax ADDR_PTR, 0.0
|
|
152
|
+
|
|
153
|
+
; Feed input to pre-delay
|
|
154
|
+
rdax ${input.input}, ${inputGain}
|
|
155
|
+
wra ${mem.pdel}, 0.0
|
|
156
|
+
|
|
157
|
+
; Read pre-delay and write to tap delay
|
|
158
|
+
rmpa 1.0
|
|
159
|
+
wra ${mem.tdel}, 1.0
|
|
160
|
+
|
|
161
|
+
; 4 input allpass filters
|
|
162
|
+
rda ${mem.ap1}^, ${inputAllpassCoeff}
|
|
163
|
+
wrap ${mem.ap1}, -${inputAllpassCoeff}
|
|
164
|
+
rda ${mem.ap2}^, ${inputAllpassCoeff}
|
|
165
|
+
wrap ${mem.ap2}, -${inputAllpassCoeff}
|
|
166
|
+
rda ${mem.ap3}^, ${inputAllpassCoeff}
|
|
167
|
+
wrap ${mem.ap3}, -${inputAllpassCoeff}
|
|
168
|
+
rda ${mem.ap4}^, ${inputAllpassCoeff}
|
|
169
|
+
wrap ${mem.ap4}, -${inputAllpassCoeff}
|
|
170
|
+
wrax ${reg.apout}, 0.0
|
|
171
|
+
|
|
172
|
+
; Delay loop 1
|
|
173
|
+
rda ${mem.d4}^, ${reverbTime}
|
|
174
|
+
mulx ${reg.rt_cv}
|
|
175
|
+
rdax ${reg.apout}, 1.0
|
|
176
|
+
rda ${mem.lap1a}^, ${delayAllpassCoeff}
|
|
177
|
+
wrap ${mem.lap1a}, -${delayAllpassCoeff}
|
|
178
|
+
rda ${mem.lap1b}^, -${delayAllpassCoeff}
|
|
179
|
+
wrap ${mem.lap1b}, ${delayAllpassCoeff}
|
|
180
|
+
rdfx ${reg.hp1}, ${hfDamping}
|
|
181
|
+
wrhx ${reg.hp1}, -0.5
|
|
182
|
+
wrax ${reg.temp}, -1.0
|
|
183
|
+
rdfx ${reg.lp1}, 0.5
|
|
184
|
+
wrhx ${reg.lp1}, -1.0
|
|
185
|
+
mulx ${reg.kd}
|
|
186
|
+
rdax ${reg.temp}, 1.0
|
|
187
|
+
wra ${mem.d1}, 0.0
|
|
188
|
+
|
|
189
|
+
; Delay loop 2
|
|
190
|
+
rda ${mem.d1}^, -${reverbTime}
|
|
191
|
+
mulx ${reg.rt_cv}
|
|
192
|
+
rdax ${reg.apout}, 1.0
|
|
193
|
+
rda ${mem.lap2a}^, ${delayAllpassCoeff}
|
|
194
|
+
wrap ${mem.lap2a}, -${delayAllpassCoeff}
|
|
195
|
+
rda ${mem.lap2b}^, ${delayAllpassCoeff}
|
|
196
|
+
wrap ${mem.lap2b}, -${delayAllpassCoeff}
|
|
197
|
+
rdfx ${reg.hp2}, ${hfDamping}
|
|
198
|
+
wrhx ${reg.hp2}, -0.5
|
|
199
|
+
wrax ${reg.temp}, -1.0
|
|
200
|
+
rdfx ${reg.lp2}, 0.5
|
|
201
|
+
wrhx ${reg.lp2}, -1.0
|
|
202
|
+
mulx ${reg.kd}
|
|
203
|
+
rdax ${reg.temp}, 1.0
|
|
204
|
+
wra ${mem.d2}, 0.0
|
|
205
|
+
|
|
206
|
+
; Delay loop 3
|
|
207
|
+
rda ${mem.d2}^, -1.0
|
|
208
|
+
mulx ${reg.rt_cv}
|
|
209
|
+
rdax ${reg.apout}, 1.0
|
|
210
|
+
rda ${mem.lap3a}^, ${delayAllpassCoeff}
|
|
211
|
+
wrap ${mem.lap3a}, -${delayAllpassCoeff}
|
|
212
|
+
rda ${mem.lap3b}^, ${delayAllpassCoeff}
|
|
213
|
+
wrap ${mem.lap3b}, -${delayAllpassCoeff}
|
|
214
|
+
rdfx ${reg.hp2}, 0.05
|
|
215
|
+
wrhx ${reg.hp2}, -0.5
|
|
216
|
+
wrax ${reg.temp}, -1.0
|
|
217
|
+
rdfx ${reg.lp3}, 0.5
|
|
218
|
+
wrhx ${reg.lp3}, -1.0
|
|
219
|
+
mulx ${reg.kd}
|
|
220
|
+
rdax ${reg.temp}, 1.0
|
|
221
|
+
wra ${mem.d3}, 0.0
|
|
222
|
+
|
|
223
|
+
; Delay loop 4
|
|
224
|
+
rda ${mem.d3}^, -1.0
|
|
225
|
+
mulx ${reg.rt_cv}
|
|
226
|
+
rdax ${reg.apout}, 1.0
|
|
227
|
+
rda ${mem.lap4a}^, ${delayAllpassCoeff}
|
|
228
|
+
wrap ${mem.lap4a}, -${delayAllpassCoeff}
|
|
229
|
+
rda ${mem.lap4b}^, ${delayAllpassCoeff}
|
|
230
|
+
wrap ${mem.lap4b}, -${delayAllpassCoeff}
|
|
231
|
+
wrax ${reg.temp}, -1.0
|
|
232
|
+
rdfx ${reg.lp4}, 0.5
|
|
233
|
+
wrhx ${reg.lp4}, -1.0
|
|
234
|
+
mulx ${reg.kd}
|
|
235
|
+
rdax ${reg.temp}, 1.0
|
|
236
|
+
wra ${mem.d4}, 0.0
|
|
237
|
+
|
|
238
|
+
; Tap delay processing
|
|
239
|
+
rda ${mem.tdel}+100, 1.0
|
|
240
|
+
rda ${mem.tap1}^, 0.5
|
|
241
|
+
wrap ${mem.tap1}, -0.5
|
|
242
|
+
wrax ${reg.temp}, 1.0
|
|
243
|
+
rdfx ${reg.tlp}, 0.1
|
|
244
|
+
wrhx ${reg.tlp}, -1.0
|
|
245
|
+
mulx ${reg.kd}
|
|
246
|
+
rdax ${reg.temp}, 1.0
|
|
247
|
+
wra ${mem.tdel}+101, 0.0
|
|
248
|
+
|
|
249
|
+
rda ${mem.tdel}+1000, 1.0
|
|
250
|
+
rda ${mem.tap2}^, 0.5
|
|
251
|
+
wrap ${mem.tap2}, -0.5
|
|
252
|
+
wra ${mem.tdel}+1001, 0.0
|
|
253
|
+
|
|
254
|
+
; Left output mix
|
|
255
|
+
rda ${mem.tdel}+701, 0.7
|
|
256
|
+
rda ${mem.tdel}+956, 0.6
|
|
257
|
+
rda ${mem.tdel}+409, 0.5
|
|
258
|
+
rda ${mem.tdel}+1323, 0.4
|
|
259
|
+
|
|
260
|
+
@if pinConnected(outputR)
|
|
261
|
+
rda ${mem.d1}, 1.5
|
|
262
|
+
@else
|
|
263
|
+
rda ${mem.d1}^, 0.7
|
|
264
|
+
rda ${mem.d2}^, 0.8
|
|
265
|
+
@endif
|
|
266
|
+
@if pinConnected(outputL)
|
|
267
|
+
wrax ${output.outputL}, 0.0
|
|
268
|
+
@else
|
|
269
|
+
wrax ADDR_PTR, 0.0
|
|
270
|
+
@endif
|
|
271
|
+
|
|
272
|
+
; Right output mix
|
|
273
|
+
@if pinConnected(outputR)
|
|
274
|
+
rda ${mem.tdel}+582, 0.7
|
|
275
|
+
rda ${mem.tdel}+956, 0.6
|
|
276
|
+
rda ${mem.tdel}+1047, 0.5
|
|
277
|
+
rda ${mem.tdel}+1323, 0.4
|
|
278
|
+
rda ${mem.d3}, 1.5
|
|
279
|
+
wrax ${output.outputR}, 0.0
|
|
280
|
+
@endif
|
|
281
|
+
|
|
282
|
+
; LFO chorus modulation
|
|
283
|
+
cho rda, SIN0, REG|COMPC, ${mem.lap1b}+100
|
|
284
|
+
cho rda, SIN0, SIN, ${mem.lap1b}+101
|
|
285
|
+
wra ${mem.lap1b}+200, 0.0
|
|
286
|
+
|
|
287
|
+
cho rda, SIN0, COS|REG|COMPC, ${mem.lap3b}+100
|
|
288
|
+
cho rda, SIN0, COS, ${mem.lap3b}+101
|
|
289
|
+
wra ${mem.lap3b}+200, 0.0
|
|
290
|
+
|
|
291
|
+
@else
|
|
292
|
+
; Room Reverb (no input connected)
|
|
293
|
+
@endif
|