|
|
@@ -31,36 +31,37 @@ static const int GENLIB_LOOPCOUNT_BAIL = 100000; |
|
|
|
// The State struct contains all the state and procedures for the gendsp kernel |
|
|
|
typedef struct State { |
|
|
|
CommonState __commonstate; |
|
|
|
Delay m_delay_21; |
|
|
|
Delay m_delay_13; |
|
|
|
Delay m_delay_22; |
|
|
|
Delay m_delay_14; |
|
|
|
Delay m_delay_15; |
|
|
|
Delay m_delay_13; |
|
|
|
Delay m_delay_12; |
|
|
|
Delay m_delay_11; |
|
|
|
Delay m_delay_23; |
|
|
|
Delay m_delay_15; |
|
|
|
Delay m_delay_17; |
|
|
|
Delay m_delay_16; |
|
|
|
Delay m_delay_19; |
|
|
|
Delay m_delay_18; |
|
|
|
Delay m_delay_17; |
|
|
|
Delay m_delay_20; |
|
|
|
Delay m_delay_22; |
|
|
|
Delta m_delta_39; |
|
|
|
Delta m_delta_36; |
|
|
|
Delta m_delta_42; |
|
|
|
Delta m_delta_33; |
|
|
|
Phasor m_phasor_32; |
|
|
|
Sah m_sah_37; |
|
|
|
Sah m_sah_35; |
|
|
|
Sah m_sah_38; |
|
|
|
Delay m_delay_19; |
|
|
|
Delay m_delay_21; |
|
|
|
Delay m_delay_24; |
|
|
|
Delta m_delta_34; |
|
|
|
Delta m_delta_43; |
|
|
|
Delta m_delta_37; |
|
|
|
Delta m_delta_40; |
|
|
|
Phasor m_phasor_33; |
|
|
|
Sah m_sah_42; |
|
|
|
Sah m_sah_41; |
|
|
|
Sah m_sah_40; |
|
|
|
Sah m_sah_34; |
|
|
|
Sah m_sah_39; |
|
|
|
Sah m_sah_36; |
|
|
|
Sah m_sah_38; |
|
|
|
Sah m_sah_35; |
|
|
|
Sah m_sah_44; |
|
|
|
Sah m_sah_43; |
|
|
|
Sah m_sah_45; |
|
|
|
double m_history_10; |
|
|
|
double m_history_5; |
|
|
|
double m_history_6; |
|
|
|
double m_history_7; |
|
|
|
double m_history_10; |
|
|
|
double m_smth_11; |
|
|
|
double m_history_4; |
|
|
|
double m_y_2; |
|
|
|
double m_history_3; |
|
|
@@ -68,15 +69,15 @@ typedef struct State { |
|
|
|
double m_history_1; |
|
|
|
double m_history_9; |
|
|
|
double m_history_8; |
|
|
|
double m_ratio_31; |
|
|
|
double m_ratio_32; |
|
|
|
double samples_to_seconds; |
|
|
|
double m_shimmer_25; |
|
|
|
double m_bandwidth_24; |
|
|
|
double m_mix_27; |
|
|
|
double m_decay_26; |
|
|
|
double m_roomsize_29; |
|
|
|
double m_tone_30; |
|
|
|
double m_mix_26; |
|
|
|
double m_bandwidth_25; |
|
|
|
double m_damping_28; |
|
|
|
double m_decay_27; |
|
|
|
double m_tone_30; |
|
|
|
double m_shimmer_31; |
|
|
|
double m_roomsize_29; |
|
|
|
int vectorsize; |
|
|
|
int __exception; |
|
|
|
// re-initialize all member variables; |
|
|
@@ -94,41 +95,42 @@ typedef struct State { |
|
|
|
m_history_8 = 0; |
|
|
|
m_history_9 = 0; |
|
|
|
m_history_10 = 0; |
|
|
|
m_delay_11.reset("m_delay_11", 7000); |
|
|
|
m_delay_12.reset("m_delay_12", 5000); |
|
|
|
m_delay_13.reset("m_delay_13", 6000); |
|
|
|
m_delay_14.reset("m_delay_14", 48000); |
|
|
|
m_delay_15.reset("m_delay_15", 16000); |
|
|
|
m_delay_16.reset("m_delay_16", 15000); |
|
|
|
m_smth_11 = 0; |
|
|
|
m_delay_12.reset("m_delay_12", 7000); |
|
|
|
m_delay_13.reset("m_delay_13", 5000); |
|
|
|
m_delay_14.reset("m_delay_14", 6000); |
|
|
|
m_delay_15.reset("m_delay_15", 48000); |
|
|
|
m_delay_16.reset("m_delay_16", 16000); |
|
|
|
m_delay_17.reset("m_delay_17", 96000); |
|
|
|
m_delay_18.reset("m_delay_18", 12000); |
|
|
|
m_delay_19.reset("m_delay_19", 10000); |
|
|
|
m_delay_20.reset("m_delay_20", 48000); |
|
|
|
m_delay_18.reset("m_delay_18", 15000); |
|
|
|
m_delay_19.reset("m_delay_19", 12000); |
|
|
|
m_delay_20.reset("m_delay_20", 10000); |
|
|
|
m_delay_21.reset("m_delay_21", 48000); |
|
|
|
m_delay_22.reset("m_delay_22", 48000); |
|
|
|
m_delay_23.reset("m_delay_23", 48000); |
|
|
|
m_bandwidth_24 = 75; |
|
|
|
m_shimmer_25 = 50; |
|
|
|
m_decay_26 = 50; |
|
|
|
m_mix_27 = 50; |
|
|
|
m_delay_24.reset("m_delay_24", 48000); |
|
|
|
m_bandwidth_25 = 75; |
|
|
|
m_mix_26 = 50; |
|
|
|
m_decay_27 = 50; |
|
|
|
m_damping_28 = 50; |
|
|
|
m_roomsize_29 = 150; |
|
|
|
m_tone_30 = 1500; |
|
|
|
m_ratio_31 = 2; |
|
|
|
m_shimmer_31 = 50; |
|
|
|
m_ratio_32 = 2; |
|
|
|
samples_to_seconds = (1 / samplerate); |
|
|
|
m_phasor_32.reset(0); |
|
|
|
m_delta_33.reset(0); |
|
|
|
m_sah_34.reset(0); |
|
|
|
m_phasor_33.reset(0); |
|
|
|
m_delta_34.reset(0); |
|
|
|
m_sah_35.reset(0); |
|
|
|
m_delta_36.reset(0); |
|
|
|
m_sah_37.reset(0); |
|
|
|
m_sah_36.reset(0); |
|
|
|
m_delta_37.reset(0); |
|
|
|
m_sah_38.reset(0); |
|
|
|
m_delta_39.reset(0); |
|
|
|
m_sah_40.reset(0); |
|
|
|
m_sah_39.reset(0); |
|
|
|
m_delta_40.reset(0); |
|
|
|
m_sah_41.reset(0); |
|
|
|
m_delta_42.reset(0); |
|
|
|
m_sah_43.reset(0); |
|
|
|
m_sah_42.reset(0); |
|
|
|
m_delta_43.reset(0); |
|
|
|
m_sah_44.reset(0); |
|
|
|
m_sah_45.reset(0); |
|
|
|
genlib_reset_complete(this); |
|
|
|
|
|
|
|
}; |
|
|
@@ -146,257 +148,260 @@ typedef struct State { |
|
|
|
return __exception; |
|
|
|
|
|
|
|
}; |
|
|
|
double mul_13301 = (m_damping_28 * 0.01); |
|
|
|
double mul_13302 = (m_mix_27 * 0.01); |
|
|
|
double mul_13300 = (m_bandwidth_24 * 0.01); |
|
|
|
double rsub_13299 = (1 - mul_13300); |
|
|
|
double mul_13303 = (m_shimmer_25 * 0.01); |
|
|
|
double expr_13736 = safediv(((m_tone_30 * 2) * 3.1415926535898), 48000); |
|
|
|
double sin_13307 = sin(expr_13736); |
|
|
|
double clamp_13308 = ((sin_13307 <= 1e-05) ? 1e-05 : ((sin_13307 >= 0.99999) ? 0.99999 : sin_13307)); |
|
|
|
double expr_13746 = safediv((m_roomsize_29 * 48000), 340); |
|
|
|
double mul_13509 = (expr_13746 * 1); |
|
|
|
double mul_13508 = (expr_13746 * 0.81649); |
|
|
|
double mul_13507 = (expr_13746 * 0.7071); |
|
|
|
double mul_13506 = (expr_13746 * 0.63245); |
|
|
|
double expr_13735 = safepow(1.0418, m_decay_26); |
|
|
|
double expr_13745 = safepow(0.001, safediv(1, (expr_13735 * 48000))); |
|
|
|
double expr_13744 = (-safepow(expr_13745, mul_13509)); |
|
|
|
double expr_13739 = (-safepow(expr_13745, mul_13508)); |
|
|
|
double expr_13738 = (-safepow(expr_13745, mul_13507)); |
|
|
|
double expr_13737 = (-safepow(expr_13745, mul_13506)); |
|
|
|
double mul_13503 = (expr_13746 * 0.000527); |
|
|
|
int int_13502 = int(mul_13503); |
|
|
|
double mul_13480 = (int_13502 * 400.600006); |
|
|
|
double mul_13459 = (int_13502 * 419.5); |
|
|
|
double rsub_13358 = (1 - m_ratio_31); |
|
|
|
double mul_13357 = (rsub_13358 * 10); |
|
|
|
double mul_5308 = (m_mix_26 * 0.01); |
|
|
|
double mul_5307 = (m_damping_28 * 0.01); |
|
|
|
double expr_5535 = safediv((m_roomsize_29 * 48000), 340); |
|
|
|
double mul_5306 = (m_bandwidth_25 * 0.01); |
|
|
|
double rsub_5305 = (1 - mul_5306); |
|
|
|
double mul_5309 = (m_shimmer_31 * 0.01); |
|
|
|
double expr_5525 = safediv(((m_tone_30 * 2) * 3.1415926535898), 48000); |
|
|
|
double sin_5313 = sin(expr_5525); |
|
|
|
double clamp_5314 = ((sin_5313 <= 1e-05) ? 1e-05 : ((sin_5313 >= 0.99999) ? 0.99999 : sin_5313)); |
|
|
|
double expr_5524 = safepow(1.0418, m_decay_27); |
|
|
|
double expr_5534 = safepow(0.001, safediv(1, (expr_5524 * 48000))); |
|
|
|
double rsub_5364 = (1 - m_ratio_32); |
|
|
|
double mul_5363 = (rsub_5364 * 10); |
|
|
|
samples_to_seconds = (1 / samplerate); |
|
|
|
double add_13446 = (expr_13746 + 5); |
|
|
|
double expr_13740 = safepow(expr_13745, add_13446); |
|
|
|
double mul_13487 = (int_13502 * 568.299988); |
|
|
|
double mul_13466 = (int_13502 * 566.700012); |
|
|
|
double mul_13452 = (expr_13746 * 0.41); |
|
|
|
double add_13449 = (mul_13452 + 5); |
|
|
|
double expr_13743 = safepow(expr_13745, add_13449); |
|
|
|
double mul_13451 = (expr_13746 * 0.3); |
|
|
|
double add_13448 = (mul_13451 + 5); |
|
|
|
double expr_13742 = safepow(expr_13745, add_13448); |
|
|
|
double mul_13450 = (expr_13746 * 0.155); |
|
|
|
double add_13447 = (mul_13450 + 5); |
|
|
|
double expr_13741 = safepow(expr_13745, add_13447); |
|
|
|
double mul_13501 = (expr_13746 * 0.110732); |
|
|
|
double mul_13494 = (int_13502 * 162.100006); |
|
|
|
double mul_13473 = (int_13502 * 144.800003); |
|
|
|
double mul_13297 = (m_decay_26 * 2); |
|
|
|
double clamp_13292 = ((mul_13297 <= 0) ? 0 : ((mul_13297 >= 100) ? 100 : mul_13297)); |
|
|
|
double mul_13296 = (clamp_13292 * 0.01); |
|
|
|
double atodb_13295 = atodb(mul_13296); |
|
|
|
double sub_13294 = (atodb_13295 - 9); |
|
|
|
double dbtoa_13293 = dbtoa(sub_13294); |
|
|
|
double mul_5303 = (m_decay_27 * 2); |
|
|
|
double clamp_5298 = ((mul_5303 <= 0) ? 0 : ((mul_5303 >= 100) ? 100 : mul_5303)); |
|
|
|
double mul_5302 = (clamp_5298 * 0.01); |
|
|
|
double atodb_5301 = atodb(mul_5302); |
|
|
|
double sub_5300 = (atodb_5301 - 9); |
|
|
|
double dbtoa_5299 = dbtoa(sub_5300); |
|
|
|
// the main sample loop; |
|
|
|
while ((__n--)) { |
|
|
|
const double in1 = (*(__in1++)); |
|
|
|
double noise_13309 = noise(); |
|
|
|
double abs_13326 = fabs(noise_13309); |
|
|
|
double mul_13330 = (abs_13326 * 0.25); |
|
|
|
double noise_13310 = noise(); |
|
|
|
double abs_13327 = fabs(noise_13310); |
|
|
|
double mul_13333 = (abs_13327 * 0.25); |
|
|
|
double noise_13311 = noise(); |
|
|
|
double abs_13328 = fabs(noise_13311); |
|
|
|
double mul_13336 = (abs_13328 * 0.25); |
|
|
|
double noise_13312 = noise(); |
|
|
|
double abs_13329 = fabs(noise_13312); |
|
|
|
double mul_13339 = (abs_13329 * 0.25); |
|
|
|
double tap_13514 = m_delay_23.read_cubic(mul_13509); |
|
|
|
double tap_13432 = m_delay_22.read_cubic(mul_13508); |
|
|
|
double tap_13426 = m_delay_21.read_cubic(mul_13507); |
|
|
|
double tap_13420 = m_delay_20.read_cubic(mul_13506); |
|
|
|
double mul_13505 = (tap_13514 * expr_13744); |
|
|
|
double mix_13770 = (mul_13505 + (mul_13301 * (m_history_10 - mul_13505))); |
|
|
|
double mix_13512 = mix_13770; |
|
|
|
double mul_13428 = (tap_13432 * expr_13739); |
|
|
|
double mix_13771 = (mul_13428 + (mul_13301 * (m_history_9 - mul_13428))); |
|
|
|
double mix_13430 = mix_13771; |
|
|
|
double mul_13422 = (tap_13426 * expr_13738); |
|
|
|
double mix_13772 = (mul_13422 + (mul_13301 * (m_history_8 - mul_13422))); |
|
|
|
double mix_13424 = mix_13772; |
|
|
|
double mul_13416 = (tap_13420 * expr_13737); |
|
|
|
double mix_13773 = (mul_13416 + (mul_13301 * (m_history_7 - mul_13416))); |
|
|
|
double mix_13418 = mix_13773; |
|
|
|
double tap_13479 = m_delay_19.read_linear(mul_13480); |
|
|
|
double mul_13477 = (tap_13479 * 0.625); |
|
|
|
double tap_13458 = m_delay_18.read_linear(mul_13459); |
|
|
|
double mul_13456 = (tap_13458 * 0.625); |
|
|
|
double phasor_13376 = m_phasor_32(mul_13357, samples_to_seconds); |
|
|
|
double add_13350 = ((m_history_6 + phasor_13376) + 0.75); |
|
|
|
double mod_13349 = safemod(add_13350, 1); |
|
|
|
double delta_13332 = m_delta_33(mod_13349); |
|
|
|
double sah_13313 = m_sah_34(mul_13330, delta_13332, 0); |
|
|
|
int sah_13331 = m_sah_35(4800, delta_13332, 0); |
|
|
|
double mul_13322 = (sah_13331 * mod_13349); |
|
|
|
double sub_13348 = (mod_13349 - 0.5); |
|
|
|
double mul_13347 = (sub_13348 * 3.1415926535898); |
|
|
|
double cos_13346 = cos(mul_13347); |
|
|
|
double mul_13341 = (cos_13346 * cos_13346); |
|
|
|
double add_13356 = ((m_history_5 + phasor_13376) + 0.5); |
|
|
|
double mod_13355 = safemod(add_13356, 1); |
|
|
|
double delta_13335 = m_delta_36(mod_13355); |
|
|
|
double sah_13315 = m_sah_37(mul_13333, delta_13335, 0); |
|
|
|
int sah_13334 = m_sah_38(4800, delta_13335, 0); |
|
|
|
double mul_13323 = (sah_13334 * mod_13355); |
|
|
|
double sub_13354 = (mod_13355 - 0.5); |
|
|
|
double mul_13353 = (sub_13354 * 3.1415926535898); |
|
|
|
double cos_13352 = cos(mul_13353); |
|
|
|
double mul_13342 = (cos_13352 * cos_13352); |
|
|
|
double add_13370 = ((m_history_4 + phasor_13376) + 0.25); |
|
|
|
double mod_13369 = safemod(add_13370, 1); |
|
|
|
double delta_13338 = m_delta_39(mod_13369); |
|
|
|
double sah_13317 = m_sah_40(mul_13336, delta_13338, 0); |
|
|
|
int sah_13337 = m_sah_41(4800, delta_13338, 0); |
|
|
|
double mul_13324 = (sah_13337 * mod_13369); |
|
|
|
double sub_13368 = (mod_13369 - 0.5); |
|
|
|
double mul_13367 = (sub_13368 * 3.1415926535898); |
|
|
|
double cos_13366 = cos(mul_13367); |
|
|
|
double mul_13343 = (cos_13366 * cos_13366); |
|
|
|
double add_13375 = ((m_history_3 + phasor_13376) + 0); |
|
|
|
double mod_13374 = safemod(add_13375, 1); |
|
|
|
double delta_13320 = m_delta_42(mod_13374); |
|
|
|
double sah_13319 = m_sah_43(mul_13339, delta_13320, 0); |
|
|
|
int sah_13340 = m_sah_44(4800, delta_13320, 0); |
|
|
|
double mul_13325 = (sah_13340 * mod_13374); |
|
|
|
double tap_13362 = m_delay_17.read_linear(mul_13325); |
|
|
|
double tap_13363 = m_delay_17.read_linear(mul_13324); |
|
|
|
double tap_13364 = m_delay_17.read_linear(mul_13323); |
|
|
|
double tap_13365 = m_delay_17.read_linear(mul_13322); |
|
|
|
double mul_13345 = (tap_13365 * mul_13341); |
|
|
|
double mul_13351 = (tap_13364 * mul_13342); |
|
|
|
double mul_13359 = (tap_13363 * mul_13343); |
|
|
|
double sub_13373 = (mod_13374 - 0.5); |
|
|
|
double mul_13372 = (sub_13373 * 3.1415926535898); |
|
|
|
double cos_13371 = cos(mul_13372); |
|
|
|
double mul_13344 = (cos_13371 * cos_13371); |
|
|
|
double mul_13360 = (tap_13362 * mul_13344); |
|
|
|
double add_13775 = (((mul_13360 + mul_13359) + mul_13351) + mul_13345); |
|
|
|
double mix_13774 = (m_y_2 + (clamp_13308 * (add_13775 - m_y_2))); |
|
|
|
double mix_13305 = mix_13774; |
|
|
|
double mix_13776 = (in1 + (mul_13303 * (mix_13305 - in1))); |
|
|
|
double mix_13377 = mix_13776; |
|
|
|
double mul_13380 = (mix_13377 * 0.707); |
|
|
|
double mix_13777 = (mul_13380 + (rsub_13299 * (m_history_1 - mul_13380))); |
|
|
|
double mix_13516 = mix_13777; |
|
|
|
double add_13410 = (mix_13512 + mix_13430); |
|
|
|
double add_13408 = (mix_13424 + mix_13418); |
|
|
|
double sub_13407 = (add_13410 - add_13408); |
|
|
|
double mul_13389 = (sub_13407 * 0.5); |
|
|
|
double add_13403 = (add_13410 + add_13408); |
|
|
|
double mul_13386 = (add_13403 * 0.5); |
|
|
|
double tap_13486 = m_delay_16.read_linear(mul_13487); |
|
|
|
double tap_13465 = m_delay_15.read_linear(mul_13466); |
|
|
|
double sub_13409 = (mix_13512 - mix_13430); |
|
|
|
double sub_13406 = (mix_13424 - mix_13418); |
|
|
|
double sub_13405 = (sub_13409 - sub_13406); |
|
|
|
double mul_13388 = (sub_13405 * 0.5); |
|
|
|
double add_13404 = (sub_13409 + sub_13406); |
|
|
|
double rsub_13402 = (0 - add_13404); |
|
|
|
double mul_13387 = (rsub_13402 * 0.5); |
|
|
|
double tap_13434 = m_delay_14.read_cubic(add_13449); |
|
|
|
double tap_13435 = m_delay_14.read_cubic(add_13448); |
|
|
|
double tap_13436 = m_delay_14.read_cubic(add_13447); |
|
|
|
double tap_13437 = m_delay_14.read_cubic(add_13446); |
|
|
|
double mul_13444 = (tap_13434 * expr_13743); |
|
|
|
double add_13414 = (mul_13389 + mul_13444); |
|
|
|
double mul_13442 = (tap_13435 * expr_13742); |
|
|
|
double add_13413 = (mul_13388 + mul_13442); |
|
|
|
double mul_13438 = (tap_13437 * expr_13740); |
|
|
|
double add_13411 = (mul_13386 + mul_13438); |
|
|
|
double mul_13440 = (tap_13436 * expr_13741); |
|
|
|
double add_13412 = (mul_13387 + mul_13440); |
|
|
|
double mul_13484 = (tap_13486 * 0.625); |
|
|
|
double mul_13463 = (tap_13465 * 0.625); |
|
|
|
double tap_13500 = m_delay_13.read_cubic(mul_13501); |
|
|
|
double mul_13498 = (tap_13500 * 0.75); |
|
|
|
double sub_13497 = (mix_13516 - mul_13498); |
|
|
|
double mul_13496 = (sub_13497 * 0.75); |
|
|
|
double add_13495 = (mul_13496 + tap_13500); |
|
|
|
double tap_13493 = m_delay_12.read_linear(mul_13494); |
|
|
|
double tap_13472 = m_delay_11.read_linear(mul_13473); |
|
|
|
double mul_13491 = (tap_13493 * 0.75); |
|
|
|
double mul_13470 = (tap_13472 * 0.75); |
|
|
|
double mul_13397 = (mul_13444 * mul_13296); |
|
|
|
double mul_13395 = (mul_13440 * mul_13296); |
|
|
|
double add_13383 = (mul_13397 + mul_13395); |
|
|
|
double mul_13396 = (mul_13442 * mul_13296); |
|
|
|
double mul_13394 = (mul_13438 * mul_13296); |
|
|
|
double add_13382 = (mul_13396 + mul_13394); |
|
|
|
double sub_13392 = (add_13383 - add_13382); |
|
|
|
double mul_13401 = (mul_13389 * dbtoa_13293); |
|
|
|
double mul_13399 = (mul_13387 * dbtoa_13293); |
|
|
|
double add_13385 = (mul_13401 + mul_13399); |
|
|
|
double mul_13400 = (mul_13388 * dbtoa_13293); |
|
|
|
double mul_13398 = (mul_13386 * dbtoa_13293); |
|
|
|
double add_13384 = (mul_13400 + mul_13398); |
|
|
|
double sub_13393 = (add_13385 - add_13384); |
|
|
|
double add_13379 = (sub_13393 + sub_13392); |
|
|
|
double add_13391 = (add_13379 + mix_13377); |
|
|
|
double sub_13490 = (add_13391 - mul_13491); |
|
|
|
double mul_13489 = (sub_13490 * 0.75); |
|
|
|
double add_13488 = (mul_13489 + tap_13493); |
|
|
|
double sub_13483 = (add_13488 - mul_13484); |
|
|
|
double mul_13482 = (sub_13483 * 0.625); |
|
|
|
double add_13481 = (mul_13482 + tap_13486); |
|
|
|
double sub_13476 = (add_13481 - mul_13477); |
|
|
|
double mul_13475 = (sub_13476 * 0.625); |
|
|
|
double add_13474 = (mul_13475 + tap_13479); |
|
|
|
double mul_13390 = (add_13474 * mul_13302); |
|
|
|
double out1 = (in1 + mul_13390); |
|
|
|
double add_13381 = (add_13379 + mix_13377); |
|
|
|
double sub_13469 = (add_13381 - mul_13470); |
|
|
|
double mul_13468 = (sub_13469 * 0.75); |
|
|
|
double add_13467 = (mul_13468 + tap_13472); |
|
|
|
double sub_13462 = (add_13467 - mul_13463); |
|
|
|
double mul_13461 = (sub_13462 * 0.625); |
|
|
|
double add_13460 = (mul_13461 + tap_13465); |
|
|
|
double sub_13455 = (add_13460 - mul_13456); |
|
|
|
double mul_13454 = (sub_13455 * 0.625); |
|
|
|
double add_13453 = (mul_13454 + tap_13458); |
|
|
|
double mul_13378 = (add_13453 * mul_13302); |
|
|
|
double out2 = (in1 + mul_13378); |
|
|
|
double history_13511_next_13760 = mix_13512; |
|
|
|
double history_13429_next_13761 = mix_13430; |
|
|
|
double history_13423_next_13762 = mix_13424; |
|
|
|
double history_13417_next_13763 = mix_13418; |
|
|
|
double history_13314_next_13764 = sah_13313; |
|
|
|
double history_13316_next_13765 = sah_13315; |
|
|
|
double history_13318_next_13766 = sah_13317; |
|
|
|
double history_13321_next_13767 = sah_13319; |
|
|
|
double y0_next_13768 = mix_13305; |
|
|
|
double history_13515_next_13769 = mix_13516; |
|
|
|
m_delay_23.write(add_13414); |
|
|
|
m_delay_22.write(add_13413); |
|
|
|
m_delay_21.write(add_13412); |
|
|
|
m_delay_20.write(add_13411); |
|
|
|
m_delay_19.write(sub_13476); |
|
|
|
m_delay_18.write(sub_13455); |
|
|
|
double mix_5568 = (expr_5535 + (0.999 * (m_smth_11 - expr_5535))); |
|
|
|
double mix_5297 = mix_5568; |
|
|
|
double noise_5315 = noise(); |
|
|
|
double abs_5332 = fabs(noise_5315); |
|
|
|
double mul_5336 = (abs_5332 * 0.25); |
|
|
|
double noise_5316 = noise(); |
|
|
|
double abs_5333 = fabs(noise_5316); |
|
|
|
double mul_5339 = (abs_5333 * 0.25); |
|
|
|
double noise_5317 = noise(); |
|
|
|
double abs_5334 = fabs(noise_5317); |
|
|
|
double mul_5342 = (abs_5334 * 0.25); |
|
|
|
double mul_5514 = (mix_5297 * 0.81649); |
|
|
|
double tap_5438 = m_delay_24.read_linear(mul_5514); |
|
|
|
double noise_5318 = noise(); |
|
|
|
double abs_5335 = fabs(noise_5318); |
|
|
|
double mul_5345 = (abs_5335 * 0.25); |
|
|
|
double mul_5513 = (mix_5297 * 0.7071); |
|
|
|
double tap_5432 = m_delay_23.read_linear(mul_5513); |
|
|
|
double mul_5512 = (mix_5297 * 0.63245); |
|
|
|
double tap_5426 = m_delay_22.read_linear(mul_5512); |
|
|
|
double mul_5515 = (mix_5297 * 1); |
|
|
|
double tap_5520 = m_delay_21.read_linear(mul_5515); |
|
|
|
double expr_5528 = (-safepow(expr_5534, mul_5514)); |
|
|
|
double mul_5434 = (tap_5438 * expr_5528); |
|
|
|
double mix_5569 = (mul_5434 + (mul_5307 * (m_history_10 - mul_5434))); |
|
|
|
double mix_5436 = mix_5569; |
|
|
|
double expr_5527 = (-safepow(expr_5534, mul_5513)); |
|
|
|
double mul_5428 = (tap_5432 * expr_5527); |
|
|
|
double mix_5570 = (mul_5428 + (mul_5307 * (m_history_9 - mul_5428))); |
|
|
|
double mix_5430 = mix_5570; |
|
|
|
double expr_5526 = (-safepow(expr_5534, mul_5512)); |
|
|
|
double mul_5422 = (tap_5426 * expr_5526); |
|
|
|
double mix_5571 = (mul_5422 + (mul_5307 * (m_history_8 - mul_5422))); |
|
|
|
double mix_5424 = mix_5571; |
|
|
|
double expr_5533 = (-safepow(expr_5534, mul_5515)); |
|
|
|
double mul_5511 = (tap_5520 * expr_5533); |
|
|
|
double mix_5572 = (mul_5511 + (mul_5307 * (m_history_7 - mul_5511))); |
|
|
|
double mix_5518 = mix_5572; |
|
|
|
double mul_5509 = (mix_5297 * 0.000527); |
|
|
|
int int_5508 = int(mul_5509); |
|
|
|
double mul_5486 = (int_5508 * 400.600006); |
|
|
|
double tap_5485 = m_delay_20.read_linear(mul_5486); |
|
|
|
double mul_5483 = (tap_5485 * 0.625); |
|
|
|
double mul_5465 = (int_5508 * 419.5); |
|
|
|
double tap_5464 = m_delay_19.read_linear(mul_5465); |
|
|
|
double mul_5462 = (tap_5464 * 0.625); |
|
|
|
double mul_5493 = (int_5508 * 568.299988); |
|
|
|
double tap_5492 = m_delay_18.read_linear(mul_5493); |
|
|
|
double phasor_5382 = m_phasor_33(mul_5363, samples_to_seconds); |
|
|
|
double add_5356 = ((m_history_6 + phasor_5382) + 0.75); |
|
|
|
double mod_5355 = safemod(add_5356, 1); |
|
|
|
double delta_5338 = m_delta_34(mod_5355); |
|
|
|
double sah_5319 = m_sah_35(mul_5336, delta_5338, 0); |
|
|
|
int sah_5337 = m_sah_36(4800, delta_5338, 0); |
|
|
|
double mul_5328 = (sah_5337 * mod_5355); |
|
|
|
double sub_5354 = (mod_5355 - 0.5); |
|
|
|
double mul_5353 = (sub_5354 * 3.1415926535898); |
|
|
|
double cos_5352 = cos(mul_5353); |
|
|
|
double mul_5347 = (cos_5352 * cos_5352); |
|
|
|
double add_5362 = ((m_history_5 + phasor_5382) + 0.5); |
|
|
|
double mod_5361 = safemod(add_5362, 1); |
|
|
|
double delta_5341 = m_delta_37(mod_5361); |
|
|
|
double sah_5321 = m_sah_38(mul_5339, delta_5341, 0); |
|
|
|
int sah_5340 = m_sah_39(4800, delta_5341, 0); |
|
|
|
double mul_5329 = (sah_5340 * mod_5361); |
|
|
|
double sub_5360 = (mod_5361 - 0.5); |
|
|
|
double mul_5359 = (sub_5360 * 3.1415926535898); |
|
|
|
double cos_5358 = cos(mul_5359); |
|
|
|
double mul_5348 = (cos_5358 * cos_5358); |
|
|
|
double add_5376 = ((m_history_4 + phasor_5382) + 0.25); |
|
|
|
double mod_5375 = safemod(add_5376, 1); |
|
|
|
double delta_5344 = m_delta_40(mod_5375); |
|
|
|
double sah_5323 = m_sah_41(mul_5342, delta_5344, 0); |
|
|
|
int sah_5343 = m_sah_42(4800, delta_5344, 0); |
|
|
|
double mul_5330 = (sah_5343 * mod_5375); |
|
|
|
double sub_5374 = (mod_5375 - 0.5); |
|
|
|
double mul_5373 = (sub_5374 * 3.1415926535898); |
|
|
|
double cos_5372 = cos(mul_5373); |
|
|
|
double mul_5349 = (cos_5372 * cos_5372); |
|
|
|
double add_5381 = ((m_history_3 + phasor_5382) + 0); |
|
|
|
double mod_5380 = safemod(add_5381, 1); |
|
|
|
double delta_5326 = m_delta_43(mod_5380); |
|
|
|
double sah_5325 = m_sah_44(mul_5345, delta_5326, 0); |
|
|
|
int sah_5346 = m_sah_45(4800, delta_5326, 0); |
|
|
|
double mul_5331 = (sah_5346 * mod_5380); |
|
|
|
double tap_5368 = m_delay_17.read_linear(mul_5331); |
|
|
|
double tap_5369 = m_delay_17.read_linear(mul_5330); |
|
|
|
double tap_5370 = m_delay_17.read_linear(mul_5329); |
|
|
|
double tap_5371 = m_delay_17.read_linear(mul_5328); |
|
|
|
double mul_5351 = (tap_5371 * mul_5347); |
|
|
|
double mul_5357 = (tap_5370 * mul_5348); |
|
|
|
double mul_5365 = (tap_5369 * mul_5349); |
|
|
|
double sub_5379 = (mod_5380 - 0.5); |
|
|
|
double mul_5378 = (sub_5379 * 3.1415926535898); |
|
|
|
double cos_5377 = cos(mul_5378); |
|
|
|
double mul_5350 = (cos_5377 * cos_5377); |
|
|
|
double mul_5366 = (tap_5368 * mul_5350); |
|
|
|
double add_5574 = (((mul_5366 + mul_5365) + mul_5357) + mul_5351); |
|
|
|
double mix_5573 = (m_y_2 + (clamp_5314 * (add_5574 - m_y_2))); |
|
|
|
double mix_5311 = mix_5573; |
|
|
|
double mix_5575 = (in1 + (mul_5309 * (mix_5311 - in1))); |
|
|
|
double mix_5383 = mix_5575; |
|
|
|
double mul_5386 = (mix_5383 * 0.707); |
|
|
|
double mix_5576 = (mul_5386 + (rsub_5305 * (m_history_1 - mul_5386))); |
|
|
|
double mix_5522 = mix_5576; |
|
|
|
double sub_5415 = (mix_5518 - mix_5436); |
|
|
|
double sub_5412 = (mix_5430 - mix_5424); |
|
|
|
double sub_5411 = (sub_5415 - sub_5412); |
|
|
|
double mul_5394 = (sub_5411 * 0.5); |
|
|
|
double add_5452 = (mix_5297 + 5); |
|
|
|
double expr_5529 = safepow(expr_5534, add_5452); |
|
|
|
double add_5410 = (sub_5415 + sub_5412); |
|
|
|
double rsub_5408 = (0 - add_5410); |
|
|
|
double mul_5393 = (rsub_5408 * 0.5); |
|
|
|
double mul_5472 = (int_5508 * 566.700012); |
|
|
|
double tap_5471 = m_delay_16.read_linear(mul_5472); |
|
|
|
double add_5416 = (mix_5518 + mix_5436); |
|
|
|
double add_5414 = (mix_5430 + mix_5424); |
|
|
|
double add_5409 = (add_5416 + add_5414); |
|
|
|
double mul_5392 = (add_5409 * 0.5); |
|
|
|
double sub_5413 = (add_5416 - add_5414); |
|
|
|
double mul_5395 = (sub_5413 * 0.5); |
|
|
|
double mul_5490 = (tap_5492 * 0.625); |
|
|
|
double mul_5458 = (mix_5297 * 0.41); |
|
|
|
double add_5455 = (mul_5458 + 5); |
|
|
|
double expr_5532 = safepow(expr_5534, add_5455); |
|
|
|
double mul_5457 = (mix_5297 * 0.3); |
|
|
|
double add_5454 = (mul_5457 + 5); |
|
|
|
double expr_5531 = safepow(expr_5534, add_5454); |
|
|
|
double mul_5456 = (mix_5297 * 0.155); |
|
|
|
double add_5453 = (mul_5456 + 5); |
|
|
|
double tap_5440 = m_delay_15.read_linear(add_5455); |
|
|
|
double tap_5441 = m_delay_15.read_linear(add_5454); |
|
|
|
double tap_5442 = m_delay_15.read_linear(add_5453); |
|
|
|
double tap_5443 = m_delay_15.read_linear(add_5452); |
|
|
|
double mul_5448 = (tap_5441 * expr_5531); |
|
|
|
double add_5419 = (mul_5394 + mul_5448); |
|
|
|
double mul_5444 = (tap_5443 * expr_5529); |
|
|
|
double add_5417 = (mul_5392 + mul_5444); |
|
|
|
double mul_5450 = (tap_5440 * expr_5532); |
|
|
|
double add_5420 = (mul_5395 + mul_5450); |
|
|
|
double expr_5530 = safepow(expr_5534, add_5453); |
|
|
|
double mul_5446 = (tap_5442 * expr_5530); |
|
|
|
double add_5418 = (mul_5393 + mul_5446); |
|
|
|
double mul_5469 = (tap_5471 * 0.625); |
|
|
|
double mul_5507 = (mix_5297 * 0.110732); |
|
|
|
double tap_5506 = m_delay_14.read_cubic(mul_5507); |
|
|
|
double mul_5500 = (int_5508 * 162.100006); |
|
|
|
double tap_5499 = m_delay_13.read_linear(mul_5500); |
|
|
|
double mul_5504 = (tap_5506 * 0.75); |
|
|
|
double sub_5503 = (mix_5522 - mul_5504); |
|
|
|
double mul_5502 = (sub_5503 * 0.75); |
|
|
|
double add_5501 = (mul_5502 + tap_5506); |
|
|
|
double mul_5479 = (int_5508 * 144.800003); |
|
|
|
double tap_5478 = m_delay_12.read_linear(mul_5479); |
|
|
|
double mul_5497 = (tap_5499 * 0.75); |
|
|
|
double mul_5476 = (tap_5478 * 0.75); |
|
|
|
double mul_5403 = (mul_5450 * mul_5302); |
|
|
|
double mul_5401 = (mul_5446 * mul_5302); |
|
|
|
double add_5389 = (mul_5403 + mul_5401); |
|
|
|
double mul_5402 = (mul_5448 * mul_5302); |
|
|
|
double mul_5400 = (mul_5444 * mul_5302); |
|
|
|
double add_5388 = (mul_5402 + mul_5400); |
|
|
|
double sub_5398 = (add_5389 - add_5388); |
|
|
|
double mul_5407 = (mul_5395 * dbtoa_5299); |
|
|
|
double mul_5405 = (mul_5393 * dbtoa_5299); |
|
|
|
double add_5391 = (mul_5407 + mul_5405); |
|
|
|
double mul_5406 = (mul_5394 * dbtoa_5299); |
|
|
|
double mul_5404 = (mul_5392 * dbtoa_5299); |
|
|
|
double add_5390 = (mul_5406 + mul_5404); |
|
|
|
double sub_5399 = (add_5391 - add_5390); |
|
|
|
double add_5385 = (sub_5399 + sub_5398); |
|
|
|
double add_5397 = (add_5385 + mix_5383); |
|
|
|
double sub_5496 = (add_5397 - mul_5497); |
|
|
|
double mul_5495 = (sub_5496 * 0.75); |
|
|
|
double add_5494 = (mul_5495 + tap_5499); |
|
|
|
double sub_5489 = (add_5494 - mul_5490); |
|
|
|
double mul_5488 = (sub_5489 * 0.625); |
|
|
|
double add_5487 = (mul_5488 + tap_5492); |
|
|
|
double sub_5482 = (add_5487 - mul_5483); |
|
|
|
double mul_5481 = (sub_5482 * 0.625); |
|
|
|
double add_5480 = (mul_5481 + tap_5485); |
|
|
|
double mul_5396 = (add_5480 * mul_5308); |
|
|
|
double out1 = (in1 + mul_5396); |
|
|
|
double add_5387 = (add_5385 + mix_5383); |
|
|
|
double sub_5475 = (add_5387 - mul_5476); |
|
|
|
double mul_5474 = (sub_5475 * 0.75); |
|
|
|
double add_5473 = (mul_5474 + tap_5478); |
|
|
|
double sub_5468 = (add_5473 - mul_5469); |
|
|
|
double mul_5467 = (sub_5468 * 0.625); |
|
|
|
double add_5466 = (mul_5467 + tap_5471); |
|
|
|
double sub_5461 = (add_5466 - mul_5462); |
|
|
|
double mul_5460 = (sub_5461 * 0.625); |
|
|
|
double add_5459 = (mul_5460 + tap_5464); |
|
|
|
double mul_5384 = (add_5459 * mul_5308); |
|
|
|
double out2 = (in1 + mul_5384); |
|
|
|
double smth_next_5536 = mix_5297; |
|
|
|
double history_5435_next_5537 = mix_5436; |
|
|
|
double history_5429_next_5538 = mix_5430; |
|
|
|
double history_5423_next_5539 = mix_5424; |
|
|
|
double history_5517_next_5540 = mix_5518; |
|
|
|
double history_5320_next_5541 = sah_5319; |
|
|
|
double history_5322_next_5542 = sah_5321; |
|
|
|
double history_5324_next_5543 = sah_5323; |
|
|
|
double history_5327_next_5544 = sah_5325; |
|
|
|
double y0_next_5545 = mix_5311; |
|
|
|
double history_5521_next_5546 = mix_5522; |
|
|
|
m_delay_24.write(add_5419); |
|
|
|
m_delay_23.write(add_5418); |
|
|
|
m_delay_22.write(add_5417); |
|
|
|
m_delay_21.write(add_5420); |
|
|
|
m_delay_20.write(sub_5482); |
|
|
|
m_delay_19.write(sub_5461); |
|
|
|
m_delay_18.write(sub_5489); |
|
|
|
m_delay_17.write(in1); |
|
|
|
m_delay_16.write(sub_13483); |
|
|
|
m_delay_15.write(sub_13462); |
|
|
|
m_delay_14.write(add_13495); |
|
|
|
m_delay_13.write(sub_13497); |
|
|
|
m_delay_12.write(sub_13490); |
|
|
|
m_delay_11.write(sub_13469); |
|
|
|
m_history_10 = history_13511_next_13760; |
|
|
|
m_history_9 = history_13429_next_13761; |
|
|
|
m_history_8 = history_13423_next_13762; |
|
|
|
m_history_7 = history_13417_next_13763; |
|
|
|
m_history_6 = history_13314_next_13764; |
|
|
|
m_history_5 = history_13316_next_13765; |
|
|
|
m_history_4 = history_13318_next_13766; |
|
|
|
m_history_3 = history_13321_next_13767; |
|
|
|
m_y_2 = y0_next_13768; |
|
|
|
m_history_1 = history_13515_next_13769; |
|
|
|
m_delay_11.step(); |
|
|
|
m_delay_16.write(sub_5468); |
|
|
|
m_delay_15.write(add_5501); |
|
|
|
m_delay_14.write(sub_5503); |
|
|
|
m_delay_13.write(sub_5496); |
|
|
|
m_delay_12.write(sub_5475); |
|
|
|
m_smth_11 = smth_next_5536; |
|
|
|
m_history_10 = history_5435_next_5537; |
|
|
|
m_history_9 = history_5429_next_5538; |
|
|
|
m_history_8 = history_5423_next_5539; |
|
|
|
m_history_7 = history_5517_next_5540; |
|
|
|
m_history_6 = history_5320_next_5541; |
|
|
|
m_history_5 = history_5322_next_5542; |
|
|
|
m_history_4 = history_5324_next_5543; |
|
|
|
m_history_3 = history_5327_next_5544; |
|
|
|
m_y_2 = y0_next_5545; |
|
|
|
m_history_1 = history_5521_next_5546; |
|
|
|
m_delay_12.step(); |
|
|
|
m_delay_13.step(); |
|
|
|
m_delay_14.step(); |
|
|
@@ -409,6 +414,7 @@ typedef struct State { |
|
|
|
m_delay_21.step(); |
|
|
|
m_delay_22.step(); |
|
|
|
m_delay_23.step(); |
|
|
|
m_delay_24.step(); |
|
|
|
// assign results to output buffer; |
|
|
|
(*(__out1++)) = out1; |
|
|
|
(*(__out2++)) = out2; |
|
|
@@ -418,16 +424,13 @@ typedef struct State { |
|
|
|
|
|
|
|
}; |
|
|
|
inline void set_bandwidth(double _value) { |
|
|
|
m_bandwidth_24 = (_value < 0 ? 0 : (_value > 100 ? 100 : _value)); |
|
|
|
m_bandwidth_25 = (_value < 0 ? 0 : (_value > 100 ? 100 : _value)); |
|
|
|
}; |
|
|
|
inline void set_shimmer(double _value) { |
|
|
|
m_shimmer_25 = (_value < 0 ? 0 : (_value > 100 ? 100 : _value)); |
|
|
|
inline void set_mix(double _value) { |
|
|
|
m_mix_26 = (_value < 0 ? 0 : (_value > 100 ? 100 : _value)); |
|
|
|
}; |
|
|
|
inline void set_decay(double _value) { |
|
|
|
m_decay_26 = (_value < 1 ? 1 : (_value > 100 ? 100 : _value)); |
|
|
|
}; |
|
|
|
inline void set_mix(double _value) { |
|
|
|
m_mix_27 = (_value < 0 ? 0 : (_value > 100 ? 100 : _value)); |
|
|
|
m_decay_27 = (_value < 1 ? 1 : (_value > 100 ? 100 : _value)); |
|
|
|
}; |
|
|
|
inline void set_damping(double _value) { |
|
|
|
m_damping_28 = (_value < 0 ? 0 : (_value > 100 ? 100 : _value)); |
|
|
@@ -438,8 +441,11 @@ typedef struct State { |
|
|
|
inline void set_tone(double _value) { |
|
|
|
m_tone_30 = (_value < 500 ? 500 : (_value > 6000 ? 6000 : _value)); |
|
|
|
}; |
|
|
|
inline void set_shimmer(double _value) { |
|
|
|
m_shimmer_31 = (_value < 0 ? 0 : (_value > 100 ? 100 : _value)); |
|
|
|
}; |
|
|
|
inline void set_ratio(double _value) { |
|
|
|
m_ratio_31 = (_value < 0.5 ? 0.5 : (_value > 2 ? 2 : _value)); |
|
|
|
m_ratio_32 = (_value < 0.5 ? 0.5 : (_value > 2 ? 2 : _value)); |
|
|
|
}; |
|
|
|
|
|
|
|
} State; |
|
|
@@ -483,12 +489,12 @@ void setparameter(CommonState *cself, long index, double value, void *ref) { |
|
|
|
State * self = (State *)cself; |
|
|
|
switch (index) { |
|
|
|
case 0: self->set_bandwidth(value); break; |
|
|
|
case 1: self->set_shimmer(value); break; |
|
|
|
case 1: self->set_mix(value); break; |
|
|
|
case 2: self->set_decay(value); break; |
|
|
|
case 3: self->set_mix(value); break; |
|
|
|
case 4: self->set_damping(value); break; |
|
|
|
case 5: self->set_roomsize(value); break; |
|
|
|
case 6: self->set_tone(value); break; |
|
|
|
case 3: self->set_damping(value); break; |
|
|
|
case 4: self->set_roomsize(value); break; |
|
|
|
case 5: self->set_tone(value); break; |
|
|
|
case 6: self->set_shimmer(value); break; |
|
|
|
case 7: self->set_ratio(value); break; |
|
|
|
|
|
|
|
default: break; |
|
|
@@ -500,14 +506,14 @@ void setparameter(CommonState *cself, long index, double value, void *ref) { |
|
|
|
void getparameter(CommonState *cself, long index, double *value) { |
|
|
|
State *self = (State *)cself; |
|
|
|
switch (index) { |
|
|
|
case 0: *value = self->m_bandwidth_24; break; |
|
|
|
case 1: *value = self->m_shimmer_25; break; |
|
|
|
case 2: *value = self->m_decay_26; break; |
|
|
|
case 3: *value = self->m_mix_27; break; |
|
|
|
case 4: *value = self->m_damping_28; break; |
|
|
|
case 5: *value = self->m_roomsize_29; break; |
|
|
|
case 6: *value = self->m_tone_30; break; |
|
|
|
case 7: *value = self->m_ratio_31; break; |
|
|
|
case 0: *value = self->m_bandwidth_25; break; |
|
|
|
case 1: *value = self->m_mix_26; break; |
|
|
|
case 2: *value = self->m_decay_27; break; |
|
|
|
case 3: *value = self->m_damping_28; break; |
|
|
|
case 4: *value = self->m_roomsize_29; break; |
|
|
|
case 5: *value = self->m_tone_30; break; |
|
|
|
case 6: *value = self->m_shimmer_31; break; |
|
|
|
case 7: *value = self->m_ratio_32; break; |
|
|
|
|
|
|
|
default: break; |
|
|
|
} |
|
|
@@ -527,11 +533,11 @@ void * create(double sr, long vs) { |
|
|
|
self->__commonstate.vs = vs; |
|
|
|
self->__commonstate.params = (ParamInfo *)genlib_sysmem_newptr(8 * sizeof(ParamInfo)); |
|
|
|
self->__commonstate.numparams = 8; |
|
|
|
// initialize parameter 0 ("m_bandwidth_24") |
|
|
|
// initialize parameter 0 ("m_bandwidth_25") |
|
|
|
pi = self->__commonstate.params + 0; |
|
|
|
pi->name = "bandwidth"; |
|
|
|
pi->paramtype = GENLIB_PARAMTYPE_FLOAT; |
|
|
|
pi->defaultvalue = self->m_bandwidth_24; |
|
|
|
pi->defaultvalue = self->m_bandwidth_25; |
|
|
|
pi->defaultref = 0; |
|
|
|
pi->hasinputminmax = false; |
|
|
|
pi->inputmin = 0; |
|
|
@@ -541,11 +547,11 @@ void * create(double sr, long vs) { |
|
|
|
pi->outputmax = 100; |
|
|
|
pi->exp = 0; |
|
|
|
pi->units = ""; // no units defined |
|
|
|
// initialize parameter 1 ("m_shimmer_25") |
|
|
|
// initialize parameter 1 ("m_mix_26") |
|
|
|
pi = self->__commonstate.params + 1; |
|
|
|
pi->name = "shimmer"; |
|
|
|
pi->name = "mix"; |
|
|
|
pi->paramtype = GENLIB_PARAMTYPE_FLOAT; |
|
|
|
pi->defaultvalue = self->m_shimmer_25; |
|
|
|
pi->defaultvalue = self->m_mix_26; |
|
|
|
pi->defaultref = 0; |
|
|
|
pi->hasinputminmax = false; |
|
|
|
pi->inputmin = 0; |
|
|
@@ -555,11 +561,11 @@ void * create(double sr, long vs) { |
|
|
|
pi->outputmax = 100; |
|
|
|
pi->exp = 0; |
|
|
|
pi->units = ""; // no units defined |
|
|
|
// initialize parameter 2 ("m_decay_26") |
|
|
|
// initialize parameter 2 ("m_decay_27") |
|
|
|
pi = self->__commonstate.params + 2; |
|
|
|
pi->name = "decay"; |
|
|
|
pi->paramtype = GENLIB_PARAMTYPE_FLOAT; |
|
|
|
pi->defaultvalue = self->m_decay_26; |
|
|
|
pi->defaultvalue = self->m_decay_27; |
|
|
|
pi->defaultref = 0; |
|
|
|
pi->hasinputminmax = false; |
|
|
|
pi->inputmin = 0; |
|
|
@@ -569,11 +575,11 @@ void * create(double sr, long vs) { |
|
|
|
pi->outputmax = 100; |
|
|
|
pi->exp = 0; |
|
|
|
pi->units = ""; // no units defined |
|
|
|
// initialize parameter 3 ("m_mix_27") |
|
|
|
// initialize parameter 3 ("m_damping_28") |
|
|
|
pi = self->__commonstate.params + 3; |
|
|
|
pi->name = "mix"; |
|
|
|
pi->name = "damping"; |
|
|
|
pi->paramtype = GENLIB_PARAMTYPE_FLOAT; |
|
|
|
pi->defaultvalue = self->m_mix_27; |
|
|
|
pi->defaultvalue = self->m_damping_28; |
|
|
|
pi->defaultref = 0; |
|
|
|
pi->hasinputminmax = false; |
|
|
|
pi->inputmin = 0; |
|
|
@@ -583,53 +589,53 @@ void * create(double sr, long vs) { |
|
|
|
pi->outputmax = 100; |
|
|
|
pi->exp = 0; |
|
|
|
pi->units = ""; // no units defined |
|
|
|
// initialize parameter 4 ("m_damping_28") |
|
|
|
// initialize parameter 4 ("m_roomsize_29") |
|
|
|
pi = self->__commonstate.params + 4; |
|
|
|
pi->name = "damping"; |
|
|
|
pi->name = "roomsize"; |
|
|
|
pi->paramtype = GENLIB_PARAMTYPE_FLOAT; |
|
|
|
pi->defaultvalue = self->m_damping_28; |
|
|
|
pi->defaultvalue = self->m_roomsize_29; |
|
|
|
pi->defaultref = 0; |
|
|
|
pi->hasinputminmax = false; |
|
|
|
pi->inputmin = 0; |
|
|
|
pi->inputmax = 1; |
|
|
|
pi->hasminmax = true; |
|
|
|
pi->outputmin = 0; |
|
|
|
pi->outputmax = 100; |
|
|
|
pi->outputmin = 1; |
|
|
|
pi->outputmax = 300; |
|
|
|
pi->exp = 0; |
|
|
|
pi->units = ""; // no units defined |
|
|
|
// initialize parameter 5 ("m_roomsize_29") |
|
|
|
// initialize parameter 5 ("m_tone_30") |
|
|
|
pi = self->__commonstate.params + 5; |
|
|
|
pi->name = "roomsize"; |
|
|
|
pi->name = "tone"; |
|
|
|
pi->paramtype = GENLIB_PARAMTYPE_FLOAT; |
|
|
|
pi->defaultvalue = self->m_roomsize_29; |
|
|
|
pi->defaultvalue = self->m_tone_30; |
|
|
|
pi->defaultref = 0; |
|
|
|
pi->hasinputminmax = false; |
|
|
|
pi->inputmin = 0; |
|
|
|
pi->inputmax = 1; |
|
|
|
pi->hasminmax = true; |
|
|
|
pi->outputmin = 1; |
|
|
|
pi->outputmax = 300; |
|
|
|
pi->outputmin = 500; |
|
|
|
pi->outputmax = 6000; |
|
|
|
pi->exp = 0; |
|
|
|
pi->units = ""; // no units defined |
|
|
|
// initialize parameter 6 ("m_tone_30") |
|
|
|
// initialize parameter 6 ("m_shimmer_31") |
|
|
|
pi = self->__commonstate.params + 6; |
|
|
|
pi->name = "tone"; |
|
|
|
pi->name = "shimmer"; |
|
|
|
pi->paramtype = GENLIB_PARAMTYPE_FLOAT; |
|
|
|
pi->defaultvalue = self->m_tone_30; |
|
|
|
pi->defaultvalue = self->m_shimmer_31; |
|
|
|
pi->defaultref = 0; |
|
|
|
pi->hasinputminmax = false; |
|
|
|
pi->inputmin = 0; |
|
|
|
pi->inputmax = 1; |
|
|
|
pi->hasminmax = true; |
|
|
|
pi->outputmin = 500; |
|
|
|
pi->outputmax = 6000; |
|
|
|
pi->outputmin = 0; |
|
|
|
pi->outputmax = 100; |
|
|
|
pi->exp = 0; |
|
|
|
pi->units = ""; // no units defined |
|
|
|
// initialize parameter 7 ("m_ratio_31") |
|
|
|
// initialize parameter 7 ("m_ratio_32") |
|
|
|
pi = self->__commonstate.params + 7; |
|
|
|
pi->name = "ratio"; |
|
|
|
pi->paramtype = GENLIB_PARAMTYPE_FLOAT; |
|
|
|
pi->defaultvalue = self->m_ratio_31; |
|
|
|
pi->defaultvalue = self->m_ratio_32; |
|
|
|
pi->defaultref = 0; |
|
|
|
pi->hasinputminmax = false; |
|
|
|
pi->inputmin = 0; |
|
|
|