diff --git a/plugins/modulay/gen_exported.cpp b/plugins/modulay/gen_exported.cpp index 404b05a..6b9c7ae 100644 --- a/plugins/modulay/gen_exported.cpp +++ b/plugins/modulay/gen_exported.cpp @@ -35,18 +35,18 @@ typedef struct State { Delay m_delay_3; SineCycle m_cycle_14; SineData __sinedata; - double m_bleed_9; - double m_rate_11; - double m_time_12; - double m_cutoff_10; + double m_feedforward_9; + double m_mix_11; + double m_depth_12; + double m_time_10; double m_feedback_13; double m_repeats_8; - double m_depth_6; - double m_mix_5; - double m_feedforward_7; + double m_bleed_6; + double m_delay_5; + double m_cutoff_7; double m_y_1; double samplerate; - double m_delay_4; + double m_rate_4; int vectorsize; int __exception; // re-initialize all member variables; @@ -57,15 +57,15 @@ typedef struct State { m_y_1 = 0; m_delay_2.reset("m_delay_2", 44100); m_delay_3.reset("m_delay_3", 44100); - m_delay_4 = 0; - m_mix_5 = 1; - m_depth_6 = 0; - m_feedforward_7 = 1; - m_repeats_8 = 0.75; - m_bleed_9 = 0; - m_cutoff_10 = 4000; - m_rate_11 = 2; - m_time_12 = 500; + m_rate_4 = 2; + m_delay_5 = 0; + m_bleed_6 = 0; + m_cutoff_7 = 3000; + m_repeats_8 = 75; + m_feedforward_9 = 100; + m_time_10 = 500; + m_mix_11 = 100; + m_depth_12 = 1; m_feedback_13 = 0; m_cycle_14.reset(samplerate, 0); genlib_reset_complete(this); @@ -84,37 +84,42 @@ typedef struct State { return __exception; }; - double mstosamps_4908 = (m_time_12 * (samplerate * 0.001)); - double expr_4909 = safediv(((m_cutoff_10 * 2) * 3.1415926535898), 44100); - double sin_4889 = sin(expr_4909); - double clamp_4890 = ((sin_4889 <= 1e-05) ? 1e-05 : ((sin_4889 >= 0.99999) ? 0.99999 : sin_4889)); + double mul_164 = (m_mix_11 * 0.01); + double mstosamps_191 = (m_time_10 * (samplerate * 0.001)); + double mul_166 = (m_bleed_6 * 0.01); + double mul_165 = (m_feedforward_9 * 0.01); + double mul_168 = (m_repeats_8 * 0.01); + double expr_192 = safediv(((m_cutoff_7 * 2) * 3.1415926535898), 44100); + double sin_172 = sin(expr_192); + double clamp_173 = ((sin_172 <= 1e-05) ? 1e-05 : ((sin_172 >= 0.99999) ? 0.99999 : sin_172)); + double mul_167 = (m_feedback_13 * 0.01); // the main sample loop; while ((__n--)) { const double in1 = (*(__in1++)); - double tap_4907 = m_delay_3.read_linear(mstosamps_4908); - double mix_4936 = (m_y_1 + (clamp_4890 * (tap_4907 - m_y_1))); - double mix_4887 = mix_4936; - double mul_4904 = (mix_4887 * m_repeats_8); - m_cycle_14.freq(m_rate_11); - double cycle_4893 = m_cycle_14(__sinedata); - double cycleindex_4894 = m_cycle_14.phase(); - double add_4892 = (cycle_4893 + 1); - double mul_4891 = (add_4892 * 0.5); - double mul_4896 = (m_depth_6 * mul_4891); - double add_4895 = (m_delay_4 + mul_4896); - double mstosamps_4886 = (add_4895 * (samplerate * 0.001)); - double tap_4901 = m_delay_2.read_linear(mstosamps_4886); - double mul_4899 = (tap_4901 * m_feedforward_7); - double mul_4897 = (tap_4901 * m_feedback_13); - double add_4903 = (mix_4887 + mul_4897); - double mul_4898 = (add_4903 * m_bleed_9); - double add_4902 = (mul_4898 + mul_4899); - double mul_4905 = (add_4902 * m_mix_5); - double out1 = (mul_4905 + in1); - double y0_next_4910 = mix_4887; - m_delay_3.write((mul_4904 + in1)); - m_delay_2.write(add_4903); - m_y_1 = y0_next_4910; + double tap_190 = m_delay_3.read_linear(mstosamps_191); + double mix_196 = (m_y_1 + (clamp_173 * (tap_190 - m_y_1))); + double mix_170 = mix_196; + double mul_187 = (mix_170 * mul_168); + m_cycle_14.freq(m_rate_4); + double cycle_176 = m_cycle_14(__sinedata); + double cycleindex_177 = m_cycle_14.phase(); + double add_175 = (cycle_176 + 1); + double mul_174 = (add_175 * 0.5); + double mul_179 = (m_depth_12 * mul_174); + double add_178 = (m_delay_5 + mul_179); + double mstosamps_169 = (add_178 * (samplerate * 0.001)); + double tap_184 = m_delay_2.read_linear(mstosamps_169); + double mul_182 = (tap_184 * mul_165); + double mul_180 = (tap_184 * mul_167); + double add_186 = (mix_170 + mul_180); + double mul_181 = (add_186 * mul_166); + double add_185 = (mul_181 + mul_182); + double mul_188 = (add_185 * mul_164); + double out1 = (mul_188 + in1); + double y0_next_193 = mix_170; + m_delay_3.write((mul_187 + in1)); + m_delay_2.write(add_186); + m_y_1 = y0_next_193; m_delay_2.step(); m_delay_3.step(); // assign results to output buffer; @@ -124,35 +129,35 @@ typedef struct State { return __exception; }; - inline void set_delay(double _value) { - m_delay_4 = (_value < 0 ? 0 : (_value > 30 ? 30 : _value)); + inline void set_rate(double _value) { + m_rate_4 = (_value < 0.1 ? 0.1 : (_value > 10 ? 10 : _value)); }; - inline void set_mix(double _value) { - m_mix_5 = (_value < 0 ? 0 : (_value > 1 ? 1 : _value)); + inline void set_delay(double _value) { + m_delay_5 = (_value < 0 ? 0 : (_value > 30 ? 30 : _value)); }; - inline void set_depth(double _value) { - m_depth_6 = (_value < 0 ? 0 : (_value > 5 ? 5 : _value)); + inline void set_bleed(double _value) { + m_bleed_6 = (_value < 0 ? 0 : (_value > 70 ? 70 : _value)); }; - inline void set_feedforward(double _value) { - m_feedforward_7 = (_value < 0.7 ? 0.7 : (_value > 1 ? 1 : _value)); + inline void set_cutoff(double _value) { + m_cutoff_7 = (_value < 0 ? 0 : (_value > 6000 ? 6000 : _value)); }; inline void set_repeats(double _value) { - m_repeats_8 = (_value < 0 ? 0 : (_value > 0.99 ? 0.99 : _value)); + m_repeats_8 = (_value < 0 ? 0 : (_value > 100 ? 100 : _value)); }; - inline void set_bleed(double _value) { - m_bleed_9 = (_value < 0 ? 0 : (_value > 0.7 ? 0.7 : _value)); + inline void set_feedforward(double _value) { + m_feedforward_9 = (_value < 70 ? 70 : (_value > 100 ? 100 : _value)); }; - inline void set_cutoff(double _value) { - m_cutoff_10 = (_value < 0 ? 0 : (_value > 6000 ? 6000 : _value)); + inline void set_time(double _value) { + m_time_10 = (_value < 10 ? 10 : (_value > 1000 ? 1000 : _value)); }; - inline void set_rate(double _value) { - m_rate_11 = (_value < 0.1 ? 0.1 : (_value > 10 ? 10 : _value)); + inline void set_mix(double _value) { + m_mix_11 = (_value < 0 ? 0 : (_value > 100 ? 100 : _value)); }; - inline void set_time(double _value) { - m_time_12 = (_value < 10 ? 10 : (_value > 1000 ? 1000 : _value)); + inline void set_depth(double _value) { + m_depth_12 = (_value < 0 ? 0 : (_value > 5 ? 5 : _value)); }; inline void set_feedback(double _value) { - m_feedback_13 = (_value < -0.7 ? -0.7 : (_value > 0.7 ? 0.7 : _value)); + m_feedback_13 = (_value < -70 ? -70 : (_value > 70 ? 70 : _value)); }; } State; @@ -195,15 +200,15 @@ void reset(CommonState *cself) { void setparameter(CommonState *cself, long index, double value, void *ref) { State * self = (State *)cself; switch (index) { - case 0: self->set_delay(value); break; - case 1: self->set_mix(value); break; - case 2: self->set_depth(value); break; - case 3: self->set_feedforward(value); break; + case 0: self->set_rate(value); break; + case 1: self->set_delay(value); break; + case 2: self->set_bleed(value); break; + case 3: self->set_cutoff(value); break; case 4: self->set_repeats(value); break; - case 5: self->set_bleed(value); break; - case 6: self->set_cutoff(value); break; - case 7: self->set_rate(value); break; - case 8: self->set_time(value); break; + case 5: self->set_feedforward(value); break; + case 6: self->set_time(value); break; + case 7: self->set_mix(value); break; + case 8: self->set_depth(value); break; case 9: self->set_feedback(value); break; default: break; @@ -215,15 +220,15 @@ 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_delay_4; break; - case 1: *value = self->m_mix_5; break; - case 2: *value = self->m_depth_6; break; - case 3: *value = self->m_feedforward_7; break; + case 0: *value = self->m_rate_4; break; + case 1: *value = self->m_delay_5; break; + case 2: *value = self->m_bleed_6; break; + case 3: *value = self->m_cutoff_7; break; case 4: *value = self->m_repeats_8; break; - case 5: *value = self->m_bleed_9; break; - case 6: *value = self->m_cutoff_10; break; - case 7: *value = self->m_rate_11; break; - case 8: *value = self->m_time_12; break; + case 5: *value = self->m_feedforward_9; break; + case 6: *value = self->m_time_10; break; + case 7: *value = self->m_mix_11; break; + case 8: *value = self->m_depth_12; break; case 9: *value = self->m_feedback_13; break; default: break; @@ -244,60 +249,60 @@ void * create(double sr, long vs) { self->__commonstate.vs = vs; self->__commonstate.params = (ParamInfo *)genlib_sysmem_newptr(10 * sizeof(ParamInfo)); self->__commonstate.numparams = 10; - // initialize parameter 0 ("m_delay_4") + // initialize parameter 0 ("m_rate_4") pi = self->__commonstate.params + 0; - pi->name = "delay"; + pi->name = "rate"; pi->paramtype = GENLIB_PARAMTYPE_FLOAT; - pi->defaultvalue = self->m_delay_4; + pi->defaultvalue = self->m_rate_4; pi->defaultref = 0; pi->hasinputminmax = false; pi->inputmin = 0; pi->inputmax = 1; pi->hasminmax = true; - pi->outputmin = 0; - pi->outputmax = 30; + pi->outputmin = 0.1; + pi->outputmax = 10; pi->exp = 0; pi->units = ""; // no units defined - // initialize parameter 1 ("m_mix_5") + // initialize parameter 1 ("m_delay_5") pi = self->__commonstate.params + 1; - pi->name = "mix"; + pi->name = "delay"; pi->paramtype = GENLIB_PARAMTYPE_FLOAT; - pi->defaultvalue = self->m_mix_5; + pi->defaultvalue = self->m_delay_5; pi->defaultref = 0; pi->hasinputminmax = false; pi->inputmin = 0; pi->inputmax = 1; pi->hasminmax = true; pi->outputmin = 0; - pi->outputmax = 1; + pi->outputmax = 30; pi->exp = 0; pi->units = ""; // no units defined - // initialize parameter 2 ("m_depth_6") + // initialize parameter 2 ("m_bleed_6") pi = self->__commonstate.params + 2; - pi->name = "depth"; + pi->name = "bleed"; pi->paramtype = GENLIB_PARAMTYPE_FLOAT; - pi->defaultvalue = self->m_depth_6; + pi->defaultvalue = self->m_bleed_6; pi->defaultref = 0; pi->hasinputminmax = false; pi->inputmin = 0; pi->inputmax = 1; pi->hasminmax = true; pi->outputmin = 0; - pi->outputmax = 5; + pi->outputmax = 70; pi->exp = 0; pi->units = ""; // no units defined - // initialize parameter 3 ("m_feedforward_7") + // initialize parameter 3 ("m_cutoff_7") pi = self->__commonstate.params + 3; - pi->name = "feedforward"; + pi->name = "cutoff"; pi->paramtype = GENLIB_PARAMTYPE_FLOAT; - pi->defaultvalue = self->m_feedforward_7; + pi->defaultvalue = self->m_cutoff_7; pi->defaultref = 0; pi->hasinputminmax = false; pi->inputmin = 0; pi->inputmax = 1; pi->hasminmax = true; - pi->outputmin = 0.7; - pi->outputmax = 1; + pi->outputmin = 0; + pi->outputmax = 6000; pi->exp = 0; pi->units = ""; // no units defined // initialize parameter 4 ("m_repeats_8") @@ -311,63 +316,63 @@ void * create(double sr, long vs) { pi->inputmax = 1; pi->hasminmax = true; pi->outputmin = 0; - pi->outputmax = 0.99; + pi->outputmax = 100; pi->exp = 0; pi->units = ""; // no units defined - // initialize parameter 5 ("m_bleed_9") + // initialize parameter 5 ("m_feedforward_9") pi = self->__commonstate.params + 5; - pi->name = "bleed"; + pi->name = "feedforward"; pi->paramtype = GENLIB_PARAMTYPE_FLOAT; - pi->defaultvalue = self->m_bleed_9; + pi->defaultvalue = self->m_feedforward_9; pi->defaultref = 0; pi->hasinputminmax = false; pi->inputmin = 0; pi->inputmax = 1; pi->hasminmax = true; - pi->outputmin = 0; - pi->outputmax = 0.7; + pi->outputmin = 70; + pi->outputmax = 100; pi->exp = 0; pi->units = ""; // no units defined - // initialize parameter 6 ("m_cutoff_10") + // initialize parameter 6 ("m_time_10") pi = self->__commonstate.params + 6; - pi->name = "cutoff"; + pi->name = "time"; pi->paramtype = GENLIB_PARAMTYPE_FLOAT; - pi->defaultvalue = self->m_cutoff_10; + pi->defaultvalue = self->m_time_10; pi->defaultref = 0; pi->hasinputminmax = false; pi->inputmin = 0; pi->inputmax = 1; pi->hasminmax = true; - pi->outputmin = 0; - pi->outputmax = 6000; + pi->outputmin = 10; + pi->outputmax = 1000; pi->exp = 0; pi->units = ""; // no units defined - // initialize parameter 7 ("m_rate_11") + // initialize parameter 7 ("m_mix_11") pi = self->__commonstate.params + 7; - pi->name = "rate"; + pi->name = "mix"; pi->paramtype = GENLIB_PARAMTYPE_FLOAT; - pi->defaultvalue = self->m_rate_11; + pi->defaultvalue = self->m_mix_11; pi->defaultref = 0; pi->hasinputminmax = false; pi->inputmin = 0; pi->inputmax = 1; pi->hasminmax = true; - pi->outputmin = 0.1; - pi->outputmax = 10; + pi->outputmin = 0; + pi->outputmax = 100; pi->exp = 0; pi->units = ""; // no units defined - // initialize parameter 8 ("m_time_12") + // initialize parameter 8 ("m_depth_12") pi = self->__commonstate.params + 8; - pi->name = "time"; + pi->name = "depth"; pi->paramtype = GENLIB_PARAMTYPE_FLOAT; - pi->defaultvalue = self->m_time_12; + pi->defaultvalue = self->m_depth_12; pi->defaultref = 0; pi->hasinputminmax = false; pi->inputmin = 0; pi->inputmax = 1; pi->hasminmax = true; - pi->outputmin = 10; - pi->outputmax = 1000; + pi->outputmin = 0; + pi->outputmax = 5; pi->exp = 0; pi->units = ""; // no units defined // initialize parameter 9 ("m_feedback_13") @@ -380,8 +385,8 @@ void * create(double sr, long vs) { pi->inputmin = 0; pi->inputmax = 1; pi->hasminmax = true; - pi->outputmin = -0.7; - pi->outputmax = 0.7; + pi->outputmin = -70; + pi->outputmax = 70; pi->exp = 0; pi->units = ""; // no units defined diff --git a/plugins/modulay/modulay.gendsp b/plugins/modulay/modulay.gendsp index 81ffdda..f37d424 100644 --- a/plugins/modulay/modulay.gendsp +++ b/plugins/modulay/modulay.gendsp @@ -29,6 +29,76 @@ "digest" : "", "tags" : "", "boxes" : [ { + "box" : { + "fontname" : "Arial", + "fontsize" : 12.0, + "id" : "obj-12", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 108.0, 682.0, 42.0, 20.0 ], + "text" : "* 0.01" + } + + } +, { + "box" : { + "fontname" : "Arial", + "fontsize" : 12.0, + "id" : "obj-10", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 89.5, 632.0, 42.0, 20.0 ], + "text" : "* 0.01" + } + + } +, { + "box" : { + "fontname" : "Arial", + "fontsize" : 12.0, + "id" : "obj-9", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 43.5, 607.0, 42.0, 20.0 ], + "text" : "* 0.01" + } + + } +, { + "box" : { + "fontname" : "Arial", + "fontsize" : 12.0, + "id" : "obj-8", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 168.5, 517.0, 42.0, 20.0 ], + "text" : "* 0.01" + } + + } +, { + "box" : { + "fontname" : "Arial", + "fontsize" : 12.0, + "id" : "obj-7", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 103.0, 217.0, 42.0, 20.0 ], + "text" : "* 0.01" + } + + } +, { "box" : { "fontname" : "Arial", "fontsize" : 12.0, @@ -122,7 +192,7 @@ "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 57.5, 92.0, 220.0, 20.0 ], - "text" : "param cutoff 4000 @min 0 @max 6000" + "text" : "param cutoff 3000 @min 0 @max 6000" } } @@ -220,7 +290,7 @@ "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 134.5, 317.0, 181.0, 20.0 ], - "text" : "param depth 0 @min 0 @max 5" + "text" : "param depth 1 @min 0 @max 5" } } @@ -233,7 +303,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 121.0, 547.0, 32.5, 20.0 ], + "patching_rect" : [ 155.0, 547.0, 32.5, 20.0 ], "text" : "*" } @@ -261,7 +331,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 76.0, 632.0, 32.5, 20.0 ], + "patching_rect" : [ 76.0, 657.0, 32.5, 20.0 ], "text" : "*" } @@ -289,7 +359,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 30.0, 657.0, 65.0, 20.0 ], + "patching_rect" : [ 30.0, 682.0, 65.0, 20.0 ], "text" : "+" } @@ -317,8 +387,8 @@ "numinlets" : 0, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 134.5, 517.0, 224.0, 20.0 ], - "text" : "param feedback 0 @min -0.7 @max 0.7" + "patching_rect" : [ 168.5, 492.0, 217.0, 20.0 ], + "text" : "param feedback 0 @min -70 @max 70" } } @@ -331,8 +401,8 @@ "numinlets" : 0, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 43.5, 582.0, 190.0, 20.0 ], - "text" : "param bleed 0 @min 0 @max 0.7" + "patching_rect" : [ 43.5, 582.0, 187.0, 20.0 ], + "text" : "param bleed 0 @min 0 @max 70" } } @@ -359,8 +429,8 @@ "numinlets" : 0, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 89.5, 607.0, 224.0, 20.0 ], - "text" : "param feedforward 1 @min 0.7 @max 1" + "patching_rect" : [ 89.5, 607.0, 248.0, 20.0 ], + "text" : "param feedforward 100 @min 70 @max 100" } } @@ -373,8 +443,8 @@ "numinlets" : 0, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 96.5, 217.0, 224.0, 20.0 ], - "text" : "param repeats 0.75 @min 0 @max 0.99" + "patching_rect" : [ 103.0, 192.0, 211.0, 20.0 ], + "text" : "param repeats 75 @min 0 @max 100" } } @@ -387,7 +457,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 83.0, 247.0, 32.5, 20.0 ], + "patching_rect" : [ 89.0, 247.0, 32.5, 20.0 ], "text" : "*" } @@ -401,8 +471,8 @@ "numinlets" : 0, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 43.5, 682.0, 170.0, 20.0 ], - "text" : "param mix 1 @min 0 @max 1" + "patching_rect" : [ 108.0, 657.0, 196.0, 20.0 ], + "text" : "param mix 100 @min 0 @max 100" } } @@ -429,7 +499,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 30.0, 707.0, 32.5, 20.0 ], + "patching_rect" : [ 30.0, 711.0, 32.5, 20.0 ], "text" : "*" } @@ -484,7 +554,7 @@ "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 16.0, 737.0, 37.0, 20.0 ], + "patching_rect" : [ 16.0, 741.0, 37.0, 20.0 ], "text" : "out 1" } @@ -508,6 +578,15 @@ "source" : [ "obj-1", 0 ] } + } +, { + "patchline" : { + "destination" : [ "obj-30", 1 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-10", 0 ] + } + } , { "patchline" : { @@ -517,6 +596,16 @@ "source" : [ "obj-11", 0 ] } + } +, { + "patchline" : { + "destination" : [ "obj-34", 1 ], + "disabled" : 0, + "hidden" : 0, + "midpoints" : [ 117.5, 706.0, 53.0, 706.0 ], + "source" : [ "obj-12", 0 ] + } + } , { "patchline" : { @@ -542,7 +631,7 @@ "destination" : [ "obj-43", 0 ], "disabled" : 0, "hidden" : 0, - "midpoints" : [ 40.0, 241.5, 92.5, 241.5 ], + "midpoints" : [ 40.0, 241.5, 98.5, 241.5 ], "source" : [ "obj-15", 0 ] } @@ -558,7 +647,7 @@ } , { "patchline" : { - "destination" : [ "obj-30", 1 ], + "destination" : [ "obj-10", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-2", 0 ] @@ -633,7 +722,7 @@ "destination" : [ "obj-33", 0 ], "disabled" : 0, "hidden" : 0, - "midpoints" : [ 86.5, 541.5, 130.5, 541.5 ], + "midpoints" : [ 86.5, 541.5, 164.5, 541.5 ], "source" : [ "obj-29", 0 ] } @@ -679,7 +768,7 @@ "destination" : [ "obj-27", 1 ], "disabled" : 0, "hidden" : 0, - "midpoints" : [ 130.5, 575.0, 363.0, 575.0, 363.0, 324.0, 363.0, 324.0, 363.0, 283.0, 54.0, 283.0 ], + "midpoints" : [ 164.5, 575.0, 393.0, 575.0, 393.0, 324.0, 393.0, 324.0, 393.0, 283.0, 54.0, 283.0 ], "source" : [ "obj-33", 0 ] } @@ -689,7 +778,7 @@ "destination" : [ "obj-4", 0 ], "disabled" : 0, "hidden" : 0, - "midpoints" : [ 39.5, 731.5, 25.5, 731.5 ], + "midpoints" : [ 39.5, 735.5, 25.5, 735.5 ], "source" : [ "obj-34", 0 ] } @@ -732,7 +821,7 @@ } , { "patchline" : { - "destination" : [ "obj-34", 1 ], + "destination" : [ "obj-12", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-42", 0 ] @@ -744,14 +833,14 @@ "destination" : [ "obj-21", 0 ], "disabled" : 0, "hidden" : 0, - "midpoints" : [ 92.5, 274.0, 361.25, 274.0, 361.25, 58.0, 51.5, 58.0 ], + "midpoints" : [ 98.5, 274.0, 392.25, 274.0, 392.25, 58.0, 51.5, 58.0 ], "source" : [ "obj-43", 0 ] } } , { "patchline" : { - "destination" : [ "obj-43", 1 ], + "destination" : [ "obj-7", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-44", 0 ] @@ -769,7 +858,7 @@ } , { "patchline" : { - "destination" : [ "obj-32", 1 ], + "destination" : [ "obj-9", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-5", 0 ] @@ -805,7 +894,7 @@ } , { "patchline" : { - "destination" : [ "obj-33", 1 ], + "destination" : [ "obj-8", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-6", 0 ] @@ -829,6 +918,33 @@ "source" : [ "obj-62", 0 ] } + } +, { + "patchline" : { + "destination" : [ "obj-43", 1 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-7", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-33", 1 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-8", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-32", 1 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-9", 0 ] + } + } ] } diff --git a/plugins/modulay/modulay.maxpat b/plugins/modulay/modulay.maxpat index 175902f..5b2769d 100644 --- a/plugins/modulay/modulay.maxpat +++ b/plugins/modulay/modulay.maxpat @@ -8,7 +8,7 @@ "architecture" : "x86" } , - "rect" : [ 0.0, 45.0, 960.0, 705.0 ], + "rect" : [ 0.0, 71.0, 960.0, 679.0 ], "bglocked" : 0, "openinpresentation" : 0, "default_fontsize" : 12.0, @@ -139,7 +139,7 @@ "fontsize" : 12.0, "id" : "obj-14", "maxclass" : "flonum", - "maximum" : 0.7, + "maximum" : 70.0, "minimum" : 0.0, "numinlets" : 1, "numoutlets" : 2, @@ -197,8 +197,8 @@ "fontsize" : 12.0, "id" : "obj-3", "maxclass" : "flonum", - "maximum" : 0.7, - "minimum" : -0.7, + "maximum" : 70.0, + "minimum" : -70.0, "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "float", "bang" ], @@ -213,8 +213,8 @@ "fontsize" : 12.0, "id" : "obj-5", "maxclass" : "flonum", - "maximum" : 1.0, - "minimum" : 0.7, + "maximum" : 100.0, + "minimum" : 70.0, "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "float", "bang" ], @@ -303,7 +303,7 @@ "fontsize" : 12.0, "id" : "obj-20", "maxclass" : "flonum", - "maximum" : 0.99, + "maximum" : 100.0, "minimum" : 0.0, "numinlets" : 1, "numoutlets" : 2, @@ -319,7 +319,7 @@ "fontsize" : 12.0, "id" : "obj-19", "maxclass" : "flonum", - "maximum" : 1.0, + "maximum" : 100.0, "minimum" : 0.0, "numinlets" : 1, "numoutlets" : 2, @@ -445,6 +445,76 @@ "digest" : "", "tags" : "", "boxes" : [ { + "box" : { + "fontname" : "Arial", + "fontsize" : 12.0, + "id" : "obj-12", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 108.0, 682.0, 42.0, 20.0 ], + "text" : "* 0.01" + } + + } +, { + "box" : { + "fontname" : "Arial", + "fontsize" : 12.0, + "id" : "obj-10", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 89.5, 632.0, 42.0, 20.0 ], + "text" : "* 0.01" + } + + } +, { + "box" : { + "fontname" : "Arial", + "fontsize" : 12.0, + "id" : "obj-9", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 43.5, 607.0, 42.0, 20.0 ], + "text" : "* 0.01" + } + + } +, { + "box" : { + "fontname" : "Arial", + "fontsize" : 12.0, + "id" : "obj-8", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 168.5, 517.0, 42.0, 20.0 ], + "text" : "* 0.01" + } + + } +, { + "box" : { + "fontname" : "Arial", + "fontsize" : 12.0, + "id" : "obj-7", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 103.0, 217.0, 42.0, 20.0 ], + "text" : "* 0.01" + } + + } +, { "box" : { "fontname" : "Arial", "fontsize" : 12.0, @@ -538,7 +608,7 @@ "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 57.5, 92.0, 220.0, 20.0 ], - "text" : "param cutoff 4000 @min 0 @max 6000" + "text" : "param cutoff 3000 @min 0 @max 6000" } } @@ -636,7 +706,7 @@ "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 134.5, 317.0, 181.0, 20.0 ], - "text" : "param depth 0 @min 0 @max 5" + "text" : "param depth 1 @min 0 @max 5" } } @@ -649,7 +719,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 121.0, 547.0, 32.5, 20.0 ], + "patching_rect" : [ 155.0, 547.0, 32.5, 20.0 ], "text" : "*" } @@ -677,7 +747,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 76.0, 632.0, 32.5, 20.0 ], + "patching_rect" : [ 76.0, 657.0, 32.5, 20.0 ], "text" : "*" } @@ -705,7 +775,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 30.0, 657.0, 65.0, 20.0 ], + "patching_rect" : [ 30.0, 682.0, 65.0, 20.0 ], "text" : "+" } @@ -733,8 +803,8 @@ "numinlets" : 0, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 134.5, 517.0, 224.0, 20.0 ], - "text" : "param feedback 0 @min -0.7 @max 0.7" + "patching_rect" : [ 168.5, 492.0, 217.0, 20.0 ], + "text" : "param feedback 0 @min -70 @max 70" } } @@ -747,8 +817,8 @@ "numinlets" : 0, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 43.5, 582.0, 190.0, 20.0 ], - "text" : "param bleed 0 @min 0 @max 0.7" + "patching_rect" : [ 43.5, 582.0, 187.0, 20.0 ], + "text" : "param bleed 0 @min 0 @max 70" } } @@ -775,8 +845,8 @@ "numinlets" : 0, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 89.5, 607.0, 224.0, 20.0 ], - "text" : "param feedforward 1 @min 0.7 @max 1" + "patching_rect" : [ 89.5, 607.0, 248.0, 20.0 ], + "text" : "param feedforward 100 @min 70 @max 100" } } @@ -789,8 +859,8 @@ "numinlets" : 0, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 96.5, 217.0, 224.0, 20.0 ], - "text" : "param repeats 0.75 @min 0 @max 0.99" + "patching_rect" : [ 103.0, 192.0, 211.0, 20.0 ], + "text" : "param repeats 75 @min 0 @max 100" } } @@ -803,7 +873,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 83.0, 247.0, 32.5, 20.0 ], + "patching_rect" : [ 89.0, 247.0, 32.5, 20.0 ], "text" : "*" } @@ -817,8 +887,8 @@ "numinlets" : 0, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 43.5, 682.0, 170.0, 20.0 ], - "text" : "param mix 1 @min 0 @max 1" + "patching_rect" : [ 108.0, 657.0, 196.0, 20.0 ], + "text" : "param mix 100 @min 0 @max 100" } } @@ -845,7 +915,7 @@ "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 30.0, 707.0, 32.5, 20.0 ], + "patching_rect" : [ 30.0, 711.0, 32.5, 20.0 ], "text" : "*" } @@ -900,7 +970,7 @@ "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 16.0, 737.0, 37.0, 20.0 ], + "patching_rect" : [ 16.0, 741.0, 37.0, 20.0 ], "text" : "out 1" } @@ -924,6 +994,15 @@ "source" : [ "obj-1", 0 ] } + } +, { + "patchline" : { + "destination" : [ "obj-30", 1 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-10", 0 ] + } + } , { "patchline" : { @@ -933,6 +1012,16 @@ "source" : [ "obj-11", 0 ] } + } +, { + "patchline" : { + "destination" : [ "obj-34", 1 ], + "disabled" : 0, + "hidden" : 0, + "midpoints" : [ 117.5, 706.0, 53.0, 706.0 ], + "source" : [ "obj-12", 0 ] + } + } , { "patchline" : { @@ -958,7 +1047,7 @@ "destination" : [ "obj-43", 0 ], "disabled" : 0, "hidden" : 0, - "midpoints" : [ 40.0, 241.5, 92.5, 241.5 ], + "midpoints" : [ 40.0, 241.5, 98.5, 241.5 ], "source" : [ "obj-15", 0 ] } @@ -974,7 +1063,7 @@ } , { "patchline" : { - "destination" : [ "obj-30", 1 ], + "destination" : [ "obj-10", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-2", 0 ] @@ -1049,7 +1138,7 @@ "destination" : [ "obj-33", 0 ], "disabled" : 0, "hidden" : 0, - "midpoints" : [ 86.5, 541.5, 130.5, 541.5 ], + "midpoints" : [ 86.5, 541.5, 164.5, 541.5 ], "source" : [ "obj-29", 0 ] } @@ -1095,7 +1184,7 @@ "destination" : [ "obj-27", 1 ], "disabled" : 0, "hidden" : 0, - "midpoints" : [ 130.5, 575.0, 363.0, 575.0, 363.0, 324.0, 363.0, 324.0, 363.0, 283.0, 54.0, 283.0 ], + "midpoints" : [ 164.5, 575.0, 393.0, 575.0, 393.0, 324.0, 393.0, 324.0, 393.0, 283.0, 54.0, 283.0 ], "source" : [ "obj-33", 0 ] } @@ -1105,7 +1194,7 @@ "destination" : [ "obj-4", 0 ], "disabled" : 0, "hidden" : 0, - "midpoints" : [ 39.5, 731.5, 25.5, 731.5 ], + "midpoints" : [ 39.5, 735.5, 25.5, 735.5 ], "source" : [ "obj-34", 0 ] } @@ -1148,7 +1237,7 @@ } , { "patchline" : { - "destination" : [ "obj-34", 1 ], + "destination" : [ "obj-12", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-42", 0 ] @@ -1160,14 +1249,14 @@ "destination" : [ "obj-21", 0 ], "disabled" : 0, "hidden" : 0, - "midpoints" : [ 92.5, 274.0, 361.25, 274.0, 361.25, 58.0, 51.5, 58.0 ], + "midpoints" : [ 98.5, 274.0, 392.25, 274.0, 392.25, 58.0, 51.5, 58.0 ], "source" : [ "obj-43", 0 ] } } , { "patchline" : { - "destination" : [ "obj-43", 1 ], + "destination" : [ "obj-7", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-44", 0 ] @@ -1185,7 +1274,7 @@ } , { "patchline" : { - "destination" : [ "obj-32", 1 ], + "destination" : [ "obj-9", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-5", 0 ] @@ -1221,7 +1310,7 @@ } , { "patchline" : { - "destination" : [ "obj-33", 1 ], + "destination" : [ "obj-8", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-6", 0 ] @@ -1245,6 +1334,33 @@ "source" : [ "obj-62", 0 ] } + } +, { + "patchline" : { + "destination" : [ "obj-43", 1 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-7", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-33", 1 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-8", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-32", 1 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-9", 0 ] + } + } ] } @@ -1496,9 +1612,9 @@ } ], "parameters" : { - "obj-8::obj-32" : [ "[8]", "[2]", 0 ], + "obj-8::obj-35" : [ "[5]", "Level", 0 ], "obj-8::obj-21::obj-6" : [ "live.tab[3]", "live.tab[1]", 0 ], - "obj-8::obj-35" : [ "[5]", "Level", 0 ] + "obj-8::obj-32" : [ "[8]", "[2]", 0 ] } , "dependency_cache" : [ {