Added match and target audio file data files to repo and made generic object for writing them from Max to file

This commit is contained in:
2015-09-09 15:05:03 +01:00
parent b146670978
commit 0a2aec6c47
4 changed files with 2061 additions and 498 deletions
+1352
View File
File diff suppressed because it is too large Load Diff
+1
View File
@@ -0,0 +1 @@
/Users/sam/AudioDatabases/Piano/Piano.ff.B5.aiff 2 44100 33808.504
+308
View File
@@ -0,0 +1,308 @@
{
"patcher" : {
"fileversion" : 1,
"appversion" : {
"major" : 7,
"minor" : 0,
"revision" : 5,
"architecture" : "x86",
"modernui" : 1
}
,
"rect" : [ 84.0, 129.0, 640.0, 480.0 ],
"bglocked" : 0,
"openinpresentation" : 0,
"default_fontsize" : 12.0,
"default_fontface" : 0,
"default_fontname" : "Arial",
"gridonopen" : 1,
"gridsize" : [ 15.0, 15.0 ],
"gridsnaponopen" : 1,
"objectsnaponopen" : 1,
"statusbarvisible" : 2,
"toolbarvisible" : 1,
"lefttoolbarpinned" : 0,
"toptoolbarpinned" : 0,
"righttoolbarpinned" : 0,
"bottomtoolbarpinned" : 0,
"toolbars_unpinned_last_save" : 0,
"tallnewobj" : 0,
"boxanimatetime" : 200,
"enablehscroll" : 1,
"enablevscroll" : 1,
"devicewidth" : 0.0,
"description" : "",
"digest" : "",
"tags" : "",
"style" : "",
"subpatcher_template" : "",
"boxes" : [ {
"box" : {
"id" : "obj-7",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"patching_rect" : [ 455.0, 130.0, 60.0, 22.0 ],
"style" : "",
"text" : "loadbang"
}
}
, {
"box" : {
"id" : "obj-4",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 455.0, 160.0, 69.0, 22.0 ],
"style" : "",
"text" : "#1"
}
}
, {
"box" : {
"id" : "obj-2",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 455.0, 190.0, 107.0, 22.0 ],
"style" : "",
"text" : "sprintf re .+/%s.txt"
}
}
, {
"box" : {
"comment" : "",
"id" : "obj-1",
"maxclass" : "inlet",
"numinlets" : 0,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"patching_rect" : [ 50.0, 45.0, 30.0, 30.0 ],
"style" : ""
}
}
, {
"box" : {
"id" : "obj-193",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 249.75, 286.0, 83.0, 22.0 ],
"style" : "",
"text" : "prepend write"
}
}
, {
"box" : {
"annotation" : "Find the python file to run in the project",
"fontface" : 0,
"fontname" : "Arial",
"fontsize" : 11.595187,
"id" : "obj-187",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 5,
"outlettype" : [ "", "", "", "", "" ],
"patching_rect" : [ 192.25, 250.0, 61.0, 21.0 ],
"style" : "",
"text" : "regexp"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-188",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 2,
"outlettype" : [ "", "" ],
"patching_rect" : [ 115.25, 220.0, 96.0, 22.0 ],
"style" : "",
"text" : "route folder"
}
}
, {
"box" : {
"id" : "obj-189",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "", "int" ],
"patching_rect" : [ 115.25, 190.0, 89.0, 22.0 ],
"style" : "",
"text" : "recursivefolder"
}
}
, {
"box" : {
"annotation" : "Get project path from this patcher's path (assumes this patcher is the main match in a subfolder or the project)",
"fontface" : 0,
"fontname" : "Arial",
"fontsize" : 11.595187,
"id" : "obj-190",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 5,
"outlettype" : [ "", "", "", "", "" ],
"patching_rect" : [ 100.0, 160.0, 80.0, 21.0 ],
"style" : "",
"text" : "regexp (.+)/.+"
}
}
, {
"box" : {
"id" : "obj-191",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 50.0, 100.0, 34.0, 22.0 ],
"style" : "",
"text" : "path"
}
}
, {
"box" : {
"id" : "obj-192",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "", "" ],
"patching_rect" : [ 50.0, 130.0, 69.0, 22.0 ],
"save" : [ "#N", "thispatcher", ";", "#Q", "end", ";" ],
"style" : "",
"text" : "thispatcher"
}
}
, {
"box" : {
"comment" : "",
"id" : "obj-196",
"maxclass" : "outlet",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 249.75, 368.0, 30.0, 30.0 ],
"style" : ""
}
}
],
"lines" : [ {
"patchline" : {
"destination" : [ "obj-191", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-1", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-193", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-187", 2 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-187", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-188", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-188", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-189", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-189", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-190", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-192", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-191", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-190", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-192", 1 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-196", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-193", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-187", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-2", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-2", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-4", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-4", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-7", 0 ]
}
}
]
}
}
+400 -498
View File
File diff suppressed because it is too large Load Diff