operation-theatre/patchers/gencompressor-example.maxpat
2025-10-03 23:36:30 +02:00

627 lines
13 KiB
Plaintext

{
"patcher" : {
"fileversion" : 1,
"appversion" : {
"major" : 9,
"minor" : 1,
"revision" : 0,
"architecture" : "x64",
"modernui" : 1
}
,
"classnamespace" : "box",
"rect" : [ 328.0, 172.0, 1000.0, 702.0 ],
"gridsize" : [ 15.0, 15.0 ],
"assistshowspatchername" : 0,
"commentary" : "",
"showcommentary" : 0,
"boxes" : [ {
"box" : {
"attr" : "volume",
"attr_display" : 1,
"hint" : "Sets the global volume",
"id" : "obj-17",
"lock" : 1,
"maxclass" : "attrui",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"parameter_enable" : 0,
"patching_rect" : [ 546.0, 243.0, 110.0, 22.0 ],
"text_width" : 64.0
}
}
, {
"box" : {
"attr" : "sustain",
"attr_display" : 1,
"hint" : "Sets the release time (or amount of \"spongy\" sound)",
"id" : "obj-18",
"lock" : 1,
"maxclass" : "attrui",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"parameter_enable" : 0,
"patching_rect" : [ 546.0, 219.0, 110.0, 22.0 ],
"text_width" : 64.0
}
}
, {
"box" : {
"attr" : "attack",
"attr_display" : 1,
"hint" : "Sets the attack time (or amount of \"picky\" sound)",
"id" : "obj-19",
"lock" : 1,
"maxclass" : "attrui",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"parameter_enable" : 0,
"patching_rect" : [ 546.0, 195.0, 110.0, 22.0 ],
"text_width" : 64.0
}
}
, {
"box" : {
"attr" : "comp",
"attr_display" : 1,
"hint" : "Sets the amount of compression applied to the input signal",
"id" : "obj-20",
"lock" : 1,
"maxclass" : "attrui",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"parameter_enable" : 0,
"patching_rect" : [ 546.0, 171.0, 110.0, 22.0 ],
"text_width" : 64.0
}
}
, {
"box" : {
"attr" : "softclip",
"attr_display" : 1,
"displaymode" : 8,
"hint" : "Enables/disables soft clipping (slight saturation)",
"id" : "obj-22",
"lock" : 1,
"maxclass" : "attrui",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"parameter_enable" : 0,
"patching_rect" : [ 546.0, 267.0, 110.0, 22.0 ],
"text_width" : 64.0
}
}
, {
"box" : {
"attr" : "lookahead",
"attr_display" : 1,
"hint" : "Sets the amount of time that the input signal will be delayed",
"id" : "obj-23",
"lock" : 1,
"maxclass" : "attrui",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"parameter_enable" : 0,
"patching_rect" : [ 546.0, 147.0, 110.0, 22.0 ],
"text_width" : 64.0
}
}
, {
"box" : {
"id" : "obj-15",
"maxclass" : "mc.ezdac~",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 693.0, 608.0, 45.0, 45.0 ]
}
}
, {
"box" : {
"id" : "obj-12",
"lastchannelcount" : 2,
"maxclass" : "mc.live.gain~",
"numinlets" : 1,
"numoutlets" : 4,
"outlettype" : [ "multichannelsignal", "", "float", "list" ],
"parameter_enable" : 1,
"patching_rect" : [ 693.0, 421.0, 47.0, 100.0 ],
"saved_attribute_attributes" : {
"valueof" : {
"parameter_longname" : "mc.live.gain~",
"parameter_mmax" : 6.0,
"parameter_mmin" : -70.0,
"parameter_modmode" : 3,
"parameter_shortname" : "mc.live.gain~",
"parameter_type" : 0,
"parameter_unitstyle" : 4
}
}
,
"varname" : "mc.live.gain~"
}
}
, {
"box" : {
"id" : "obj-9",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "multichannelsignal" ],
"patching_rect" : [ 693.0, 353.0, 147.0, 22.0 ],
"text" : "mcs.gen~ gencompressor"
}
}
, {
"box" : {
"id" : "obj-8",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "multichannelsignal" ],
"patching_rect" : [ 693.0, 209.0, 72.0, 22.0 ],
"text" : "mc.pack~ 2"
}
}
, {
"box" : {
"bgmode" : 0,
"border" : 0,
"clickthrough" : 0,
"enablehscroll" : 0,
"enablevscroll" : 0,
"hint" : "",
"id" : "obj-7",
"lockeddragscroll" : 0,
"lockedsize" : 0,
"maxclass" : "bpatcher",
"name" : "Rnbo-Input~.maxpat",
"numinlets" : 1,
"numoutlets" : 5,
"offset" : [ 0.0, 0.0 ],
"outlettype" : [ "signal", "signal", "signal", "", "dictionary" ],
"patching_rect" : [ 693.0, 41.0, 230.0, 123.0 ],
"varname" : "Input[1]",
"viewvisibility" : 1
}
}
, {
"box" : {
"clip_size" : 1,
"fontname" : "Lato",
"fontsize" : 10.0,
"id" : "obj-41",
"lastchannelcount" : 0,
"maxclass" : "live.gain~",
"numinlets" : 2,
"numoutlets" : 5,
"outlettype" : [ "signal", "signal", "", "float", "list" ],
"parameter_enable" : 1,
"patching_rect" : [ 202.0, 421.0, 54.0, 100.0 ],
"saved_attribute_attributes" : {
"valueof" : {
"parameter_initial" : [ -6 ],
"parameter_initial_enable" : 1,
"parameter_invisible" : 2,
"parameter_longname" : "Gain",
"parameter_mmax" : 6.0,
"parameter_mmin" : -70.0,
"parameter_modmode" : 0,
"parameter_shortname" : "Gain",
"parameter_type" : 0,
"parameter_unitstyle" : 4
}
}
,
"varname" : "live.gain~"
}
}
, {
"box" : {
"id" : "obj-6",
"local" : 1,
"maxclass" : "ezdac~",
"numinlets" : 2,
"numoutlets" : 0,
"patching_rect" : [ 202.0, 608.0, 45.0, 45.0 ]
}
}
, {
"box" : {
"bgmode" : 0,
"border" : 0,
"clickthrough" : 0,
"enablehscroll" : 0,
"enablevscroll" : 0,
"hint" : "",
"id" : "obj-5",
"lockeddragscroll" : 0,
"lockedsize" : 0,
"maxclass" : "bpatcher",
"name" : "Rnbo-Input~.maxpat",
"numinlets" : 1,
"numoutlets" : 5,
"offset" : [ 0.0, 0.0 ],
"outlettype" : [ "signal", "signal", "signal", "", "dictionary" ],
"patching_rect" : [ 202.0, 41.0, 230.0, 123.0 ],
"varname" : "Input",
"viewvisibility" : 1
}
}
, {
"box" : {
"attr" : "volume",
"attr_display" : 1,
"hint" : "Sets the global volume",
"id" : "obj-21",
"lock" : 1,
"maxclass" : "attrui",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"parameter_enable" : 0,
"patching_rect" : [ 52.0, 243.0, 110.0, 22.0 ],
"text_width" : 64.0
}
}
, {
"box" : {
"attr" : "sustain",
"attr_display" : 1,
"hint" : "Sets the release time (or amount of \"spongy\" sound)",
"id" : "obj-14",
"lock" : 1,
"maxclass" : "attrui",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"parameter_enable" : 0,
"patching_rect" : [ 52.0, 219.0, 110.0, 22.0 ],
"text_width" : 64.0
}
}
, {
"box" : {
"attr" : "attack",
"attr_display" : 1,
"hint" : "Sets the attack time (or amount of \"picky\" sound)",
"id" : "obj-11",
"lock" : 1,
"maxclass" : "attrui",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"parameter_enable" : 0,
"patching_rect" : [ 52.0, 195.0, 110.0, 22.0 ],
"text_width" : 64.0
}
}
, {
"box" : {
"attr" : "comp",
"attr_display" : 1,
"hint" : "Sets the amount of compression applied to the input signal",
"id" : "obj-16",
"lock" : 1,
"maxclass" : "attrui",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"parameter_enable" : 0,
"patching_rect" : [ 52.0, 171.0, 110.0, 22.0 ],
"text_width" : 64.0
}
}
, {
"box" : {
"attr" : "softclip",
"attr_display" : 1,
"displaymode" : 8,
"hint" : "Enables/disables soft clipping (slight saturation)",
"id" : "obj-13",
"lock" : 1,
"maxclass" : "attrui",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"parameter_enable" : 0,
"patching_rect" : [ 52.0, 267.0, 110.0, 22.0 ],
"text_width" : 64.0
}
}
, {
"box" : {
"attr" : "lookahead",
"attr_display" : 1,
"hint" : "Sets the amount of time that the input signal will be delayed",
"id" : "obj-38",
"lock" : 1,
"maxclass" : "attrui",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"parameter_enable" : 0,
"patching_rect" : [ 52.0, 147.0, 110.0, 22.0 ],
"text_width" : 64.0
}
}
, {
"box" : {
"id" : "obj-1",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 2,
"outlettype" : [ "signal", "signal" ],
"patching_rect" : [ 202.0, 353.0, 122.0, 22.0 ],
"text" : "gen~ gencompressor"
}
}
, {
"box" : {
"background" : 1,
"fontface" : 0,
"fontsize" : 10.0,
"id" : "obj-10",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 236.0, 533.0, 19.0, 18.0 ],
"text" : "R",
"textjustification" : 1
}
}
],
"lines" : [ {
"patchline" : {
"destination" : [ "obj-41", 1 ],
"source" : [ "obj-1", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-41", 0 ],
"source" : [ "obj-1", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-1", 0 ],
"source" : [ "obj-11", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-15", 0 ],
"source" : [ "obj-12", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-1", 0 ],
"source" : [ "obj-13", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-1", 0 ],
"source" : [ "obj-14", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-1", 0 ],
"source" : [ "obj-16", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-9", 0 ],
"source" : [ "obj-17", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-9", 0 ],
"source" : [ "obj-18", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-9", 0 ],
"source" : [ "obj-19", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-9", 0 ],
"source" : [ "obj-20", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-1", 0 ],
"source" : [ "obj-21", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-9", 0 ],
"source" : [ "obj-22", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-9", 0 ],
"source" : [ "obj-23", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-1", 0 ],
"source" : [ "obj-38", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-6", 1 ],
"source" : [ "obj-41", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-6", 0 ],
"source" : [ "obj-41", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-1", 1 ],
"source" : [ "obj-5", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-1", 0 ],
"source" : [ "obj-5", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-8", 1 ],
"source" : [ "obj-7", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-8", 0 ],
"source" : [ "obj-7", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-9", 0 ],
"source" : [ "obj-8", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-12", 0 ],
"source" : [ "obj-9", 0 ]
}
}
],
"parameters" : {
"obj-12" : [ "mc.live.gain~", "mc.live.gain~", 0 ],
"obj-41" : [ "Gain", "Gain", 0 ],
"obj-5::obj-12" : [ "Browse", "Browse", 0 ],
"obj-5::obj-2" : [ "Input", "Input", 0 ],
"obj-5::obj-41" : [ "InputGain", "Input", 0 ],
"obj-7::obj-12" : [ "Browse[1]", "Browse", 0 ],
"obj-7::obj-2" : [ "Input[1]", "Input", 0 ],
"obj-7::obj-41" : [ "InputGain[1]", "Input", 0 ],
"parameterbanks" : {
"0" : {
"index" : 0,
"name" : "",
"parameters" : [ "-", "-", "-", "-", "-", "-", "-", "-" ],
"buttons" : [ "-", "-", "-", "-", "-", "-", "-", "-" ]
}
}
,
"parameter_overrides" : {
"obj-7::obj-41" : {
"parameter_longname" : "InputGain[1]"
}
}
,
"inherited_shortname" : 1
}
,
"dependency_cache" : [ {
"name" : "AiryRhodes.wav",
"bootpath" : "Package:/RNBO Guitar Pedals/media",
"patcherrelativepath" : "../../../../../hajdu/Documents/Max 9/Packages/RNBO Guitar Pedals/media",
"type" : "WAVE",
"implicit" : 1
}
, {
"name" : "HeavensBells.wav",
"bootpath" : "Package:/RNBO Guitar Pedals/media",
"patcherrelativepath" : "../../../../../hajdu/Documents/Max 9/Packages/RNBO Guitar Pedals/media",
"type" : "WAVE",
"implicit" : 1
}
, {
"name" : "Rnbo-Input~.maxpat",
"bootpath" : "Package:/RNBO Guitar Pedals/patchers",
"patcherrelativepath" : "../../../../../hajdu/Documents/Max 9/Packages/RNBO Guitar Pedals/patchers",
"type" : "JSON",
"implicit" : 1
}
, {
"name" : "gencompressor.gendsp",
"bootpath" : "/Users/Shared/Max 9/Library/operation-theatre/patchers",
"patcherrelativepath" : ".",
"type" : "gDSP",
"implicit" : 1
}
],
"autosave" : 0
}
}