Skip to content

Commit

Permalink
tentative variant of analysis bpatchers with mfcc, to be split accord…
Browse files Browse the repository at this point in the history
…ing to #49
  • Loading branch information
diemoschwarz committed Dec 10, 2021
1 parent 3a4e121 commit edb722c
Show file tree
Hide file tree
Showing 3 changed files with 1,517 additions and 0 deletions.
325 changes: 325 additions & 0 deletions patches/lib/camu.process.mfcc-chop.maxpat
Original file line number Diff line number Diff line change
@@ -0,0 +1,325 @@
{
"patcher" : {
"fileversion" : 1,
"appversion" : {
"major" : 8,
"minor" : 1,
"revision" : 5,
"architecture" : "x64",
"modernui" : 1
}
,
"classnamespace" : "box",
"rect" : [ 0.0, 45.0, 1280.0, 301.0 ],
"bglocked" : 0,
"openinpresentation" : 1,
"default_fontsize" : 9.0,
"default_fontface" : 0,
"default_fontname" : "Geneva",
"gridonopen" : 1,
"gridsize" : [ 10.0, 10.0 ],
"gridsnaponopen" : 1,
"objectsnaponopen" : 1,
"statusbarvisible" : 2,
"toolbarvisible" : 0,
"lefttoolbarpinned" : 2,
"toptoolbarpinned" : 2,
"righttoolbarpinned" : 2,
"bottomtoolbarpinned" : 2,
"toolbars_unpinned_last_save" : 15,
"tallnewobj" : 0,
"boxanimatetime" : 200,
"enablehscroll" : 1,
"enablevscroll" : 1,
"devicewidth" : 0.0,
"description" : "",
"digest" : "",
"tags" : "",
"style" : "",
"subpatcher_template" : "",
"assistshowspatchername" : 0,
"boxes" : [ {
"box" : {
"color" : [ 0.8295059975, 0.0, 0.0, 1.0 ],
"fontname" : "Arial",
"id" : "obj-51",
"maxclass" : "newobj",
"numinlets" : 0,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 435.0, 34.0, 52.0, 19.0 ],
"text" : "r #1"
}

}
, {
"box" : {
"fontname" : "Geneva",
"fontsize" : 10.0,
"id" : "obj-2",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 161.0, 69.900024000000002, 150.0, 19.0 ],
"presentation" : 1,
"presentation_rect" : [ 161.0, 68.900024000000002, 150.0, 19.0 ],
"text" : "Calculate standard deviation"
}

}
, {
"box" : {
"attr" : "chop.stddev",
"fontname" : "Geneva",
"fontsize" : 10.0,
"id" : "obj-4",
"maxclass" : "attrui",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 1.0, 68.900024000000002, 150.0, 21.0 ],
"presentation" : 1,
"presentation_rect" : [ 1.0, 68.900024000000002, 150.0, 21.0 ]
}

}
, {
"box" : {
"fontname" : "Geneva",
"fontsize" : 9.0,
"id" : "obj-94",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 3,
"outlettype" : [ "", "", "" ],
"patching_rect" : [ 435.0, 155.700012000000015, 259.0, 20.0 ],
"restore" : [ 0.0 ],
"saved_object_attributes" : {
"parameter_enable" : 0,
"parameter_mappable" : 0
}
,
"text" : "pattr mubu-chop-offset @bindto mubu-chop::chop.offset",
"varname" : "mubu-chop-offset"
}

}
, {
"box" : {
"fontname" : "Geneva",
"fontsize" : 9.0,
"id" : "obj-93",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 3,
"outlettype" : [ "", "", "" ],
"patching_rect" : [ 435.0, 134.700012000000015, 240.0, 20.0 ],
"restore" : [ 250.0 ],
"saved_object_attributes" : {
"parameter_enable" : 0,
"parameter_mappable" : 0
}
,
"text" : "pattr mubu-chop-size @bindto mubu-chop::chop.size",
"varname" : "mubu-chop-size"
}

}
, {
"box" : {
"fontname" : "Geneva",
"fontsize" : 10.0,
"id" : "obj-23",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 161.0, 46.900024000000002, 150.0, 19.0 ],
"presentation" : 1,
"presentation_rect" : [ 161.0, 46.900024000000002, 150.0, 19.0 ],
"text" : "Offset Threshold"
}

}
, {
"box" : {
"fontname" : "Geneva",
"fontsize" : 10.0,
"id" : "obj-26",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 161.0, 25.200012000000001, 174.0, 19.0 ],
"presentation" : 1,
"presentation_rect" : [ 161.0, 25.200012000000001, 174.0, 19.0 ],
"text" : "Segment duration (0 = whole file)"
}

}
, {
"box" : {
"attr" : "chop.size",
"fontname" : "Geneva",
"fontsize" : 10.0,
"id" : "obj-30",
"maxclass" : "attrui",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 1.0, 25.200012000000001, 150.0, 21.0 ],
"presentation" : 1,
"presentation_rect" : [ 1.0, 25.200012000000001, 150.0, 21.0 ]
}

}
, {
"box" : {
"attr" : "chop.offset",
"fontname" : "Geneva",
"fontsize" : 10.0,
"id" : "obj-31",
"maxclass" : "attrui",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 1.0, 46.900024000000002, 150.0, 21.0 ],
"presentation" : 1,
"presentation_rect" : [ 1.0, 46.900024000000002, 150.0, 21.0 ]
}

}
, {
"box" : {
"comment" : "",
"id" : "obj-1",
"index" : 0,
"maxclass" : "outlet",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 923.5, 237.700011999999987, 25.0, 25.0 ]
}

}
, {
"box" : {
"comment" : "",
"id" : "obj-7",
"index" : 0,
"maxclass" : "inlet",
"numinlets" : 0,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 392.0, 0.0, 25.0, 25.0 ]
}

}
, {
"box" : {
"bgcolor" : [ 0.854902, 0.839216, 0.917647, 1.0 ],
"color" : [ 0.815686, 0.094118, 0.094118, 1.0 ],
"fontface" : 0,
"fontname" : "Geneva",
"fontsize" : 11.0,
"id" : "obj-6",
"linecount" : 2,
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 4,
"outlettype" : [ "", "", "int", "" ],
"patching_rect" : [ 392.0, 62.700012000000001, 621.0, 36.0 ],
"text" : "mubu.process #1 audio mfcc:chop @name mfcc @priority 2 @process 0 @progressoutput input @timetagged 1 @mfcc.windsize 2048 @mfcc.hopsize 256 @chop.size 250. @chop.mean 1 @chop.stddev 0 @chop.duration 1",
"textcolor" : [ 0.0, 0.0, 0.0, 1.0 ],
"varname" : "mubu-chop"
}

}
, {
"box" : {
"comment" : "",
"id" : "obj-3",
"index" : 0,
"maxclass" : "outlet",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 392.0, 237.700011999999987, 25.0, 25.0 ]
}

}
, {
"box" : {
"bgcolor" : [ 1.0, 0.592157, 0.0, 0.741176 ],
"fontname" : "Arial",
"fontsize" : 16.0,
"id" : "obj-54",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 1.0, 0.0, 310.0, 24.0 ],
"presentation" : 1,
"presentation_rect" : [ 1.0, 0.0, 310.0, 24.0 ],
"text" : "> Attributes: mfcc-chop (corpus)"
}

}
],
"lines" : [ {
"patchline" : {
"destination" : [ "obj-6", 0 ],
"hidden" : 1,
"source" : [ "obj-30", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-6", 0 ],
"hidden" : 1,
"source" : [ "obj-31", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-6", 0 ],
"hidden" : 1,
"source" : [ "obj-4", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-6", 0 ],
"source" : [ "obj-51", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-1", 0 ],
"source" : [ "obj-6", 3 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-3", 0 ],
"source" : [ "obj-6", 0 ]
}

}
, {
"patchline" : {
"destination" : [ "obj-6", 0 ],
"source" : [ "obj-7", 0 ]
}

}
],
"dependency_cache" : [ {
"name" : "mubu.mxo",
"type" : "iLaX"
}
],
"autosave" : 0
}

}
Loading

0 comments on commit edb722c

Please sign in to comment.