Trouble then trying to make aux-send from gen
I tried to route signal inside gen through MSP filter object on the outside, and failed, because gen ceasing to function this way. Why is that happening?
I tried to add history object inside, but it didin't help.
Here is the patch:
----------begin_max5_patcher----------
{
"boxes" : [ {
"box" : {
"maxclass" : "newobj",
"text" : "allpass~ 10 0.1 1",
"fontsize" : 12.0,
"patching_rect" : [ 634.0, 201.0, 102.0, 20.0 ],
"numinlets" : 3,
"id" : "obj-48",
"fontname" : "Arial",
"numoutlets" : 1,
"outlettype" : [ "signal" ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "*~ 0.888",
"fontsize" : 12.0,
"patching_rect" : [ 229.5, 223.0, 56.0, 20.0 ],
"numinlets" : 2,
"id" : "obj-9",
"fontname" : "Arial",
"numoutlets" : 1,
"outlettype" : [ "signal" ]
}
}
, {
"box" : {
"maxclass" : "button",
"patching_rect" : [ 350.0, 112.0, 20.0, 20.0 ],
"numinlets" : 1,
"id" : "obj-8",
"numoutlets" : 1,
"outlettype" : [ "bang" ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "*~",
"fontsize" : 12.0,
"patching_rect" : [ 216.0, 255.0, 32.5, 20.0 ],
"numinlets" : 2,
"id" : "obj-6",
"fontname" : "Arial",
"numoutlets" : 1,
"outlettype" : [ "signal" ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "noise~",
"fontsize" : 12.0,
"patching_rect" : [ 229.5, 174.0, 46.0, 20.0 ],
"numinlets" : 1,
"id" : "obj-5",
"fontname" : "Arial",
"numoutlets" : 1,
"outlettype" : [ "signal" ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "prepend set",
"fontsize" : 13.0,
"patching_rect" : [ 67.0, 208.0, 79.0, 21.0 ],
"numinlets" : 1,
"id" : "obj-14",
"fontname" : "Arial",
"numoutlets" : 1,
"outlettype" : [ "" ]
}
}
, {
"box" : {
"maxclass" : "multislider",
"candicane3" : [ 0.290196, 0.411765, 0.713726, 1.0 ],
"candicane8" : [ 0.027451, 0.447059, 0.501961, 1.0 ],
"candicane5" : [ 0.584314, 0.827451, 0.431373, 1.0 ],
"patching_rect" : [ 20.0, 247.5, 173.0, 69.0 ],
"candicane2" : [ 0.145098, 0.203922, 0.356863, 1.0 ],
"parameter_enable" : 0,
"candicane7" : [ 0.878431, 0.243137, 0.145098, 1.0 ],
"size" : 64,
"numinlets" : 1,
"slidercolor" : [ 0.337255, 0.176471, 0.329412, 1.0 ],
"id" : "obj-4",
"peakcolor" : [ 0.498039, 0.498039, 0.498039, 1.0 ],
"candicane4" : [ 0.439216, 0.619608, 0.070588, 1.0 ],
"numoutlets" : 2,
"outlettype" : [ "", "" ],
"setstyle" : 1,
"setminmax" : [ 0.0, 1.0 ],
"candicane6" : [ 0.733333, 0.035294, 0.788235, 1.0 ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "click~",
"fontsize" : 12.0,
"patching_rect" : [ 134.0, 155.0, 41.0, 20.0 ],
"numinlets" : 1,
"id" : "obj-2",
"fontname" : "Arial",
"numoutlets" : 1,
"outlettype" : [ "signal" ]
}
}
, {
"box" : {
"maxclass" : "live.gain~",
"varname" : "live.gain~",
"presentation_rect" : [ 210.0, 210.0, 50.0, 24.0 ],
"showname" : 0,
"patching_rect" : [ 492.0, 267.0, 121.0, 38.0 ],
"parameter_enable" : 1,
"orientation" : 1,
"numinlets" : 2,
"id" : "obj-27",
"numoutlets" : 5,
"outlettype" : [ "signal", "signal", "", "float", "list" ],
"saved_attribute_attributes" : {
"valueof" : {
"parameter_longname" : "live.gain~[4]",
"parameter_shortname" : "live.gain~",
"parameter_type" : 0,
"parameter_mmin" : -70.0,
"parameter_mmax" : 6.0,
"parameter_initial_enable" : 1,
"parameter_initial" : [ -50 ],
"parameter_unitstyle" : 4
}
}
}
}
, {
"box" : {
"maxclass" : "ezdac~",
"prototypename" : "helpfile",
"bgcolor" : [ 1.0, 1.0, 1.0, 1.0 ],
"border" : 1.75,
"patching_rect" : [ 397.0, 317.0, 44.0, 44.0 ],
"local" : 1,
"numinlets" : 2,
"id" : "obj-15",
"bordercolor" : [ 0.501961, 0.501961, 0.501961, 1.0 ],
"numoutlets" : 0
}
}
, {
"box" : {
"maxclass" : "message",
"text" : "reset",
"fontsize" : 13.0,
"patching_rect" : [ 402.0, 174.0, 39.0, 19.0 ],
"numinlets" : 2,
"id" : "obj-11",
"fontname" : "Arial",
"numoutlets" : 1,
"outlettype" : [ "" ]
}
}
, {
"box" : {
"maxclass" : "kslider",
"presentation_rect" : [ 15.0, 15.0, 336.0, 53.0 ],
"patching_rect" : [ 483.0, 79.0, 336.0, 53.0 ],
"parameter_enable" : 0,
"numinlets" : 2,
"id" : "obj-3",
"numoutlets" : 2,
"outlettype" : [ "int", "int" ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "gen~",
"fontsize" : 12.0,
"patching_rect" : [ 483.0, 201.0, 38.0, 20.0 ],
"numinlets" : 3,
"id" : "obj-1",
"fontname" : "Arial",
"numoutlets" : 1,
"outlettype" : [ "signal" ],
"patcher" : {
"fileversion" : 1,
"appversion" : {
"major" : 6,
"minor" : 1,
"revision" : 3,
"architecture" : "x86"
}
,
"rect" : [ 572.0, 403.0, 666.0, 618.0 ],
"bgcolor" : [ 0.9, 0.9, 0.9, 1.0 ],
"bglocked" : 0,
"openinpresentation" : 0,
"default_fontsize" : 12.0,
"default_fontface" : 0,
"default_fontname" : "Arial",
"gridonopen" : 0,
"gridsize" : [ 15.0, 15.0 ],
"gridsnaponopen" : 0,
"statusbarvisible" : 2,
"toolbarvisible" : 1,
"boxanimatetime" : 200,
"imprint" : 0,
"enablehscroll" : 1,
"enablevscroll" : 1,
"devicewidth" : 0.0,
"description" : "",
"digest" : "",
"tags" : "",
"boxes" : [ {
"box" : {
"maxclass" : "newobj",
"text" : "in 3",
"fontsize" : 12.0,
"patching_rect" : [ 126.0, 300.0, 30.0, 20.0 ],
"numinlets" : 0,
"id" : "obj-27",
"fontname" : "Arial",
"numoutlets" : 1,
"outlettype" : [ "" ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "* 4",
"fontsize" : 12.0,
"patching_rect" : [ 300.0, 213.0, 25.0, 20.0 ],
"numinlets" : 1,
"id" : "obj-14",
"fontname" : "Arial",
"numoutlets" : 1,
"outlettype" : [ "" ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "history",
"fontsize" : 12.0,
"patching_rect" : [ 201.5, 213.0, 47.0, 20.0 ],
"numinlets" : 1,
"id" : "obj-13",
"fontname" : "Arial",
"numoutlets" : 1,
"outlettype" : [ "" ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "+",
"fontsize" : 12.0,
"patching_rect" : [ 182.0, 166.0, 32.5, 20.0 ],
"numinlets" : 2,
"id" : "obj-10",
"fontname" : "Arial",
"numoutlets" : 1,
"outlettype" : [ "" ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "samplerate",
"fontsize" : 12.0,
"patching_rect" : [ 256.0, 97.0, 70.0, 20.0 ],
"numinlets" : 0,
"id" : "obj-6",
"fontname" : "Arial",
"numoutlets" : 1,
"outlettype" : [ "" ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "!/",
"fontsize" : 12.0,
"patching_rect" : [ 216.0, 127.0, 32.5, 20.0 ],
"numinlets" : 2,
"id" : "obj-5",
"fontname" : "Arial",
"numoutlets" : 1,
"outlettype" : [ "" ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "mtof",
"fontsize" : 12.0,
"patching_rect" : [ 216.0, 97.0, 34.0, 20.0 ],
"numinlets" : 2,
"id" : "obj-7",
"fontname" : "Arial",
"numoutlets" : 1,
"outlettype" : [ "" ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "in 2 @comment \"delay pitch (midi note)\"",
"fontsize" : 12.0,
"patching_rect" : [ 216.0, 64.0, 224.0, 20.0 ],
"numinlets" : 0,
"id" : "obj-3",
"fontname" : "Arial",
"numoutlets" : 1,
"outlettype" : [ "" ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "dcblock",
"fontsize" : 12.0,
"patching_rect" : [ 126.0, 356.0, 51.0, 20.0 ],
"numinlets" : 1,
"id" : "obj-8",
"fontname" : "Arial",
"numoutlets" : 1,
"outlettype" : [ "" ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "* 0.999",
"fontsize" : 12.0,
"patching_rect" : [ 126.0, 391.0, 49.0, 20.0 ],
"numinlets" : 1,
"id" : "obj-47",
"fontname" : "Arial",
"numoutlets" : 1,
"outlettype" : [ "" ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "clip -1. 1.",
"fontsize" : 12.0,
"patching_rect" : [ 126.0, 421.0, 61.0, 20.0 ],
"numinlets" : 1,
"id" : "obj-45",
"fontname" : "Arial",
"numoutlets" : 1,
"outlettype" : [ "" ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "out 1",
"fontsize" : 12.0,
"patching_rect" : [ 126.0, 247.0, 38.0, 20.0 ],
"numinlets" : 1,
"id" : "obj-29",
"fontname" : "Arial",
"numoutlets" : 0
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "delay",
"fontsize" : 12.0,
"patching_rect" : [ 126.0, 179.0, 39.0, 20.0 ],
"numinlets" : 2,
"id" : "obj-28",
"fontname" : "Arial",
"numoutlets" : 1,
"outlettype" : [ "" ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "in 1 @comment source",
"fontsize" : 12.0,
"patching_rect" : [ 60.0, 64.0, 138.0, 20.0 ],
"numinlets" : 0,
"id" : "obj-24",
"fontname" : "Arial",
"numoutlets" : 1,
"outlettype" : [ "" ]
}
}
],
"lines" : [ {
"patchline" : {
"source" : [ "obj-27", 0 ],
"destination" : [ "obj-8", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-14", 0 ],
"destination" : [ "obj-10", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-13", 0 ],
"destination" : [ "obj-14", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-28", 0 ],
"destination" : [ "obj-13", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-10", 0 ],
"destination" : [ "obj-28", 1 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-45", 0 ],
"destination" : [ "obj-28", 0 ],
"hidden" : 0,
"midpoints" : [ 135.5, 392.0, 90.5, 392.0, 90.5, 167.0, 135.5, 167.0 ],
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-24", 0 ],
"destination" : [ "obj-28", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-28", 0 ],
"destination" : [ "obj-29", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-5", 0 ],
"destination" : [ "obj-10", 1 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-8", 0 ],
"destination" : [ "obj-47", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-47", 0 ],
"destination" : [ "obj-45", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-3", 0 ],
"destination" : [ "obj-7", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-7", 0 ],
"destination" : [ "obj-5", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-6", 0 ],
"destination" : [ "obj-5", 1 ],
"hidden" : 0,
"disabled" : 0
}
}
]
}
}
}
],
"lines" : [ {
"patchline" : {
"source" : [ "obj-1", 0 ],
"destination" : [ "obj-48", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-48", 0 ],
"destination" : [ "obj-1", 2 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-6", 0 ],
"destination" : [ "obj-1", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-9", 0 ],
"destination" : [ "obj-6", 1 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-5", 0 ],
"destination" : [ "obj-9", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-8", 0 ],
"destination" : [ "obj-2", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-3", 0 ],
"destination" : [ "obj-8", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-2", 0 ],
"destination" : [ "obj-6", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-14", 0 ],
"destination" : [ "obj-2", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-4", 0 ],
"destination" : [ "obj-14", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-1", 0 ],
"destination" : [ "obj-27", 1 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-1", 0 ],
"destination" : [ "obj-27", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-27", 1 ],
"destination" : [ "obj-15", 1 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-27", 0 ],
"destination" : [ "obj-15", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-3", 0 ],
"destination" : [ "obj-1", 1 ],
"hidden" : 0,
"disabled" : 0
}
}
, {
"patchline" : {
"source" : [ "obj-11", 0 ],
"destination" : [ "obj-1", 0 ],
"hidden" : 0,
"disabled" : 0
}
}
],
"appversion" : {
"major" : 6,
"minor" : 1,
"revision" : 3,
"architecture" : "x86"
}
}
-----------end_max5_patcher-----------
I can't open the max patch you sent, I think something is corrupted. Can you try again?
Select-All, Edit -> Copy Compressed.
Thanks
Done
Could it be it's due to impossibility of certain loops in Max/MSP? Is there some documentation about it?
Also, I wouldn't need it, if someone will tell me, how to make 2nd order allpass filter inside gen~.
you have to introduce a delay when using feedback with MSP. Send~ and receive~ are a possibility to introduce minimum delay(vector size). using history/delay in gen for a feedback loop outside of gen but including gen~ will not do it.
Wow, thanks! It helped me a lot.
Is there any other ways to make feedback loop, than send/receive? It's not very handy, when you trying to copy something containig this objects, as it messes everything and make awful sounds.