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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
|
/*
SuperCollider real time audio synthesis system
Copyright (c) 2002 James McCartney. All rights reserved.
http://www.audiosynth.com
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#pragma once on
#include "PyrObject.h"
#include "GC.h"
#define UNROLL 1
enum {
kSignalRate = 0, // index of rate slot
kSignalNextNode
};
#define FSINESIZE 8192.
#define SINESIZE 8192
#define SINEMASK 8191
#define VERY_BIG_FLOAT (1.e10)
extern float *sineCycle;
extern float *invSineCycle;
extern float *pmSineCycle;
extern double phaseToSineIndex;
extern double sineIndexToPhase;
//#define FRACTABLESIZE 4096
//#define FRACMASK 0x3FFC
//extern float *gFracTable;
PyrObject* newPyrSignal(VMGlobals *g, long size);
#if 0
#define UNROLL8_CODE(size,var,stmt) \
endptr = var + size; \
switch (size & 7) { \
while (var < endptr) { \
stmt; \
case 7 : stmt; \
case 6 : stmt; \
case 5 : stmt; \
case 4 : stmt; \
case 3 : stmt; \
case 2 : stmt; \
case 1 : stmt; \
case 0 : ; \
} \
}
#else
#define UNROLL8_CODE(size,var,stmt) \
{ int tempi, tempend; \
tempend = size>>3; \
for (tempi=0; tempi<tempend; ++tempi) { \
stmt;stmt;stmt;stmt; \
stmt;stmt;stmt;stmt; \
} \
tempend = size&7; \
for (tempi=0; tempi<tempend; ++tempi) { \
stmt; \
} \
}
#endif
#if 0
#define UNROLL4_CODE(size,var,stmt) \
endptr = var + size; \
switch (size & 3) { \
while (var < endptr) { \
stmt; \
case 3 : stmt; \
case 2 : stmt; \
case 1 : stmt; \
case 0 : ; \
} \
}
#else
#define UNROLL4_CODE(size,var,stmt) \
{ int tempi, tempend; \
tempend = size>>2; \
for (tempi=0; tempi<tempend; ++tempi) { \
stmt;stmt;stmt;stmt; \
} \
tempend = size&3; \
for (tempi=0; tempi<tempend; ++tempi) { \
stmt; \
} \
}
#endif
#if 0
#define FILTER_LOOP(size,var,stmt,stmt2) \
endptr = var + size; \
switch (size & 3) { \
case 0 : while (var < endptr) { \
stmt; \
case 3 : stmt; \
case 2 : stmt; \
case 1 : stmt; \
stmt2; \
} \
}
#else
#define FILTER_LOOP(size,var,stmt,stmt2) \
{ int tempi, tempend; \
tempend = size>>2; \
for (tempi=0; tempi<tempend; ++tempi) { \
stmt;stmt;stmt;stmt; \
stmt2; \
} \
tempend = size&3; \
for (tempi=0; tempi<tempend; ++tempi) { \
stmt; \
} \
}
#endif
#define UNROLL1_CODE(size,var,stmt) \
{ int tempi, tempend; \
tempend = size; \
for (tempi=0; tempi<tempend; ++tempi) { \
stmt; \
} \
}
#if UNROLL == 8
#define UNROLL_CODE UNROLL8_CODE
#elif UNROLL == 4
#define UNROLL_CODE UNROLL4_CODE
#else
#define UNROLL_CODE UNROLL1_CODE
#endif
#if 0
#define BINOP_LOOP1(OP)
#define BINOP_LOOP2(STMT1, STMT2, STMT3)
#else
#define BINOP_LOOP1(OP) \
float *a, *b, *c, *endptr; \
PyrObject *outc; \
long size; \
a = (float*)(ina->slots) - 1; \
b = (float*)(inb->slots) - 1; \
size = sc_min(ina->size, inb->size); \
outc = newPyrSignal(g, size); \
c = (float*)(outc->slots) - 1; \
endptr = c + size; \
switch (size & 3) { \
while (c < endptr) { \
*++c = *++a OP *++b; \
case 3 : *++c = *++a OP *++b; \
case 2 : *++c = *++a OP *++b; \
case 1 : *++c = *++a OP *++b; \
case 0 : ; \
} \
} \
return outc; \
#define BINOP_LOOP2(STMT1) \
float *a, *b, *c, *endptr; \
PyrObject *outc; \
long size; \
a = (float*)(ina->slots) - 1; \
b = (float*)(inb->slots) - 1; \
size = sc_min(ina->size, inb->size); \
outc = newPyrSignal(g, size); \
c = (float*)(outc->slots) - 1; \
endptr = c + size; \
switch (size & 3) { \
while (c < endptr) { \
STMT1; \
case 3 :STMT1; \
case 2 :STMT1; \
case 1 :STMT1; \
case 0 : ; \
} \
} \
return outc; \
#endif
/*
compound formulas :
amclip out = B<=0 ? 0 : A*B; // two quadrant amplitude modulation
ring1 out = A*(B+1) = A*B + A; // amplitude modulation of a by b.
ring2 out = A*B + A + B; // ring modulation plus both original signals
ring3 out = A*A*B; // ring modulation variant
ring4 out = A*A*B - A*B*B; // ring modulation variant
difsqr out = A*A - B*B; // difference of squares
sumsqr out = A*A + B*B; // sum of squares
sqrdif out = (A - B)^2 // square of the difference = a^2 + b^2 - 2ab
sqrsum out = (A + B)^2 // square of the sum = a^2 + b^2 + 2ab
*/
void signal_init_globs();
PyrObject* signal_fill(PyrObject *outSignal, float inValue);
PyrObject* signal_scale(PyrObject *outSignal, float inValue);
PyrObject* signal_offset(PyrObject *outSignal, float inValue);
PyrObject* signal_scale_offset(PyrObject *outSignal, float mul, float add);
PyrObject* signal_mix(PyrObject* ina, PyrObject* inb, float start, float end, float slopeFactor);
PyrObject* signal_add_xx(VMGlobals *g, PyrObject* ina, PyrObject* inb);
PyrObject* signal_sub_xx(VMGlobals *g, PyrObject* ina, PyrObject* inb);
PyrObject* signal_mul_xx(VMGlobals *g, PyrObject* ina, PyrObject* inb);
PyrObject* signal_mul_ds_xx(VMGlobals *g, PyrObject* ina, PyrObject* inb);
PyrObject* signal_add_ds_xx(VMGlobals *g, PyrObject* ina, PyrObject* inb);
PyrObject* signal_sub_ds_xx(VMGlobals *g, PyrObject* ina, PyrObject* inb);
PyrObject* signal_ring1_xx(VMGlobals *g, PyrObject* ina, PyrObject* inb);
PyrObject* signal_ring2_xx(VMGlobals *g, PyrObject* ina, PyrObject* inb);
PyrObject* signal_ring3_xx(VMGlobals *g, PyrObject* ina, PyrObject* inb);
PyrObject* signal_ring4_xx(VMGlobals *g, PyrObject* ina, PyrObject* inb);
PyrObject* signal_thresh_xx(VMGlobals *g, PyrObject* ina, PyrObject* inb);
PyrObject* signal_amclip_xx(VMGlobals *g, PyrObject* ina, PyrObject* inb);
PyrObject* signal_div_xx(VMGlobals *g, PyrObject* ina, PyrObject* inb);
PyrObject* signal_difsqr_xx(VMGlobals *g, PyrObject* ina, PyrObject* inb);
PyrObject* signal_sumsqr_xx(VMGlobals *g, PyrObject* ina, PyrObject* inb);
PyrObject* signal_sqrsum_xx(VMGlobals *g, PyrObject* ina, PyrObject* inb);
PyrObject* signal_sqrdif_xx(VMGlobals *g, PyrObject* ina, PyrObject* inb);
PyrObject* signal_add_xf(VMGlobals *g, PyrObject* ina, float inb);
PyrObject* signal_sub_xf(VMGlobals *g, PyrObject* ina, float inb);
PyrObject* signal_mul_xf(VMGlobals *g, PyrObject* ina, float inb);
PyrObject* signal_ring1_xf(VMGlobals *g, PyrObject* ina, float inb);
PyrObject* signal_ring2_xf(VMGlobals *g, PyrObject* ina, float inb);
PyrObject* signal_ring3_xf(VMGlobals *g, PyrObject* ina, float inb);
PyrObject* signal_ring4_xf(VMGlobals *g, PyrObject* ina, float inb);
PyrObject* signal_thresh_xf(VMGlobals *g, PyrObject* ina, float inb);
PyrObject* signal_amclip_xf(VMGlobals *g, PyrObject* ina, float inb);
PyrObject* signal_div_xf(VMGlobals *g, PyrObject* ina, float inb);
PyrObject* signal_difsqr_xf(VMGlobals *g, PyrObject* ina, float inb);
PyrObject* signal_sumsqr_xf(VMGlobals *g, PyrObject* ina, float inb);
PyrObject* signal_sqrsum_xf(VMGlobals *g, PyrObject* ina, float inb);
PyrObject* signal_sqrdif_xf(VMGlobals *g, PyrObject* ina, float inb);
PyrObject* signal_ring1_fx(VMGlobals *g, float ina, PyrObject* inb);
PyrObject* signal_ring2_fx(VMGlobals *g, float ina, PyrObject* inb);
PyrObject* signal_ring3_fx(VMGlobals *g, float ina, PyrObject* inb);
PyrObject* signal_ring4_fx(VMGlobals *g, float ina, PyrObject* inb);
PyrObject* signal_thresh_fx(VMGlobals *g, float ina, PyrObject* inb);
PyrObject* signal_amclip_fx(VMGlobals *g, float ina, PyrObject* inb);
PyrObject* signal_sub_fx(VMGlobals *g, float ina, PyrObject* inb);
PyrObject* signal_div_fx(VMGlobals *g, float ina, PyrObject* inb);
PyrObject* signal_difsqr_fx(VMGlobals *g, float ina, PyrObject* inb);
PyrObject* signal_sumsqr_fx(VMGlobals *g, float ina, PyrObject* inb);
PyrObject* signal_sqrsum_fx(VMGlobals *g, float ina, PyrObject* inb);
PyrObject* signal_sqrdif_fx(VMGlobals *g, float ina, PyrObject* inb);
PyrObject* signal_min_xx(VMGlobals *g, PyrObject* ina, PyrObject* inb);
PyrObject* signal_max_xx(VMGlobals *g, PyrObject* ina, PyrObject* inb);
PyrObject* signal_min_xf(VMGlobals *g, PyrObject* ina, float inb);
PyrObject* signal_max_xf(VMGlobals *g, PyrObject* ina, float inb);
PyrObject* signal_invert(VMGlobals *g, PyrObject *inPyrSignal);
PyrObject* signal_recip(VMGlobals *g, PyrObject *inPyrSignal);
PyrObject* signal_squared(VMGlobals *g, PyrObject *inPyrSignal);
PyrObject* signal_cubed(VMGlobals *g, PyrObject *inPyrSignal);
PyrObject* signal_abs(VMGlobals *g, PyrObject *inPyrSignal);
PyrObject* signal_sign(VMGlobals *g, PyrObject *inPyrSignal);
PyrObject* signal_negative(VMGlobals *g, PyrObject *inPyrSignal);
PyrObject* signal_positive(VMGlobals *g, PyrObject *inPyrSignal);
PyrObject* signal_strictly_positive(VMGlobals *g, PyrObject *inPyrSignal);
PyrObject* signal_nyqring(VMGlobals *g, PyrObject *inPyrSignal);
PyrObject* signal_clip_f(VMGlobals *g, PyrObject *inPyrSignal, float lo, float hi);
PyrObject* signal_clip_f_ds(PyrObject *inPyrSignal, float lo, float hi);
PyrObject* signal_clip_x(VMGlobals *g, PyrObject *ina, PyrObject *inb, PyrObject *inc);
PyrObject* signal_wrap_f(VMGlobals *g, PyrObject *inPyrSignal, float lo, float hi);
PyrObject* signal_wrap_x(VMGlobals *g, PyrObject *ina, PyrObject *inb, PyrObject *inc);
PyrObject* signal_fold_f(VMGlobals *g, PyrObject *inPyrSignal, float lo, float hi);
PyrObject* signal_fold_x(VMGlobals *g, PyrObject *ina, PyrObject *inb, PyrObject *inc);
PyrObject* signal_log(VMGlobals *g, PyrObject *inPyrSignal);
PyrObject* signal_log2(VMGlobals *g, PyrObject *inPyrSignal);
PyrObject* signal_log10(VMGlobals *g, PyrObject *inPyrSignal);
PyrObject* signal_sin(VMGlobals *g, PyrObject *inPyrSignal);
PyrObject* signal_cos(VMGlobals *g, PyrObject *inPyrSignal);
PyrObject* signal_tan(VMGlobals *g, PyrObject *inPyrSignal);
PyrObject* signal_sinh(VMGlobals *g, PyrObject *inPyrSignal);
PyrObject* signal_cosh(VMGlobals *g, PyrObject *inPyrSignal);
PyrObject* signal_tanh(VMGlobals *g, PyrObject *inPyrSignal);
PyrObject* signal_asin(VMGlobals *g, PyrObject *inPyrSignal);
PyrObject* signal_acos(VMGlobals *g, PyrObject *inPyrSignal);
PyrObject* signal_atan(VMGlobals *g, PyrObject *inPyrSignal);
PyrObject* signal_exp(VMGlobals *g, PyrObject *inPyrSignal);
PyrObject* signal_sqrt(VMGlobals *g, PyrObject *inPyrSignal);
PyrObject* signal_distort(VMGlobals *g, PyrObject *inPyrSignal);
PyrObject* signal_distortneg(VMGlobals *g, PyrObject *inPyrSignal);
PyrObject* signal_softclip(VMGlobals *g, PyrObject *inPyrSignal);
PyrObject* signal_softclipneg(VMGlobals *g, PyrObject *inPyrSignal);
PyrObject* signal_fsin(VMGlobals *g, PyrObject *inPyrSignal);
PyrObject* signal_poly3(VMGlobals *g, PyrObject *inPyrSignal, float a, float b, float c);
PyrObject* signal_poly3r(VMGlobals *g, PyrObject *inPyrSignal,
float a1, float a2, float b1, float b2, float c1, float c2, float slopeFactor);
PyrObject* signal_integrate(VMGlobals *g, PyrObject *inPyrSignal, float *ioSum);
PyrObject* signal_leakdc(VMGlobals *g, PyrObject *inPyrSignal, float *ioDC, float leakFactor);
PyrObject* signal_ampflw1(VMGlobals *g, PyrObject *inPyrSignal, float *ioAmp, float leak1);
PyrObject* signal_ampflw2(VMGlobals *g, PyrObject *inPyrSignal, float *ioAmp, float leak1);
PyrObject* signal_differentiate(VMGlobals *g, PyrObject *inPyrSignal, float *ioPrev);
PyrObject* signal_rotate(VMGlobals *g, PyrObject* ina, int rot);
PyrObject* signal_reverse_ds(PyrObject* ina);
PyrObject* signal_cat(VMGlobals *g, PyrObject* ina, PyrObject* inb);
PyrObject* signal_insert(VMGlobals *g, PyrObject* ina, PyrObject* inb, long index);
PyrObject* signal_overdub(VMGlobals *g, PyrObject* ina, PyrObject* inb, long index);
PyrObject* signal_overwrite(VMGlobals *g, PyrObject* ina, PyrObject* inb, long index);
PyrObject* signal_cat3(VMGlobals *g, PyrObject* ina, PyrObject* inb, PyrObject* inc);
PyrObject* signal_linen(VMGlobals *g, PyrObject* ina, long atk, long dcy, float amp);
PyrObject* signal_linen2(VMGlobals *g, PyrObject* ina, long atk, long dcy, float amp, float midamp);
PyrObject* signal_writesplice(VMGlobals *g, PyrObject* outc, PyrObject* ina, PyrObject* inb,
long indexc, long indexa, long indexb, long fadelen, float midamp);
PyrObject* signal_splice(VMGlobals *g, PyrObject* ina, PyrObject* inb,
long indexa, long indexb, long fadelen, float midamp);
PyrObject* signal_invert_ds(PyrObject *inPyrSignal);
PyrObject* signal_recip_ds(PyrObject *inPyrSignal);
PyrObject* signal_squared_ds(PyrObject *inPyrSignal);
PyrObject* signal_cubed_ds(PyrObject *inPyrSignal);
PyrObject* signal_abs_ds(PyrObject *inPyrSignal);
PyrObject* signal_sign_ds(PyrObject *inPyrSignal);
PyrObject* signal_negative_ds(PyrObject *inPyrSignal);
PyrObject* signal_positive_ds(PyrObject *inPyrSignal);
PyrObject* signal_strictly_positive_ds(PyrObject *inPyrSignal);
PyrObject* signal_nyqring_ds(PyrObject *inPyrSignal);
PyrObject* signal_clipneg_ds(PyrObject *inPyrSignal);
PyrObject* signal_distort_ds(PyrObject *inPyrSignal);
PyrObject* signal_distortneg_ds(PyrObject *inPyrSignal);
PyrObject* signal_softclip_ds(PyrObject *inPyrSignal);
PyrObject* signal_softclipneg_ds(PyrObject *inPyrSignal);
PyrObject* signal_fsin_ds(PyrObject *inPyrSignal);
PyrObject* signal_log_ds(PyrObject *inPyrSignal);
PyrObject* signal_log2_ds(PyrObject *inPyrSignal);
PyrObject* signal_log10_ds(PyrObject *inPyrSignal);
PyrObject* signal_sin_ds(PyrObject *inPyrSignal);
PyrObject* signal_cos_ds(PyrObject *inPyrSignal);
PyrObject* signal_tan_ds(PyrObject *inPyrSignal);
PyrObject* signal_sinh_ds(PyrObject *inPyrSignal);
PyrObject* signal_cosh_ds(PyrObject *inPyrSignal);
PyrObject* signal_tanh_ds(PyrObject *inPyrSignal);
PyrObject* signal_asin_ds(PyrObject *inPyrSignal);
PyrObject* signal_acos_ds(PyrObject *inPyrSignal);
PyrObject* signal_atan_ds(PyrObject *inPyrSignal);
PyrObject* signal_exp_ds(PyrObject *inPyrSignal);
PyrObject* signal_sqrt_ds(PyrObject *inPyrSignal);
float signal_findpeak(PyrObject *inPyrSignal);
PyrObject* signal_normalize(PyrObject *inPyrSignal);
PyrObject* signal_normalize_transfer_fn(PyrObject *inPyrSignal);
float signal_integral(PyrObject *inPyrSignal);
PyrObject* signal_combself(VMGlobals *g, PyrObject* ina, long rot);
PyrObject* signal_bilinen(VMGlobals *g, PyrObject* ina, long atk, long dcy, float amp, float midamp);
PyrObject* signal_lace2(VMGlobals *g, PyrObject* ina, PyrObject* inb);
void signal_unlace2(VMGlobals *g, PyrObject* ina, PyrObject** outb, PyrObject** outc);
void signal_convolve(VMGlobals *g, PyrObject* ina, PyrObject* ir, PyrObject* previn, long *ppos);
PyrObject* signal_thumbnail(VMGlobals *g, PyrObject* ina, long startpos, long length, int binsize);
PyrObject* signal_scaleneg_xx(VMGlobals *g, PyrObject* ina, PyrObject* inb);
PyrObject* signal_scaleneg_xf(VMGlobals *g, PyrObject* ina, float inb);
PyrObject* signal_scaleneg_fx(VMGlobals *g, float ina, PyrObject* inb);
PyrObject* signal_clip2_xx(VMGlobals *g, PyrObject* ina, PyrObject* inb);
PyrObject* signal_clip2_xf(VMGlobals *g, PyrObject* ina, float inb);
PyrObject* signal_clip2_fx(VMGlobals *g, float ina, PyrObject* inb);
PyrObject* signal_fold2_xx(VMGlobals *g, PyrObject* ina, PyrObject* inb);
PyrObject* signal_fold2_xf(VMGlobals *g, PyrObject* ina, float inb);
PyrObject* signal_fold2_fx(VMGlobals *g, float ina, PyrObject* inb);
PyrObject* signal_wrap2_xx(VMGlobals *g, PyrObject* ina, PyrObject* inb);
PyrObject* signal_wrap2_xf(VMGlobals *g, PyrObject* ina, float inb);
PyrObject* signal_wrap2_fx(VMGlobals *g, float ina, PyrObject* inb);
PyrObject* signal_excess_xx(VMGlobals *g, PyrObject* ina, PyrObject* inb);
PyrObject* signal_excess_xf(VMGlobals *g, PyrObject* ina, float inb);
PyrObject* signal_excess_fx(VMGlobals *g, float ina, PyrObject* inb);
PyrObject* signal_absdif_fx(VMGlobals *g, float ina, PyrObject* inb);
PyrObject* signal_absdif_xf(VMGlobals *g, PyrObject* ina, float inb);
PyrObject* signal_absdif_xx(VMGlobals *g, PyrObject* ina, PyrObject* inb);
bool signal_equal_xf(VMGlobals *g, PyrObject* ina, float inb);
bool signal_equal_xx(VMGlobals *g, PyrObject* ina, PyrObject* inb);
void signal_get_bounds(PyrObject* ina, float *ominval, float *omaxval);
void signal_smooth_ds(PyrObject* inPyrSignal);
void signal_hanning_ds(PyrObject* inPyrSignal);
void signal_welch_ds(PyrObject* inPyrSignal);
void signal_parzen_ds(PyrObject* inPyrSignal);
PyrObject* signal_normalize_range(PyrObject* ina, long start, long end);
PyrObject* signal_zero_range(PyrObject* ina, long start, long end);
PyrObject* signal_invert_range(PyrObject* ina, long start, long end);
PyrObject* signal_reverse_range(PyrObject* ina, long start, long end);
PyrObject* signal_fade_in(PyrObject* ina, long start, long end);
PyrObject* signal_fade_out(PyrObject* ina, long start, long end);
PyrObject* signal_abs_range(PyrObject* ina, long start, long end);
PyrObject* signal_squared_range(PyrObject* ina, long start, long end);
PyrObject* signal_cubed_range(PyrObject* ina, long start, long end);
PyrObject* signal_distort_range(PyrObject* ina, long start, long end);
PyrObject* signal_fade_range(PyrObject* ina, long start, long end, float lvl0, float lvl1);
|