From f70f4473c09cf662e5242dfd3052568786ab9126 Mon Sep 17 00:00:00 2001 From: equilet <2237372+equilet@users.noreply.github.com> Date: Sun, 16 Mar 2025 01:15:54 -0700 Subject: [PATCH] example for gain control --- misc/gain_adjustment_example.maxpat | 113 ++++++++++++++++++++++++++++ 1 file changed, 113 insertions(+) create mode 100644 misc/gain_adjustment_example.maxpat diff --git a/misc/gain_adjustment_example.maxpat b/misc/gain_adjustment_example.maxpat new file mode 100644 index 0000000..da49f86 --- /dev/null +++ b/misc/gain_adjustment_example.maxpat @@ -0,0 +1,113 @@ +{ + "patcher" : { + "fileversion" : 1, + "appversion" : { + "major" : 9, + "minor" : 0, + "revision" : 6, + "architecture" : "x64", + "modernui" : 1 + } +, + "classnamespace" : "box", + "rect" : [ 59.0, 106.0, 1000.0, 671.0 ], + "gridsize" : [ 15.0, 15.0 ], + "boxes" : [ { + "box" : { + "format" : 6, + "id" : "obj-7", + "maxclass" : "flonum", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "bang" ], + "parameter_enable" : 0, + "patching_rect" : [ 324.0, 191.0, 102.0, 22.0 ] + } + + } +, { + "box" : { + "id" : "obj-5", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 521.0, 98.0, 52.0, 22.0 ], + "text" : "0 10000" + } + + } +, { + "box" : { + "id" : "obj-4", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 434.0, 98.0, 85.0, 22.0 ], + "text" : "0 0 157 10000" + } + + } +, { + "box" : { + "id" : "obj-2", + "maxclass" : "newobj", + "numinlets" : 3, + "numoutlets" : 2, + "outlettype" : [ "", "bang" ], + "patching_rect" : [ 434.0, 130.0, 41.0, 22.0 ], + "text" : "line 0." + } + + } +, { + "box" : { + "id" : "obj-1", + "maxclass" : "gain~", + "multichannelvariant" : 0, + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "signal", "" ], + "parameter_enable" : 0, + "patching_rect" : [ 434.0, 186.0, 37.0, 357.0 ] + } + + } + ], + "lines" : [ { + "patchline" : { + "destination" : [ "obj-1", 0 ], + "order" : 0, + "source" : [ "obj-2", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-7", 0 ], + "order" : 1, + "source" : [ "obj-2", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-2", 0 ], + "source" : [ "obj-4", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-2", 0 ], + "source" : [ "obj-5", 0 ] + } + + } + ], + "dependency_cache" : [ ], + "autosave" : 0 + } + +} -- 2.34.1