Browse Source

smoothing changes

pull/2/merge
nino de wit 9 years ago
parent
commit
43808a481f
5 changed files with 1981 additions and 1142 deletions
  1. +242
    -30
      plugins/modulay/modulay.gendsp
  2. +549
    -42
      plugins/modulay/modulay.maxpat
  3. +349
    -343
      plugins/shiroverb/gen_exported.cpp
  4. +413
    -356
      plugins/shiroverb/shiroverb.gendsp
  5. +428
    -371
      plugins/shiroverb/shiroverb.maxpat

+ 242
- 30
plugins/modulay/modulay.gendsp View File

@@ -8,7 +8,7 @@
"architecture" : "x86"
}
,
"rect" : [ 0.0, 45.0, 960.0, 705.0 ],
"rect" : [ 0.0, 48.0, 960.0, 705.0 ],
"bgcolor" : [ 0.9, 0.9, 0.9, 1.0 ],
"bglocked" : 0,
"openinpresentation" : 0,
@@ -29,6 +29,118 @@
"digest" : "",
"tags" : "",
"boxes" : [ {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-80",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 344.5, 617.0, 95.0, 20.0 ],
"text" : "history smth2 0."
}

}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-81",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 265.5, 587.0, 63.0, 20.0 ],
"text" : "mix 0.999"
}

}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-68",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 575.0, 161.0, 95.0, 20.0 ],
"text" : "history smth1 0."
}

}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-67",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 425.0, 161.0, 63.0, 20.0 ],
"text" : "mix 0.999"
}

}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-59",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 344.5, 457.0, 42.0, 20.0 ],
"text" : "* 0.01"
}

}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-54",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 317.5, 457.0, 28.0, 20.0 ],
"text" : "+ 5"
}

}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-51",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 317.5, 426.5, 46.0, 20.0 ],
"text" : "* -0.04"
}

}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-48",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 317.5, 482.0, 46.0, 20.0 ],
"text" : "*"
}

}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
@@ -79,7 +191,7 @@
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 197.0, 669.0, 32.5, 20.0 ],
"patching_rect" : [ 197.0, 697.0, 32.5, 20.0 ],
"text" : "*"
}

@@ -373,7 +485,7 @@
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 211.0, 639.0, 42.0, 20.0 ],
"patching_rect" : [ 211.0, 667.0, 42.0, 20.0 ],
"text" : "* 0.01"
}

@@ -541,7 +653,7 @@
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 324.5, 482.0, 35.0, 20.0 ],
"patching_rect" : [ 386.5, 482.0, 35.0, 20.0 ],
"text" : "* 0.5"
}

@@ -555,7 +667,7 @@
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 324.5, 457.0, 28.0, 20.0 ],
"patching_rect" : [ 386.5, 457.0, 28.0, 20.0 ],
"text" : "+ 1"
}

@@ -569,7 +681,7 @@
"numinlets" : 0,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 324.5, 401.0, 188.0, 20.0 ],
"patching_rect" : [ 386.5, 401.0, 188.0, 20.0 ],
"text" : "param rate 2 @min 0.1 @max 10"
}

@@ -583,7 +695,7 @@
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "", "" ],
"patching_rect" : [ 324.5, 426.5, 38.0, 20.0 ],
"patching_rect" : [ 386.5, 426.5, 38.0, 20.0 ],
"text" : "cycle"
}

@@ -597,7 +709,7 @@
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 265.5, 532.0, 65.0, 20.0 ],
"patching_rect" : [ 265.5, 532.0, 71.0, 20.0 ],
"text" : "+"
}

@@ -611,7 +723,7 @@
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 311.5, 507.0, 32.5, 20.0 ],
"patching_rect" : [ 317.5, 507.0, 88.0, 20.0 ],
"text" : "*"
}

@@ -625,8 +737,8 @@
"numinlets" : 0,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 311.5, 376.5, 181.0, 20.0 ],
"text" : "param depth 1 @min 0 @max 5"
"patching_rect" : [ 344.5, 376.5, 201.0, 20.0 ],
"text" : "param depth 50 @min 0 @max 100"
}

}
@@ -639,7 +751,7 @@
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 141.5, 639.0, 32.5, 20.0 ],
"patching_rect" : [ 141.5, 667.0, 32.5, 20.0 ],
"text" : "*"
}

@@ -653,7 +765,7 @@
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 30.0, 639.0, 32.5, 20.0 ],
"patching_rect" : [ 30.0, 667.0, 32.5, 20.0 ],
"text" : "*"
}

@@ -667,7 +779,7 @@
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 72.0, 639.0, 32.5, 20.0 ],
"patching_rect" : [ 72.0, 667.0, 32.5, 20.0 ],
"text" : "*"
}

@@ -681,8 +793,8 @@
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 72.0, 589.0, 212.5, 20.0 ],
"text" : "delay @interp linear"
"patching_rect" : [ 72.0, 617.0, 212.5, 20.0 ],
"text" : "delay"
}

}
@@ -695,7 +807,7 @@
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 30.0, 669.0, 61.0, 20.0 ],
"patching_rect" : [ 30.0, 697.0, 61.0, 20.0 ],
"text" : "+"
}

@@ -751,7 +863,7 @@
"numinlets" : 0,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 211.0, 614.0, 196.0, 20.0 ],
"patching_rect" : [ 211.0, 642.0, 196.0, 20.0 ],
"text" : "param mix 100 @min 0 @max 100"
}

@@ -779,7 +891,7 @@
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 30.0, 699.0, 32.5, 20.0 ],
"patching_rect" : [ 30.0, 727.0, 32.5, 20.0 ],
"text" : "*"
}

@@ -793,8 +905,8 @@
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 42.0, 77.0, 116.0, 20.0 ],
"text" : "delay @interp cubic"
"patching_rect" : [ 42.0, 77.0, 39.0, 20.0 ],
"text" : "delay"
}

}
@@ -807,7 +919,7 @@
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 139.0, 52.0, 72.0, 20.0 ],
"patching_rect" : [ 178.0, 53.0, 72.0, 20.0 ],
"text" : "mstosamps"
}

@@ -834,7 +946,7 @@
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 16.0, 729.0, 37.0, 20.0 ],
"patching_rect" : [ 16.0, 757.0, 37.0, 20.0 ],
"text" : "out 1"
}

@@ -909,7 +1021,7 @@
"destination" : [ "obj-37", 1 ],
"disabled" : 0,
"hidden" : 0,
"midpoints" : [ 220.5, 663.5, 220.0, 663.5 ],
"midpoints" : [ 220.5, 691.5, 220.0, 691.5 ],
"source" : [ "obj-12", 0 ]
}

@@ -1008,7 +1120,7 @@
}
, {
"patchline" : {
"destination" : [ "obj-21", 1 ],
"destination" : [ "obj-67", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-20", 0 ]
@@ -1111,7 +1223,7 @@
"destination" : [ "obj-33", 0 ],
"disabled" : 0,
"hidden" : 0,
"midpoints" : [ 81.5, 623.5, 151.0, 623.5 ],
"midpoints" : [ 81.5, 651.5, 151.0, 651.5 ],
"source" : [ "obj-29", 0 ]
}

@@ -1157,7 +1269,7 @@
"destination" : [ "obj-27", 1 ],
"disabled" : 0,
"hidden" : 0,
"midpoints" : [ 151.0, 663.0, 525.0, 663.0, 525.0, 344.0, 393.0, 344.0, 393.0, 344.0, 54.0, 344.0 ],
"midpoints" : [ 151.0, 663.0, 585.0, 663.0, 585.0, 344.0, 393.0, 344.0, 393.0, 344.0, 54.0, 344.0 ],
"source" : [ "obj-33", 0 ]
}

@@ -1167,7 +1279,7 @@
"destination" : [ "obj-4", 0 ],
"disabled" : 0,
"hidden" : 0,
"midpoints" : [ 39.5, 723.5, 25.5, 723.5 ],
"midpoints" : [ 39.5, 751.5, 25.5, 751.5 ],
"source" : [ "obj-34", 0 ]
}

@@ -1195,7 +1307,7 @@
"destination" : [ "obj-34", 1 ],
"disabled" : 0,
"hidden" : 0,
"midpoints" : [ 206.5, 693.5, 53.0, 693.5 ],
"midpoints" : [ 206.5, 721.5, 53.0, 721.5 ],
"source" : [ "obj-37", 0 ]
}

@@ -1220,7 +1332,7 @@
}
, {
"patchline" : {
"destination" : [ "obj-29", 1 ],
"destination" : [ "obj-81", 0 ],
"disabled" : 0,
"hidden" : 0,
"midpoints" : [ 275.0, 580.0, 275.0, 580.0 ],
@@ -1288,6 +1400,15 @@
"destination" : [ "obj-52", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-48", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-59", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-49", 0 ]
}

@@ -1300,6 +1421,15 @@
"source" : [ "obj-50", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-54", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-51", 0 ]
}

}
, {
"patchline" : {
@@ -1318,6 +1448,15 @@
"source" : [ "obj-53", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-48", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-54", 0 ]
}

}
, {
"patchline" : {
@@ -1336,6 +1475,15 @@
"source" : [ "obj-58", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-48", 1 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-59", 0 ]
}

}
, {
"patchline" : {
@@ -1443,6 +1591,16 @@
"source" : [ "obj-63", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-51", 0 ],
"disabled" : 0,
"hidden" : 0,
"midpoints" : [ 53.0, 411.0, 327.0, 411.0 ],
"source" : [ "obj-63", 0 ]
}

}
, {
"patchline" : {
@@ -1452,6 +1610,33 @@
"source" : [ "obj-64", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-21", 1 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-67", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-68", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-67", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-67", 1 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-68", 0 ]
}

}
, {
"patchline" : {
@@ -1470,6 +1655,33 @@
"source" : [ "obj-8", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-81", 1 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-80", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-29", 1 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-81", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-80", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-81", 0 ]
}

}
, {
"patchline" : {


+ 549
- 42
plugins/modulay/modulay.maxpat View File

@@ -8,7 +8,7 @@
"architecture" : "x86"
}
,
"rect" : [ 64.0, 97.0, 960.0, 575.0 ],
"rect" : [ 0.0, 45.0, 960.0, 575.0 ],
"bglocked" : 0,
"openinpresentation" : 0,
"default_fontsize" : 12.0,
@@ -28,6 +28,176 @@
"digest" : "",
"tags" : "",
"boxes" : [ {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"frgb" : 0.0,
"id" : "obj-54",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 397.0, 202.0, 150.0, 20.0 ],
"text" : "mix 0 0 0.25"
}

}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"frgb" : 0.0,
"id" : "obj-44",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 497.799988, 177.0, 150.0, 20.0 ],
"text" : "depth"
}

}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-43",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "float" ],
"patching_rect" : [ 101.0, 252.0, 32.5, 20.0 ],
"text" : "- 1."
}

}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-41",
"maxclass" : "flonum",
"maximum" : 100.0,
"minimum" : 0.0,
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "float", "bang" ],
"parameter_enable" : 1,
"patching_rect" : [ 101.0, 202.0, 50.0, 20.0 ],
"saved_attribute_attributes" : {
"valueof" : {
"parameter_longname" : "flonum[3]",
"parameter_shortname" : "flonum",
"parameter_type" : 3,
"parameter_initial_enable" : 1,
"parameter_initial" : [ 30 ],
"parameter_invisible" : 1
}

}
,
"varname" : "flonum[3]"
}

}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-42",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 101.0, 227.0, 124.0, 20.0 ],
"text" : "expr pow(1.0233\\,$f1)"
}

}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-40",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "float" ],
"patching_rect" : [ 31.0, 202.0, 32.5, 20.0 ],
"text" : "- 1."
}

}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-39",
"maxclass" : "flonum",
"maximum" : 100.0,
"minimum" : 0.0,
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "float", "bang" ],
"parameter_enable" : 1,
"patching_rect" : [ 31.0, 152.0, 50.0, 20.0 ],
"saved_attribute_attributes" : {
"valueof" : {
"parameter_longname" : "flonum",
"parameter_shortname" : "flonum",
"parameter_type" : 3,
"parameter_initial_enable" : 1,
"parameter_initial" : [ 70 ],
"parameter_invisible" : 1
}

}
,
"varname" : "flonum"
}

}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-37",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 31.0, 177.0, 124.0, 20.0 ],
"text" : "expr pow(1.0471\\,$f1)"
}

}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"frgb" : 0.0,
"id" : "obj-36",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 397.0, 177.0, 150.0, 20.0 ],
"text" : "mix"
}

}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"frgb" : 0.0,
"id" : "obj-24",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 497.799988, 202.0, 150.0, 20.0 ],
"text" : "5 3 1"
}

}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
@@ -52,8 +222,21 @@
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "float", "bang" ],
"parameter_enable" : 0,
"patching_rect" : [ 171.0, 99.0, 50.0, 20.0 ]
"parameter_enable" : 1,
"patching_rect" : [ 171.0, 99.0, 50.0, 20.0 ],
"saved_attribute_attributes" : {
"valueof" : {
"parameter_longname" : "flonum[1]",
"parameter_shortname" : "flonum[1]",
"parameter_type" : 3,
"parameter_initial_enable" : 1,
"parameter_initial" : [ 50 ],
"parameter_invisible" : 1
}

}
,
"varname" : "flonum[1]"
}

}
@@ -139,8 +322,20 @@
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "float", "bang" ],
"parameter_enable" : 0,
"patching_rect" : [ 156.0, 46.0, 50.0, 20.0 ]
"parameter_enable" : 1,
"patching_rect" : [ 156.0, 46.0, 50.0, 20.0 ],
"saved_attribute_attributes" : {
"valueof" : {
"parameter_longname" : "flonum[6]",
"parameter_shortname" : "flonum[6]",
"parameter_type" : 3,
"parameter_initial" : [ 2500 ],
"parameter_invisible" : 1
}

}
,
"varname" : "flonum[6]"
}

}
@@ -150,7 +345,7 @@
"fontsize" : 12.0,
"id" : "obj-11",
"maxclass" : "flonum",
"maximum" : 5.0,
"maximum" : 100.0,
"minimum" : 0.0,
"numinlets" : 1,
"numoutlets" : 2,
@@ -171,8 +366,21 @@
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "float", "bang" ],
"parameter_enable" : 0,
"patching_rect" : [ 101.0, 99.0, 50.0, 20.0 ]
"parameter_enable" : 1,
"patching_rect" : [ 101.0, 99.0, 50.0, 20.0 ],
"saved_attribute_attributes" : {
"valueof" : {
"parameter_longname" : "flonum[2]",
"parameter_shortname" : "flonum[2]",
"parameter_type" : 3,
"parameter_initial_enable" : 1,
"parameter_initial" : [ 1.0 ],
"parameter_invisible" : 1
}

}
,
"varname" : "flonum[2]"
}

}
@@ -215,8 +423,21 @@
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "float", "bang" ],
"parameter_enable" : 0,
"patching_rect" : [ 16.0, 46.0, 50.0, 20.0 ]
"parameter_enable" : 1,
"patching_rect" : [ 16.0, 46.0, 50.0, 20.0 ],
"saved_attribute_attributes" : {
"valueof" : {
"parameter_longname" : "flonum[5]",
"parameter_shortname" : "flonum[5]",
"parameter_type" : 3,
"parameter_initial_enable" : 1,
"parameter_initial" : [ 500.0 ],
"parameter_invisible" : 1
}

}
,
"varname" : "flonum[5]"
}

}
@@ -231,8 +452,21 @@
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "float", "bang" ],
"parameter_enable" : 0,
"patching_rect" : [ 76.0, 46.0, 50.0, 20.0 ]
"parameter_enable" : 1,
"patching_rect" : [ 76.0, 46.0, 50.0, 20.0 ],
"saved_attribute_attributes" : {
"valueof" : {
"parameter_longname" : "flonum[4]",
"parameter_shortname" : "flonum[4]",
"parameter_type" : 3,
"parameter_initial_enable" : 1,
"parameter_initial" : [ 50.0 ],
"parameter_invisible" : 1
}

}
,
"varname" : "flonum[4]"
}

}
@@ -347,7 +581,7 @@
"architecture" : "x86"
}
,
"rect" : [ 0.0, 45.0, 960.0, 705.0 ],
"rect" : [ 0.0, 48.0, 960.0, 705.0 ],
"bgcolor" : [ 0.9, 0.9, 0.9, 1.0 ],
"bglocked" : 0,
"openinpresentation" : 0,
@@ -368,6 +602,118 @@
"digest" : "",
"tags" : "",
"boxes" : [ {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-80",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 344.5, 617.0, 95.0, 20.0 ],
"text" : "history smth2 0."
}

}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-81",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 265.5, 587.0, 63.0, 20.0 ],
"text" : "mix 0.999"
}

}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-68",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 575.0, 161.0, 95.0, 20.0 ],
"text" : "history smth1 0."
}

}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-67",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 425.0, 161.0, 63.0, 20.0 ],
"text" : "mix 0.999"
}

}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-59",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 344.5, 457.0, 42.0, 20.0 ],
"text" : "* 0.01"
}

}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-54",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 317.5, 457.0, 28.0, 20.0 ],
"text" : "+ 5"
}

}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-51",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 317.5, 426.5, 46.0, 20.0 ],
"text" : "* -0.04"
}

}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-48",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 317.5, 482.0, 46.0, 20.0 ],
"text" : "*"
}

}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
@@ -418,7 +764,7 @@
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 197.0, 669.0, 32.5, 20.0 ],
"patching_rect" : [ 197.0, 697.0, 32.5, 20.0 ],
"text" : "*"
}

@@ -712,7 +1058,7 @@
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 211.0, 639.0, 42.0, 20.0 ],
"patching_rect" : [ 211.0, 667.0, 42.0, 20.0 ],
"text" : "* 0.01"
}

@@ -880,7 +1226,7 @@
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 324.5, 482.0, 35.0, 20.0 ],
"patching_rect" : [ 386.5, 482.0, 35.0, 20.0 ],
"text" : "* 0.5"
}

@@ -894,7 +1240,7 @@
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 324.5, 457.0, 28.0, 20.0 ],
"patching_rect" : [ 386.5, 457.0, 28.0, 20.0 ],
"text" : "+ 1"
}

@@ -908,7 +1254,7 @@
"numinlets" : 0,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 324.5, 401.0, 188.0, 20.0 ],
"patching_rect" : [ 386.5, 401.0, 188.0, 20.0 ],
"text" : "param rate 2 @min 0.1 @max 10"
}

@@ -922,7 +1268,7 @@
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "", "" ],
"patching_rect" : [ 324.5, 426.5, 38.0, 20.0 ],
"patching_rect" : [ 386.5, 426.5, 38.0, 20.0 ],
"text" : "cycle"
}

@@ -936,7 +1282,7 @@
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 265.5, 532.0, 65.0, 20.0 ],
"patching_rect" : [ 265.5, 532.0, 71.0, 20.0 ],
"text" : "+"
}

@@ -950,7 +1296,7 @@
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 311.5, 507.0, 32.5, 20.0 ],
"patching_rect" : [ 317.5, 507.0, 88.0, 20.0 ],
"text" : "*"
}

@@ -964,8 +1310,8 @@
"numinlets" : 0,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 311.5, 376.5, 181.0, 20.0 ],
"text" : "param depth 1 @min 0 @max 5"
"patching_rect" : [ 344.5, 376.5, 201.0, 20.0 ],
"text" : "param depth 50 @min 0 @max 100"
}

}
@@ -978,7 +1324,7 @@
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 141.5, 639.0, 32.5, 20.0 ],
"patching_rect" : [ 141.5, 667.0, 32.5, 20.0 ],
"text" : "*"
}

@@ -992,7 +1338,7 @@
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 30.0, 639.0, 32.5, 20.0 ],
"patching_rect" : [ 30.0, 667.0, 32.5, 20.0 ],
"text" : "*"
}

@@ -1006,7 +1352,7 @@
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 72.0, 639.0, 32.5, 20.0 ],
"patching_rect" : [ 72.0, 667.0, 32.5, 20.0 ],
"text" : "*"
}

@@ -1020,8 +1366,8 @@
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 72.0, 589.0, 212.5, 20.0 ],
"text" : "delay @interp linear"
"patching_rect" : [ 72.0, 617.0, 212.5, 20.0 ],
"text" : "delay"
}

}
@@ -1034,7 +1380,7 @@
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 30.0, 669.0, 61.0, 20.0 ],
"patching_rect" : [ 30.0, 697.0, 61.0, 20.0 ],
"text" : "+"
}

@@ -1090,7 +1436,7 @@
"numinlets" : 0,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 211.0, 614.0, 196.0, 20.0 ],
"patching_rect" : [ 211.0, 642.0, 196.0, 20.0 ],
"text" : "param mix 100 @min 0 @max 100"
}

@@ -1118,7 +1464,7 @@
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 30.0, 699.0, 32.5, 20.0 ],
"patching_rect" : [ 30.0, 727.0, 32.5, 20.0 ],
"text" : "*"
}

@@ -1132,8 +1478,8 @@
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 42.0, 77.0, 116.0, 20.0 ],
"text" : "delay @interp cubic"
"patching_rect" : [ 42.0, 77.0, 39.0, 20.0 ],
"text" : "delay"
}

}
@@ -1146,7 +1492,7 @@
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 139.0, 52.0, 72.0, 20.0 ],
"patching_rect" : [ 178.0, 53.0, 72.0, 20.0 ],
"text" : "mstosamps"
}

@@ -1173,7 +1519,7 @@
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 16.0, 729.0, 37.0, 20.0 ],
"patching_rect" : [ 16.0, 757.0, 37.0, 20.0 ],
"text" : "out 1"
}

@@ -1248,7 +1594,7 @@
"destination" : [ "obj-37", 1 ],
"disabled" : 0,
"hidden" : 0,
"midpoints" : [ 220.5, 663.5, 220.0, 663.5 ],
"midpoints" : [ 220.5, 691.5, 220.0, 691.5 ],
"source" : [ "obj-12", 0 ]
}

@@ -1347,7 +1693,7 @@
}
, {
"patchline" : {
"destination" : [ "obj-21", 1 ],
"destination" : [ "obj-67", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-20", 0 ]
@@ -1450,7 +1796,7 @@
"destination" : [ "obj-33", 0 ],
"disabled" : 0,
"hidden" : 0,
"midpoints" : [ 81.5, 623.5, 151.0, 623.5 ],
"midpoints" : [ 81.5, 651.5, 151.0, 651.5 ],
"source" : [ "obj-29", 0 ]
}

@@ -1496,7 +1842,7 @@
"destination" : [ "obj-27", 1 ],
"disabled" : 0,
"hidden" : 0,
"midpoints" : [ 151.0, 663.0, 525.0, 663.0, 525.0, 344.0, 393.0, 344.0, 393.0, 344.0, 54.0, 344.0 ],
"midpoints" : [ 151.0, 663.0, 585.0, 663.0, 585.0, 344.0, 393.0, 344.0, 393.0, 344.0, 54.0, 344.0 ],
"source" : [ "obj-33", 0 ]
}

@@ -1506,7 +1852,7 @@
"destination" : [ "obj-4", 0 ],
"disabled" : 0,
"hidden" : 0,
"midpoints" : [ 39.5, 723.5, 25.5, 723.5 ],
"midpoints" : [ 39.5, 751.5, 25.5, 751.5 ],
"source" : [ "obj-34", 0 ]
}

@@ -1534,7 +1880,7 @@
"destination" : [ "obj-34", 1 ],
"disabled" : 0,
"hidden" : 0,
"midpoints" : [ 206.5, 693.5, 53.0, 693.5 ],
"midpoints" : [ 206.5, 721.5, 53.0, 721.5 ],
"source" : [ "obj-37", 0 ]
}

@@ -1559,7 +1905,7 @@
}
, {
"patchline" : {
"destination" : [ "obj-29", 1 ],
"destination" : [ "obj-81", 0 ],
"disabled" : 0,
"hidden" : 0,
"midpoints" : [ 275.0, 580.0, 275.0, 580.0 ],
@@ -1627,6 +1973,15 @@
"destination" : [ "obj-52", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-48", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-59", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-49", 0 ]
}

@@ -1639,6 +1994,15 @@
"source" : [ "obj-50", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-54", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-51", 0 ]
}

}
, {
"patchline" : {
@@ -1657,6 +2021,15 @@
"source" : [ "obj-53", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-48", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-54", 0 ]
}

}
, {
"patchline" : {
@@ -1675,6 +2048,15 @@
"source" : [ "obj-58", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-48", 1 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-59", 0 ]
}

}
, {
"patchline" : {
@@ -1782,6 +2164,16 @@
"source" : [ "obj-63", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-51", 0 ],
"disabled" : 0,
"hidden" : 0,
"midpoints" : [ 53.0, 411.0, 327.0, 411.0 ],
"source" : [ "obj-63", 0 ]
}

}
, {
"patchline" : {
@@ -1791,6 +2183,33 @@
"source" : [ "obj-64", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-21", 1 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-67", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-68", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-67", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-67", 1 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-68", 0 ]
}

}
, {
"patchline" : {
@@ -1809,6 +2228,33 @@
"source" : [ "obj-8", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-81", 1 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-80", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-29", 1 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-81", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-80", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-81", 0 ]
}

}
, {
"patchline" : {
@@ -1982,6 +2428,24 @@
"source" : [ "obj-32", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-40", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-37", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-37", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-39", 0 ]
}

}
, {
"patchline" : {
@@ -2000,6 +2464,42 @@
"source" : [ "obj-4", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-11", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-40", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-42", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-41", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-43", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-42", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-13", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-43", 0 ]
}

}
, {
"patchline" : {
@@ -2012,8 +2512,15 @@
}
],
"parameters" : {
"obj-13" : [ "flonum[2]", "flonum[2]", 0 ],
"obj-8::obj-32" : [ "[8]", "[2]", 0 ],
"obj-25" : [ "flonum[5]", "flonum[5]", 0 ],
"obj-41" : [ "flonum[3]", "flonum", 0 ],
"obj-30" : [ "flonum[6]", "flonum[6]", 0 ],
"obj-8::obj-21::obj-6" : [ "live.tab[3]", "live.tab[1]", 0 ],
"obj-20" : [ "flonum[4]", "flonum[4]", 0 ],
"obj-39" : [ "flonum", "flonum", 0 ],
"obj-101" : [ "flonum[1]", "flonum[1]", 0 ],
"obj-8::obj-35" : [ "[5]", "Level", 0 ]
}
,


+ 349
- 343
plugins/shiroverb/gen_exported.cpp View File

@@ -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;


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


+ 428
- 371
plugins/shiroverb/shiroverb.maxpat
File diff suppressed because it is too large
View File


Loading…
Cancel
Save