Browse Source

watch pitchotto gen, changed shiroverb

pull/1/head
nino de wit 9 years ago
parent
commit
9d129da6d1
4 changed files with 2119 additions and 2079 deletions
  1. +15
    -15
      plugins/pitchotto/gen~.pitchotto.maxpat
  2. +386
    -386
      plugins/shiroverb/gen_exported.cpp
  3. +859
    -839
      plugins/shiroverb/gen~.shiroverb.maxpat
  4. +859
    -839
      plugins/shiroverb/shiroverb.gendsp

+ 15
- 15
plugins/pitchotto/gen~.pitchotto.maxpat View File

@@ -96,7 +96,7 @@
"outlettype" : [ "signal", "signal", "", "float", "list" ],
"parameter_enable" : 1,
"patching_rect" : [ 285.0, 339.0, 136.0, 42.0 ],
"presentation_rect" : [ 287.0, 445.0, 50.0, 28.0 ],
"presentation_rect" : [ 287.0, 445.0, 50.0, 42.0 ],
"saved_attribute_attributes" : {
"valueof" : {
"parameter_longname" : "live.gain~[1]",
@@ -2553,7 +2553,7 @@
"outlettype" : [ "signal", "signal", "", "float", "list" ],
"parameter_enable" : 1,
"patching_rect" : [ 15.0, 339.0, 136.0, 42.0 ],
"presentation_rect" : [ 60.0, 60.0, 50.0, 28.0 ],
"presentation_rect" : [ 60.0, 60.0, 50.0, 42.0 ],
"saved_attribute_attributes" : {
"valueof" : {
"parameter_longname" : "live.gain~",
@@ -4187,7 +4187,7 @@
"numinlets" : 0,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 1231.333252, 11.0, 221.0, 20.0 ],
"patching_rect" : [ 508.833313, 11.0, 221.0, 20.0 ],
"text" : "param blur 0.25 @min 0.01 @max 0.25"
}

@@ -6513,7 +6513,7 @@
"destination" : [ "obj-25", 1 ],
"disabled" : 0,
"hidden" : 0,
"midpoints" : [ 1240.833252, 63.0, 260.333313, 63.0 ],
"midpoints" : [ 518.333313, 63.0, 260.333313, 63.0 ],
"source" : [ "obj-55", 0 ]
}

@@ -6524,7 +6524,7 @@
"destination" : [ "obj-26", 1 ],
"disabled" : 0,
"hidden" : 0,
"midpoints" : [ 1240.833252, 63.0, 411.166656, 63.0 ],
"midpoints" : [ 518.333313, 63.0, 411.166656, 63.0 ],
"source" : [ "obj-55", 0 ]
}

@@ -6535,7 +6535,7 @@
"destination" : [ "obj-391", 1 ],
"disabled" : 0,
"hidden" : 0,
"midpoints" : [ 1240.833252, 63.0, 1451.833252, 63.0 ],
"midpoints" : [ 518.333313, 63.0, 1451.833252, 63.0 ],
"source" : [ "obj-55", 0 ]
}

@@ -6546,7 +6546,7 @@
"destination" : [ "obj-394", 1 ],
"disabled" : 0,
"hidden" : 0,
"midpoints" : [ 1240.833252, 63.0, 1301.0, 63.0 ],
"midpoints" : [ 518.333313, 63.0, 1301.0, 63.0 ],
"source" : [ "obj-55", 0 ]
}

@@ -6557,7 +6557,7 @@
"destination" : [ "obj-397", 1 ],
"disabled" : 0,
"hidden" : 0,
"midpoints" : [ 1240.833252, 63.0, 1150.166626, 63.0 ],
"midpoints" : [ 518.333313, 63.0, 1150.166626, 63.0 ],
"source" : [ "obj-55", 0 ]
}

@@ -6568,7 +6568,7 @@
"destination" : [ "obj-400", 1 ],
"disabled" : 0,
"hidden" : 0,
"midpoints" : [ 1240.833252, 63.0, 999.333313, 63.0 ],
"midpoints" : [ 518.333313, 63.0, 999.333313, 63.0 ],
"source" : [ "obj-55", 0 ]
}

@@ -6579,7 +6579,7 @@
"destination" : [ "obj-47", 1 ],
"disabled" : 0,
"hidden" : 0,
"midpoints" : [ 1240.833252, 63.0, 712.833313, 63.0 ],
"midpoints" : [ 518.333313, 63.0, 712.833313, 63.0 ],
"source" : [ "obj-55", 0 ]
}

@@ -6590,7 +6590,7 @@
"destination" : [ "obj-51", 1 ],
"disabled" : 0,
"hidden" : 0,
"midpoints" : [ 1240.833252, 63.0, 562.0, 63.0 ],
"midpoints" : [ 518.333313, 63.0, 562.0, 63.0 ],
"source" : [ "obj-55", 0 ]
}

@@ -7240,11 +7240,11 @@
}
],
"parameters" : {
"obj-6" : [ "live.gain~", "live.gain~", 0 ],
"obj-7::obj-32" : [ "[8]", "[2]", 0 ],
"obj-25" : [ "live.gain~[1]", "live.gain~", 0 ],
"obj-7::obj-21::obj-6" : [ "live.tab[3]", "live.tab[1]", 0 ],
"obj-7::obj-35" : [ "[5]", "Level", 0 ]
"obj-25" : [ "live.gain~[1]", "live.gain~", 0 ],
"obj-6" : [ "live.gain~", "live.gain~", 0 ],
"obj-7::obj-35" : [ "[5]", "Level", 0 ],
"obj-7::obj-32" : [ "[8]", "[2]", 0 ]
}
,
"dependency_cache" : [ {


+ 386
- 386
plugins/shiroverb/gen_exported.cpp View File

@@ -57,16 +57,16 @@ typedef struct State {
Sah m_sah_42;
Sah m_sah_44;
Sah m_sah_41;
double m_early_34;
double m_shimmer_35;
double m_roomsize_34;
double m_tail_35;
double m_blur_36;
double m_ratio_38;
double m_cutoff_33;
double m_window_37;
double m_damping_38;
double m_shimmer_33;
double m_decay_37;
double samples_to_seconds;
double m_resonance_32;
double m_roomsize_25;
double m_damping_30;
double m_early_32;
double m_ratio_25;
double m_spread_30;
double m_history_4;
double m_history_5;
double m_history_6;
@@ -74,16 +74,16 @@ typedef struct State {
double m_history_1;
double m_y_2;
double samplerate;
double m_mix_31;
double m_cutoff_31;
double m_history_7;
double m_history_9;
double m_tail_28;
double m_tone_29;
double m_tone_28;
double m_mix_29;
double m_history_8;
double m_spread_27;
double m_resonance_27;
double m_y_11;
double m_history_10;
double m_decay_26;
double m_window_26;
int vectorsize;
int __exception;
// re-initialize all member variables;
@@ -115,20 +115,20 @@ typedef struct State {
m_delay_22.reset("m_delay_22", 48000);
m_delay_23.reset("m_delay_23", 48000);
m_delay_24.reset("m_delay_24", 48000);
m_roomsize_25 = 150;
m_decay_26 = 180;
m_spread_27 = 25;
m_tail_28 = 0.25;
m_tone_29 = 0.5;
m_damping_30 = 0.75;
m_mix_31 = 0.5;
m_resonance_32 = 0;
m_cutoff_33 = 3000;
m_early_34 = 0.25;
m_shimmer_35 = 0.5;
m_ratio_25 = 2;
m_window_26 = 100;
m_resonance_27 = 0;
m_tone_28 = 0.5;
m_mix_29 = 0.5;
m_spread_30 = 25;
m_cutoff_31 = 3000;
m_early_32 = 0.25;
m_shimmer_33 = 0.5;
m_roomsize_34 = 150;
m_tail_35 = 0.25;
m_blur_36 = 0.25;
m_window_37 = 100;
m_ratio_38 = 2;
m_decay_37 = 180;
m_damping_38 = 0.75;
samples_to_seconds = (1 / samplerate);
m_phasor_39.reset(0);
m_delta_40.reset(0);
@@ -160,270 +160,270 @@ typedef struct State {
return __exception;
};
double rsub_238 = (1 - m_tone_29);
double expr_271 = safepow(0.001, safediv(1, (m_decay_26 * 44100)));
double expr_272 = safediv((m_roomsize_25 * 44100), 340);
double mul_230 = (expr_272 * 1);
double expr_270 = (-safepow(expr_271, mul_230));
double mul_229 = (expr_272 * 0.81649);
double expr_265 = (-safepow(expr_271, mul_229));
double mul_228 = (expr_272 * 0.7071);
double expr_264 = (-safepow(expr_271, mul_228));
double mul_227 = (expr_272 * 0.63245);
double expr_263 = (-safepow(expr_271, mul_227));
double mul_12 = (m_resonance_32 * 0.125);
double exp_13 = exp(mul_12);
double mul_11 = (exp_13 * 0.882497);
double mul_7 = (mul_11 * mul_11);
double expr_262 = safediv(((m_cutoff_33 * 2) * 3.1415926535898), 44100);
double cos_10 = cos(expr_262);
double mul_9 = (cos_10 * mul_11);
double mul_8 = (mul_9 * -2);
double add_6 = ((mul_8 + mul_7) + 1);
double mul_224 = (expr_272 * 0.000527);
int int_223 = int(mul_224);
double add_153 = (expr_272 + 5);
double expr_266 = safepow(expr_271, add_153);
double mstosamps_78 = (m_window_37 * (samplerate * 0.001));
double mul_164 = (m_spread_27 * -0.380445);
double add_163 = (mul_164 + 931);
double rsub_160 = (1341 - add_163);
double mul_173 = (int_223 * rsub_160);
double mul_192 = (m_spread_27 * 0.376623);
double add_191 = (mul_192 + 931);
double rsub_188 = (1341 - add_191);
double mul_199 = (int_223 * rsub_188);
double rsub_65 = (1 - m_ratio_38);
double mul_64 = (rsub_65 * 1000);
double div_63 = safediv(mul_64, m_window_37);
double rsub_552 = (1 - m_tone_28);
double expr_1476 = safepow(0.001, safediv(1, (m_decay_37 * 44100)));
double expr_1477 = safediv((m_roomsize_34 * 44100), 340);
double mul_542 = (expr_1477 * 0.7071);
double expr_1469 = (-safepow(expr_1476, mul_542));
double mul_541 = (expr_1477 * 0.63245);
double expr_1468 = (-safepow(expr_1476, mul_541));
double mul_543 = (expr_1477 * 0.81649);
double expr_1470 = (-safepow(expr_1476, mul_543));
double mul_544 = (expr_1477 * 1);
double expr_1475 = (-safepow(expr_1476, mul_544));
double expr_1478 = safediv(((m_cutoff_31 * 2) * 3.1415926535898), 44100);
double cos_1010 = cos(expr_1478);
double mul_1012 = (m_resonance_27 * 0.125);
double exp_1013 = exp(mul_1012);
double mul_1011 = (exp_1013 * 0.882497);
double mul_1007 = (mul_1011 * mul_1011);
double mul_1009 = (cos_1010 * mul_1011);
double mul_1008 = (mul_1009 * -2);
double add_1006 = ((mul_1007 + mul_1008) + 1);
double mul_538 = (expr_1477 * 0.000527);
int int_537 = int(mul_538);
double mstosamps_963 = (m_window_26 * (samplerate * 0.001));
double add_467 = (expr_1477 + 5);
double expr_1471 = safepow(expr_1476, add_467);
double mul_478 = (m_spread_30 * -0.380445);
double add_477 = (mul_478 + 931);
double rsub_474 = (1341 - add_477);
double mul_487 = (int_537 * rsub_474);
double mul_506 = (m_spread_30 * 0.376623);
double add_505 = (mul_506 + 931);
double rsub_502 = (1341 - add_505);
double mul_513 = (int_537 * rsub_502);
double rsub_950 = (1 - m_ratio_25);
double mul_949 = (rsub_950 * 1000);
double div_948 = safediv(mul_949, m_window_26);
samples_to_seconds = (1 / samplerate);
double mul_159 = (expr_272 * 0.41);
double add_156 = (mul_159 + 5);
double expr_269 = safepow(expr_271, add_156);
double mul_158 = (expr_272 * 0.3);
double add_155 = (mul_158 + 5);
double expr_268 = safepow(expr_271, add_155);
double mul_157 = (expr_272 * 0.155);
double add_154 = (mul_157 + 5);
double expr_267 = safepow(expr_271, add_154);
double mul_222 = (expr_272 * 0.110732);
double mul_166 = (m_spread_27 * -0.568366);
double add_162 = (mul_166 + 369);
double rsub_161 = (add_163 - add_162);
double mul_180 = (int_223 * rsub_161);
double mul_208 = (m_spread_27 * 0.125541);
double add_190 = (mul_208 + 369);
double rsub_189 = (add_191 - add_190);
double mul_206 = (int_223 * rsub_189);
double add_165 = (mul_166 + 159);
double mul_187 = (int_223 * add_165);
double add_207 = (mul_208 + 159);
double mul_215 = (int_223 * add_207);
double mul_473 = (expr_1477 * 0.41);
double add_470 = (mul_473 + 5);
double expr_1474 = safepow(expr_1476, add_470);
double mul_472 = (expr_1477 * 0.3);
double add_469 = (mul_472 + 5);
double expr_1473 = safepow(expr_1476, add_469);
double mul_471 = (expr_1477 * 0.155);
double add_468 = (mul_471 + 5);
double expr_1472 = safepow(expr_1476, add_468);
double mul_536 = (expr_1477 * 0.110732);
double mul_480 = (m_spread_30 * -0.568366);
double add_476 = (mul_480 + 369);
double rsub_475 = (add_477 - add_476);
double mul_494 = (int_537 * rsub_475);
double mul_522 = (m_spread_30 * 0.125541);
double add_504 = (mul_522 + 369);
double rsub_503 = (add_505 - add_504);
double mul_520 = (int_537 * rsub_503);
double add_479 = (mul_480 + 159);
double mul_501 = (int_537 * add_479);
double add_521 = (mul_522 + 159);
double mul_529 = (int_537 * add_521);
// the main sample loop;
while ((__n--)) {
const double in1 = (*(__in1++));
double noise_14 = noise();
double abs_32 = fabs(noise_14);
double mul_36 = (abs_32 * m_blur_36);
double noise_16 = noise();
double abs_34 = fabs(noise_16);
double mul_42 = (abs_34 * m_blur_36);
double noise_17 = noise();
double abs_35 = fabs(noise_17);
double mul_45 = (abs_35 * m_blur_36);
double noise_15 = noise();
double abs_33 = fabs(noise_15);
double mul_39 = (abs_33 * m_blur_36);
double tap_235 = m_delay_24.read_linear(mul_230);
double mul_226 = (tap_235 * expr_270);
double mix_297 = (mul_226 + (m_damping_30 * (m_history_10 - mul_226)));
double mix_233 = mix_297;
double tap_139 = m_delay_23.read_linear(mul_229);
double mul_135 = (tap_139 * expr_265);
double mix_298 = (mul_135 + (m_damping_30 * (m_history_9 - mul_135)));
double mix_137 = mix_298;
double tap_133 = m_delay_22.read_linear(mul_228);
double mul_129 = (tap_133 * expr_264);
double mix_299 = (mul_129 + (m_damping_30 * (m_history_8 - mul_129)));
double mix_131 = mix_299;
double tap_127 = m_delay_21.read_linear(mul_227);
double mul_123 = (tap_127 * expr_263);
double mix_300 = (mul_123 + (m_damping_30 * (m_history_7 - mul_123)));
double mix_125 = mix_300;
double mul_3 = (mul_7 * m_y_11);
double mul_4 = (mul_8 * m_y_2);
double add_117 = (mix_233 + mix_137);
double add_115 = (mix_131 + mix_125);
double sub_114 = (add_117 - add_115);
double mul_96 = (sub_114 * 0.5);
double add_110 = (add_117 + add_115);
double mul_93 = (add_110 * 0.5);
double tap_172 = m_delay_20.read_linear(mul_173);
double mul_170 = (tap_172 * 0.625);
double sub_116 = (mix_233 - mix_137);
double sub_113 = (mix_131 - mix_125);
double sub_112 = (sub_116 - sub_113);
double mul_95 = (sub_112 * 0.5);
double add_111 = (sub_116 + sub_113);
double rsub_109 = (0 - add_111);
double mul_94 = (rsub_109 * 0.5);
double tap_198 = m_delay_19.read_linear(mul_199);
double mul_196 = (tap_198 * 0.625);
double phasor_84 = m_phasor_39(div_63, samples_to_seconds);
double add_56 = ((m_history_6 + phasor_84) + 0.75);
double mod_55 = safemod(add_56, 1);
double delta_38 = m_delta_40(mod_55);
double sah_18 = m_sah_41(mul_36, delta_38, 0);
double sah_37 = m_sah_42(mstosamps_78, delta_38, 0);
double mul_28 = (sah_37 * mod_55);
double sub_54 = (mod_55 - 0.5);
double mul_53 = (sub_54 * 3.1415926535898);
double cos_52 = cos(mul_53);
double mul_47 = (cos_52 * cos_52);
double add_77 = ((m_history_5 + phasor_84) + 0.25);
double mod_76 = safemod(add_77, 1);
double delta_44 = m_delta_43(mod_76);
double sah_22 = m_sah_44(mul_42, delta_44, 0);
double sah_43 = m_sah_45(mstosamps_78, delta_44, 0);
double mul_30 = (sah_43 * mod_76);
double sub_75 = (mod_76 - 0.5);
double mul_74 = (sub_75 * 3.1415926535898);
double cos_73 = cos(mul_74);
double mul_49 = (cos_73 * cos_73);
double add_83 = ((m_history_4 + phasor_84) + 0);
double mod_82 = safemod(add_83, 1);
double delta_25 = m_delta_46(mod_82);
double sah_24 = m_sah_47(mul_45, delta_25, 0);
double sah_46 = m_sah_48(mstosamps_78, delta_25, 0);
double mul_31 = (sah_46 * mod_82);
double sub_81 = (mod_82 - 0.5);
double mul_80 = (sub_81 * 3.1415926535898);
double cos_79 = cos(mul_80);
double mul_50 = (cos_79 * cos_79);
double add_62 = ((m_history_3 + phasor_84) + 0.5);
double mod_61 = safemod(add_62, 1);
double delta_41 = m_delta_49(mod_61);
double sah_20 = m_sah_50(mul_39, delta_41, 0);
double sah_40 = m_sah_51(mstosamps_78, delta_41, 0);
double mul_29 = (sah_40 * mod_61);
double tap_69 = m_delay_18.read_linear(mul_31);
double tap_70 = m_delay_18.read_linear(mul_30);
double tap_71 = m_delay_18.read_linear(mul_29);
double tap_72 = m_delay_18.read_linear(mul_28);
double mul_51 = (tap_72 * mul_47);
double mul_66 = (tap_70 * mul_49);
double mul_67 = (tap_69 * mul_50);
double sub_60 = (mod_61 - 0.5);
double mul_59 = (sub_60 * 3.1415926535898);
double cos_58 = cos(mul_59);
double mul_48 = (cos_58 * cos_58);
double mul_57 = (tap_71 * mul_48);
double mul_5 = ((((mul_67 + mul_66) + mul_57) + mul_51) * add_6);
double sub_2 = (mul_5 - (mul_4 + mul_3));
double mix_301 = (in1 + (m_shimmer_35 * (sub_2 - in1)));
double mix_27 = mix_301;
double mul_87 = (mix_27 * 0.707);
double mix_302 = (mul_87 + (rsub_238 * (m_history_1 - mul_87)));
double mix_237 = mix_302;
double tap_141 = m_delay_17.read_linear(add_156);
double tap_142 = m_delay_17.read_linear(add_155);
double tap_143 = m_delay_17.read_linear(add_154);
double tap_144 = m_delay_17.read_linear(add_153);
double mul_151 = (tap_141 * expr_269);
double add_121 = (mul_96 + mul_151);
double mul_149 = (tap_142 * expr_268);
double add_120 = (mul_95 + mul_149);
double mul_145 = (tap_144 * expr_266);
double add_118 = (mul_93 + mul_145);
double mul_147 = (tap_143 * expr_267);
double add_119 = (mul_94 + mul_147);
double tap_221 = m_delay_16.read_linear(mul_222);
double mul_219 = (tap_221 * 0.75);
double sub_218 = (mix_237 - mul_219);
double mul_217 = (sub_218 * 0.75);
double add_216 = (mul_217 + tap_221);
double tap_179 = m_delay_15.read_linear(mul_180);
double mul_177 = (tap_179 * 0.625);
double tap_205 = m_delay_14.read_linear(mul_206);
double mul_203 = (tap_205 * 0.625);
double tap_186 = m_delay_13.read_linear(mul_187);
double mul_184 = (tap_186 * 0.75);
double tap_214 = m_delay_12.read_linear(mul_215);
double mul_212 = (tap_214 * 0.75);
double mul_108 = (mul_96 * m_tail_28);
double mul_106 = (mul_94 * m_tail_28);
double add_92 = (mul_108 + mul_106);
double mul_107 = (mul_95 * m_tail_28);
double mul_105 = (mul_93 * m_tail_28);
double add_91 = (mul_107 + mul_105);
double sub_100 = (add_92 - add_91);
double mul_104 = (mul_151 * m_early_34);
double mul_102 = (mul_147 * m_early_34);
double add_90 = (mul_104 + mul_102);
double mul_103 = (mul_149 * m_early_34);
double mul_101 = (mul_145 * m_early_34);
double add_89 = (mul_103 + mul_101);
double sub_99 = (add_90 - add_89);
double add_86 = (sub_100 + sub_99);
double add_88 = (add_86 + mix_27);
double sub_183 = (add_88 - mul_184);
double mul_182 = (sub_183 * 0.75);
double add_181 = (mul_182 + tap_186);
double sub_176 = (add_181 - mul_177);
double mul_175 = (sub_176 * 0.625);
double add_174 = (mul_175 + tap_179);
double sub_169 = (add_174 - mul_170);
double mul_168 = (sub_169 * 0.625);
double add_167 = (mul_168 + tap_172);
double mul_85 = (add_167 * m_mix_31);
double out2 = (mul_85 + in1);
double add_98 = (add_86 + mix_27);
double sub_211 = (add_98 - mul_212);
double mul_210 = (sub_211 * 0.75);
double add_209 = (mul_210 + tap_214);
double sub_202 = (add_209 - mul_203);
double mul_201 = (sub_202 * 0.625);
double add_200 = (mul_201 + tap_205);
double sub_195 = (add_200 - mul_196);
double mul_194 = (sub_195 * 0.625);
double add_193 = (mul_194 + tap_198);
double mul_97 = (add_193 * m_mix_31);
double out1 = (mul_97 + in1);
double y2_next_286 = m_y_2;
double history_232_next_287 = mix_233;
double history_136_next_288 = mix_137;
double history_130_next_289 = mix_131;
double history_124_next_290 = mix_125;
double history_19_next_291 = sah_18;
double history_23_next_292 = sah_22;
double history_26_next_293 = sah_24;
double history_21_next_294 = sah_20;
double y1_next_295 = sub_2;
double history_236_next_296 = mix_237;
m_delay_24.write(add_121);
m_delay_23.write(add_120);
m_delay_22.write(add_119);
m_delay_21.write(add_118);
m_delay_20.write(sub_169);
m_delay_19.write(sub_195);
double noise_900 = noise();
double abs_917 = fabs(noise_900);
double mul_921 = (abs_917 * m_blur_36);
double noise_902 = noise();
double abs_919 = fabs(noise_902);
double mul_927 = (abs_919 * m_blur_36);
double noise_903 = noise();
double abs_920 = fabs(noise_903);
double mul_930 = (abs_920 * m_blur_36);
double noise_901 = noise();
double abs_918 = fabs(noise_901);
double mul_924 = (abs_918 * m_blur_36);
double tap_447 = m_delay_24.read_linear(mul_542);
double mul_443 = (tap_447 * expr_1469);
double mix_1521 = (mul_443 + (m_damping_38 * (m_history_10 - mul_443)));
double mix_445 = mix_1521;
double tap_441 = m_delay_23.read_linear(mul_541);
double mul_437 = (tap_441 * expr_1468);
double mix_1522 = (mul_437 + (m_damping_38 * (m_history_9 - mul_437)));
double mix_439 = mix_1522;
double tap_453 = m_delay_22.read_linear(mul_543);
double mul_449 = (tap_453 * expr_1470);
double mix_1523 = (mul_449 + (m_damping_38 * (m_history_8 - mul_449)));
double mix_451 = mix_1523;
double tap_549 = m_delay_21.read_linear(mul_544);
double mul_540 = (tap_549 * expr_1475);
double mix_1524 = (mul_540 + (m_damping_38 * (m_history_7 - mul_540)));
double mix_547 = mix_1524;
double mul_1003 = (mul_1007 * m_y_11);
double mul_1004 = (mul_1008 * m_y_2);
double add_431 = (mix_547 + mix_451);
double add_429 = (mix_445 + mix_439);
double add_424 = (add_431 + add_429);
double mul_407 = (add_424 * 0.5);
double sub_428 = (add_431 - add_429);
double mul_410 = (sub_428 * 0.5);
double sub_430 = (mix_547 - mix_451);
double sub_427 = (mix_445 - mix_439);
double sub_426 = (sub_430 - sub_427);
double mul_409 = (sub_426 * 0.5);
double add_425 = (sub_430 + sub_427);
double rsub_423 = (0 - add_425);
double mul_408 = (rsub_423 * 0.5);
double tap_486 = m_delay_20.read_linear(mul_487);
double mul_484 = (tap_486 * 0.625);
double tap_512 = m_delay_19.read_linear(mul_513);
double mul_510 = (tap_512 * 0.625);
double phasor_969 = m_phasor_39(div_948, samples_to_seconds);
double add_941 = ((phasor_969 + m_history_6) + 0.75);
double mod_940 = safemod(add_941, 1);
double delta_923 = m_delta_40(mod_940);
double sah_904 = m_sah_41(mul_921, delta_923, 0);
double sah_922 = m_sah_42(mstosamps_963, delta_923, 0);
double mul_913 = (sah_922 * mod_940);
double sub_939 = (mod_940 - 0.5);
double mul_938 = (sub_939 * 3.1415926535898);
double cos_937 = cos(mul_938);
double mul_932 = (cos_937 * cos_937);
double add_962 = ((phasor_969 + m_history_5) + 0.25);
double mod_961 = safemod(add_962, 1);
double delta_929 = m_delta_43(mod_961);
double sah_908 = m_sah_44(mul_927, delta_929, 0);
double sah_928 = m_sah_45(mstosamps_963, delta_929, 0);
double mul_915 = (sah_928 * mod_961);
double sub_960 = (mod_961 - 0.5);
double mul_959 = (sub_960 * 3.1415926535898);
double cos_958 = cos(mul_959);
double mul_934 = (cos_958 * cos_958);
double add_968 = ((phasor_969 + m_history_4) + 0);
double mod_967 = safemod(add_968, 1);
double delta_911 = m_delta_46(mod_967);
double sah_910 = m_sah_47(mul_930, delta_911, 0);
double sah_931 = m_sah_48(mstosamps_963, delta_911, 0);
double mul_916 = (sah_931 * mod_967);
double sub_966 = (mod_967 - 0.5);
double mul_965 = (sub_966 * 3.1415926535898);
double cos_964 = cos(mul_965);
double mul_935 = (cos_964 * cos_964);
double add_947 = ((phasor_969 + m_history_3) + 0.5);
double mod_946 = safemod(add_947, 1);
double delta_926 = m_delta_49(mod_946);
double sah_906 = m_sah_50(mul_924, delta_926, 0);
double sah_925 = m_sah_51(mstosamps_963, delta_926, 0);
double mul_914 = (sah_925 * mod_946);
double tap_954 = m_delay_18.read_linear(mul_916);
double tap_955 = m_delay_18.read_linear(mul_915);
double tap_956 = m_delay_18.read_linear(mul_914);
double tap_957 = m_delay_18.read_linear(mul_913);
double mul_952 = (tap_954 * mul_935);
double mul_951 = (tap_955 * mul_934);
double mul_936 = (tap_957 * mul_932);
double sub_945 = (mod_946 - 0.5);
double mul_944 = (sub_945 * 3.1415926535898);
double cos_943 = cos(mul_944);
double mul_933 = (cos_943 * cos_943);
double mul_942 = (tap_956 * mul_933);
double mul_1005 = ((((mul_936 + mul_942) + mul_951) + mul_952) * add_1006);
double sub_1002 = (mul_1005 - (mul_1003 + mul_1004));
double mix_1525 = (in1 + (m_shimmer_33 * (sub_1002 - in1)));
double mix_341 = mix_1525;
double mul_401 = (mix_341 * 0.707);
double mix_1526 = (mul_401 + (rsub_552 * (m_history_1 - mul_401)));
double mix_551 = mix_1526;
double tap_455 = m_delay_17.read_linear(add_470);
double tap_456 = m_delay_17.read_linear(add_469);
double tap_457 = m_delay_17.read_linear(add_468);
double tap_458 = m_delay_17.read_linear(add_467);
double mul_459 = (tap_458 * expr_1471);
double add_432 = (mul_407 + mul_459);
double mul_463 = (tap_456 * expr_1473);
double add_434 = (mul_409 + mul_463);
double mul_465 = (tap_455 * expr_1474);
double add_435 = (mul_410 + mul_465);
double mul_461 = (tap_457 * expr_1472);
double add_433 = (mul_408 + mul_461);
double tap_535 = m_delay_16.read_linear(mul_536);
double mul_533 = (tap_535 * 0.75);
double sub_532 = (mix_551 - mul_533);
double mul_531 = (sub_532 * 0.75);
double add_530 = (mul_531 + tap_535);
double tap_493 = m_delay_15.read_linear(mul_494);
double mul_491 = (tap_493 * 0.625);
double tap_519 = m_delay_14.read_linear(mul_520);
double mul_517 = (tap_519 * 0.625);
double tap_500 = m_delay_13.read_linear(mul_501);
double mul_498 = (tap_500 * 0.75);
double tap_528 = m_delay_12.read_linear(mul_529);
double mul_526 = (tap_528 * 0.75);
double mul_422 = (mul_410 * m_tail_35);
double mul_420 = (mul_408 * m_tail_35);
double add_406 = (mul_422 + mul_420);
double mul_421 = (mul_409 * m_tail_35);
double mul_419 = (mul_407 * m_tail_35);
double add_405 = (mul_421 + mul_419);
double sub_414 = (add_406 - add_405);
double mul_418 = (mul_465 * m_early_32);
double mul_416 = (mul_461 * m_early_32);
double add_404 = (mul_418 + mul_416);
double mul_417 = (mul_463 * m_early_32);
double mul_415 = (mul_459 * m_early_32);
double add_403 = (mul_417 + mul_415);
double sub_413 = (add_404 - add_403);
double add_400 = (sub_414 + sub_413);
double add_402 = (add_400 + mix_341);
double sub_497 = (add_402 - mul_498);
double mul_496 = (sub_497 * 0.75);
double add_495 = (mul_496 + tap_500);
double sub_490 = (add_495 - mul_491);
double mul_489 = (sub_490 * 0.625);
double add_488 = (mul_489 + tap_493);
double sub_483 = (add_488 - mul_484);
double mul_482 = (sub_483 * 0.625);
double add_481 = (mul_482 + tap_486);
double mul_1327 = (add_481 * m_mix_29);
double out2 = (mul_1327 + in1);
double add_412 = (add_400 + mix_341);
double sub_525 = (add_412 - mul_526);
double mul_524 = (sub_525 * 0.75);
double add_523 = (mul_524 + tap_528);
double sub_516 = (add_523 - mul_517);
double mul_515 = (sub_516 * 0.625);
double add_514 = (mul_515 + tap_519);
double sub_509 = (add_514 - mul_510);
double mul_508 = (sub_509 * 0.625);
double add_507 = (mul_508 + tap_512);
double mul_411 = (add_507 * m_mix_29);
double out1 = (in1 + mul_411);
double y2_next_1492 = m_y_2;
double history_444_next_1493 = mix_445;
double history_438_next_1494 = mix_439;
double history_450_next_1495 = mix_451;
double history_546_next_1496 = mix_547;
double history_905_next_1497 = sah_904;
double history_909_next_1498 = sah_908;
double history_912_next_1499 = sah_910;
double history_907_next_1500 = sah_906;
double y1_next_1501 = sub_1002;
double history_550_next_1502 = mix_551;
m_delay_24.write(add_433);
m_delay_23.write(add_432);
m_delay_22.write(add_434);
m_delay_21.write(add_435);
m_delay_20.write(sub_483);
m_delay_19.write(sub_509);
m_delay_18.write(in1);
m_delay_17.write(add_216);
m_delay_16.write(sub_218);
m_delay_15.write(sub_176);
m_delay_14.write(sub_202);
m_delay_13.write(sub_183);
m_delay_12.write(sub_211);
m_y_11 = y2_next_286;
m_history_10 = history_232_next_287;
m_history_9 = history_136_next_288;
m_history_8 = history_130_next_289;
m_history_7 = history_124_next_290;
m_history_6 = history_19_next_291;
m_history_5 = history_23_next_292;
m_history_4 = history_26_next_293;
m_history_3 = history_21_next_294;
m_y_2 = y1_next_295;
m_history_1 = history_236_next_296;
m_delay_17.write(add_530);
m_delay_16.write(sub_532);
m_delay_15.write(sub_490);
m_delay_14.write(sub_516);
m_delay_13.write(sub_497);
m_delay_12.write(sub_525);
m_y_11 = y2_next_1492;
m_history_10 = history_444_next_1493;
m_history_9 = history_438_next_1494;
m_history_8 = history_450_next_1495;
m_history_7 = history_546_next_1496;
m_history_6 = history_905_next_1497;
m_history_5 = history_909_next_1498;
m_history_4 = history_912_next_1499;
m_history_3 = history_907_next_1500;
m_y_2 = y1_next_1501;
m_history_1 = history_550_next_1502;
m_delay_12.step();
m_delay_13.step();
m_delay_14.step();
@@ -445,47 +445,47 @@ typedef struct State {
return __exception;
};
inline void set_roomsize(double _value) {
m_roomsize_25 = (_value < 0.1 ? 0.1 : (_value > 300 ? 300 : _value));
};
inline void set_decay(double _value) {
m_decay_26 = (_value < 0.1 ? 0.1 : (_value > 360 ? 360 : _value));
inline void set_ratio(double _value) {
m_ratio_25 = (_value < 0.5 ? 0.5 : (_value > 2 ? 2 : _value));
};
inline void set_spread(double _value) {
m_spread_27 = (_value < 0 ? 0 : (_value > 100 ? 100 : _value));
inline void set_window(double _value) {
m_window_26 = (_value < 0.1 ? 0.1 : (_value > 1000 ? 1000 : _value));
};
inline void set_tail(double _value) {
m_tail_28 = (_value < 0 ? 0 : (_value > 1 ? 1 : _value));
inline void set_resonance(double _value) {
m_resonance_27 = (_value < 0 ? 0 : (_value > 0.25 ? 0.25 : _value));
};
inline void set_tone(double _value) {
m_tone_29 = (_value < 0 ? 0 : (_value > 1 ? 1 : _value));
};
inline void set_damping(double _value) {
m_damping_30 = (_value < 0 ? 0 : (_value > 1 ? 1 : _value));
m_tone_28 = (_value < 0 ? 0 : (_value > 1 ? 1 : _value));
};
inline void set_mix(double _value) {
m_mix_31 = (_value < 0 ? 0 : (_value > 1 ? 1 : _value));
m_mix_29 = (_value < 0 ? 0 : (_value > 1 ? 1 : _value));
};
inline void set_resonance(double _value) {
m_resonance_32 = (_value < 0 ? 0 : (_value > 0.25 ? 0.25 : _value));
inline void set_spread(double _value) {
m_spread_30 = (_value < 0 ? 0 : (_value > 100 ? 100 : _value));
};
inline void set_cutoff(double _value) {
m_cutoff_33 = (_value < 0 ? 0 : (_value > 6000 ? 6000 : _value));
m_cutoff_31 = (_value < 0 ? 0 : (_value > 6000 ? 6000 : _value));
};
inline void set_early(double _value) {
m_early_34 = (_value < 0 ? 0 : (_value > 1 ? 1 : _value));
m_early_32 = (_value < 0 ? 0 : (_value > 1 ? 1 : _value));
};
inline void set_shimmer(double _value) {
m_shimmer_35 = (_value < 0 ? 0 : (_value > 1 ? 1 : _value));
m_shimmer_33 = (_value < 0 ? 0 : (_value > 1 ? 1 : _value));
};
inline void set_roomsize(double _value) {
m_roomsize_34 = (_value < 0.1 ? 0.1 : (_value > 300 ? 300 : _value));
};
inline void set_tail(double _value) {
m_tail_35 = (_value < 0 ? 0 : (_value > 1 ? 1 : _value));
};
inline void set_blur(double _value) {
m_blur_36 = (_value < 0.01 ? 0.01 : (_value > 0.25 ? 0.25 : _value));
};
inline void set_window(double _value) {
m_window_37 = (_value < 0.1 ? 0.1 : (_value > 1000 ? 1000 : _value));
inline void set_decay(double _value) {
m_decay_37 = (_value < 0.1 ? 0.1 : (_value > 360 ? 360 : _value));
};
inline void set_ratio(double _value) {
m_ratio_38 = (_value < 0.5 ? 0.5 : (_value > 2 ? 2 : _value));
inline void set_damping(double _value) {
m_damping_38 = (_value < 0 ? 0 : (_value > 1 ? 1 : _value));
};
} State;
@@ -528,20 +528,20 @@ void reset(CommonState *cself) {
void setparameter(CommonState *cself, long index, double value, void *ref) {
State * self = (State *)cself;
switch (index) {
case 0: self->set_roomsize(value); break;
case 1: self->set_decay(value); break;
case 2: self->set_spread(value); break;
case 3: self->set_tail(value); break;
case 4: self->set_tone(value); break;
case 5: self->set_damping(value); break;
case 6: self->set_mix(value); break;
case 7: self->set_resonance(value); break;
case 8: self->set_cutoff(value); break;
case 9: self->set_early(value); break;
case 10: self->set_shimmer(value); break;
case 0: self->set_ratio(value); break;
case 1: self->set_window(value); break;
case 2: self->set_resonance(value); break;
case 3: self->set_tone(value); break;
case 4: self->set_mix(value); break;
case 5: self->set_spread(value); break;
case 6: self->set_cutoff(value); break;
case 7: self->set_early(value); break;
case 8: self->set_shimmer(value); break;
case 9: self->set_roomsize(value); break;
case 10: self->set_tail(value); break;
case 11: self->set_blur(value); break;
case 12: self->set_window(value); break;
case 13: self->set_ratio(value); break;
case 12: self->set_decay(value); break;
case 13: self->set_damping(value); break;
default: break;
}
@@ -552,20 +552,20 @@ 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_roomsize_25; break;
case 1: *value = self->m_decay_26; break;
case 2: *value = self->m_spread_27; break;
case 3: *value = self->m_tail_28; break;
case 4: *value = self->m_tone_29; break;
case 5: *value = self->m_damping_30; break;
case 6: *value = self->m_mix_31; break;
case 7: *value = self->m_resonance_32; break;
case 8: *value = self->m_cutoff_33; break;
case 9: *value = self->m_early_34; break;
case 10: *value = self->m_shimmer_35; break;
case 0: *value = self->m_ratio_25; break;
case 1: *value = self->m_window_26; break;
case 2: *value = self->m_resonance_27; break;
case 3: *value = self->m_tone_28; break;
case 4: *value = self->m_mix_29; break;
case 5: *value = self->m_spread_30; break;
case 6: *value = self->m_cutoff_31; break;
case 7: *value = self->m_early_32; break;
case 8: *value = self->m_shimmer_33; break;
case 9: *value = self->m_roomsize_34; break;
case 10: *value = self->m_tail_35; break;
case 11: *value = self->m_blur_36; break;
case 12: *value = self->m_window_37; break;
case 13: *value = self->m_ratio_38; break;
case 12: *value = self->m_decay_37; break;
case 13: *value = self->m_damping_38; break;
default: break;
}
@@ -585,53 +585,53 @@ void * create(double sr, long vs) {
self->__commonstate.vs = vs;
self->__commonstate.params = (ParamInfo *)genlib_sysmem_newptr(14 * sizeof(ParamInfo));
self->__commonstate.numparams = 14;
// initialize parameter 0 ("m_roomsize_25")
// initialize parameter 0 ("m_ratio_25")
pi = self->__commonstate.params + 0;
pi->name = "roomsize";
pi->name = "ratio";
pi->paramtype = GENLIB_PARAMTYPE_FLOAT;
pi->defaultvalue = self->m_roomsize_25;
pi->defaultvalue = self->m_ratio_25;
pi->defaultref = 0;
pi->hasinputminmax = false;
pi->inputmin = 0;
pi->inputmax = 1;
pi->hasminmax = true;
pi->outputmin = 0.1;
pi->outputmax = 300;
pi->outputmin = 0.5;
pi->outputmax = 2;
pi->exp = 0;
pi->units = ""; // no units defined
// initialize parameter 1 ("m_decay_26")
// initialize parameter 1 ("m_window_26")
pi = self->__commonstate.params + 1;
pi->name = "decay";
pi->name = "window";
pi->paramtype = GENLIB_PARAMTYPE_FLOAT;
pi->defaultvalue = self->m_decay_26;
pi->defaultvalue = self->m_window_26;
pi->defaultref = 0;
pi->hasinputminmax = false;
pi->inputmin = 0;
pi->inputmax = 1;
pi->hasminmax = true;
pi->outputmin = 0.1;
pi->outputmax = 360;
pi->outputmax = 1000;
pi->exp = 0;
pi->units = ""; // no units defined
// initialize parameter 2 ("m_spread_27")
// initialize parameter 2 ("m_resonance_27")
pi = self->__commonstate.params + 2;
pi->name = "spread";
pi->name = "resonance";
pi->paramtype = GENLIB_PARAMTYPE_FLOAT;
pi->defaultvalue = self->m_spread_27;
pi->defaultvalue = self->m_resonance_27;
pi->defaultref = 0;
pi->hasinputminmax = false;
pi->inputmin = 0;
pi->inputmax = 1;
pi->hasminmax = true;
pi->outputmin = 0;
pi->outputmax = 100;
pi->outputmax = 0.25;
pi->exp = 0;
pi->units = ""; // no units defined
// initialize parameter 3 ("m_tail_28")
// initialize parameter 3 ("m_tone_28")
pi = self->__commonstate.params + 3;
pi->name = "tail";
pi->name = "tone";
pi->paramtype = GENLIB_PARAMTYPE_FLOAT;
pi->defaultvalue = self->m_tail_28;
pi->defaultvalue = self->m_tone_28;
pi->defaultref = 0;
pi->hasinputminmax = false;
pi->inputmin = 0;
@@ -641,11 +641,11 @@ void * create(double sr, long vs) {
pi->outputmax = 1;
pi->exp = 0;
pi->units = ""; // no units defined
// initialize parameter 4 ("m_tone_29")
// initialize parameter 4 ("m_mix_29")
pi = self->__commonstate.params + 4;
pi->name = "tone";
pi->name = "mix";
pi->paramtype = GENLIB_PARAMTYPE_FLOAT;
pi->defaultvalue = self->m_tone_29;
pi->defaultvalue = self->m_mix_29;
pi->defaultref = 0;
pi->hasinputminmax = false;
pi->inputmin = 0;
@@ -655,81 +655,81 @@ void * create(double sr, long vs) {
pi->outputmax = 1;
pi->exp = 0;
pi->units = ""; // no units defined
// initialize parameter 5 ("m_damping_30")
// initialize parameter 5 ("m_spread_30")
pi = self->__commonstate.params + 5;
pi->name = "damping";
pi->name = "spread";
pi->paramtype = GENLIB_PARAMTYPE_FLOAT;
pi->defaultvalue = self->m_damping_30;
pi->defaultvalue = self->m_spread_30;
pi->defaultref = 0;
pi->hasinputminmax = false;
pi->inputmin = 0;
pi->inputmax = 1;
pi->hasminmax = true;
pi->outputmin = 0;
pi->outputmax = 1;
pi->outputmax = 100;
pi->exp = 0;
pi->units = ""; // no units defined
// initialize parameter 6 ("m_mix_31")
// initialize parameter 6 ("m_cutoff_31")
pi = self->__commonstate.params + 6;
pi->name = "mix";
pi->name = "cutoff";
pi->paramtype = GENLIB_PARAMTYPE_FLOAT;
pi->defaultvalue = self->m_mix_31;
pi->defaultvalue = self->m_cutoff_31;
pi->defaultref = 0;
pi->hasinputminmax = false;
pi->inputmin = 0;
pi->inputmax = 1;
pi->hasminmax = true;
pi->outputmin = 0;
pi->outputmax = 1;
pi->outputmax = 6000;
pi->exp = 0;
pi->units = ""; // no units defined
// initialize parameter 7 ("m_resonance_32")
// initialize parameter 7 ("m_early_32")
pi = self->__commonstate.params + 7;
pi->name = "resonance";
pi->name = "early";
pi->paramtype = GENLIB_PARAMTYPE_FLOAT;
pi->defaultvalue = self->m_resonance_32;
pi->defaultvalue = self->m_early_32;
pi->defaultref = 0;
pi->hasinputminmax = false;
pi->inputmin = 0;
pi->inputmax = 1;
pi->hasminmax = true;
pi->outputmin = 0;
pi->outputmax = 0.25;
pi->outputmax = 1;
pi->exp = 0;
pi->units = ""; // no units defined
// initialize parameter 8 ("m_cutoff_33")
// initialize parameter 8 ("m_shimmer_33")
pi = self->__commonstate.params + 8;
pi->name = "cutoff";
pi->name = "shimmer";
pi->paramtype = GENLIB_PARAMTYPE_FLOAT;
pi->defaultvalue = self->m_cutoff_33;
pi->defaultvalue = self->m_shimmer_33;
pi->defaultref = 0;
pi->hasinputminmax = false;
pi->inputmin = 0;
pi->inputmax = 1;
pi->hasminmax = true;
pi->outputmin = 0;
pi->outputmax = 6000;
pi->outputmax = 1;
pi->exp = 0;
pi->units = ""; // no units defined
// initialize parameter 9 ("m_early_34")
// initialize parameter 9 ("m_roomsize_34")
pi = self->__commonstate.params + 9;
pi->name = "early";
pi->name = "roomsize";
pi->paramtype = GENLIB_PARAMTYPE_FLOAT;
pi->defaultvalue = self->m_early_34;
pi->defaultvalue = self->m_roomsize_34;
pi->defaultref = 0;
pi->hasinputminmax = false;
pi->inputmin = 0;
pi->inputmax = 1;
pi->hasminmax = true;
pi->outputmin = 0;
pi->outputmax = 1;
pi->outputmin = 0.1;
pi->outputmax = 300;
pi->exp = 0;
pi->units = ""; // no units defined
// initialize parameter 10 ("m_shimmer_35")
// initialize parameter 10 ("m_tail_35")
pi = self->__commonstate.params + 10;
pi->name = "shimmer";
pi->name = "tail";
pi->paramtype = GENLIB_PARAMTYPE_FLOAT;
pi->defaultvalue = self->m_shimmer_35;
pi->defaultvalue = self->m_tail_35;
pi->defaultref = 0;
pi->hasinputminmax = false;
pi->inputmin = 0;
@@ -753,32 +753,32 @@ void * create(double sr, long vs) {
pi->outputmax = 0.25;
pi->exp = 0;
pi->units = ""; // no units defined
// initialize parameter 12 ("m_window_37")
// initialize parameter 12 ("m_decay_37")
pi = self->__commonstate.params + 12;
pi->name = "window";
pi->name = "decay";
pi->paramtype = GENLIB_PARAMTYPE_FLOAT;
pi->defaultvalue = self->m_window_37;
pi->defaultvalue = self->m_decay_37;
pi->defaultref = 0;
pi->hasinputminmax = false;
pi->inputmin = 0;
pi->inputmax = 1;
pi->hasminmax = true;
pi->outputmin = 0.1;
pi->outputmax = 1000;
pi->outputmax = 360;
pi->exp = 0;
pi->units = ""; // no units defined
// initialize parameter 13 ("m_ratio_38")
// initialize parameter 13 ("m_damping_38")
pi = self->__commonstate.params + 13;
pi->name = "ratio";
pi->name = "damping";
pi->paramtype = GENLIB_PARAMTYPE_FLOAT;
pi->defaultvalue = self->m_ratio_38;
pi->defaultvalue = self->m_damping_38;
pi->defaultref = 0;
pi->hasinputminmax = false;
pi->inputmin = 0;
pi->inputmax = 1;
pi->hasminmax = true;
pi->outputmin = 0.5;
pi->outputmax = 2;
pi->outputmin = 0;
pi->outputmax = 1;
pi->exp = 0;
pi->units = ""; // no units defined


+ 859
- 839
plugins/shiroverb/gen~.shiroverb.maxpat
File diff suppressed because it is too large
View File


+ 859
- 839
plugins/shiroverb/shiroverb.gendsp
File diff suppressed because it is too large
View File


Loading…
Cancel
Save