paul
Newbie

Posts: 25
|
 |
« il: Marzo 12, 2009, 10:09:26 » |
|
buongiorno... dovrei effettuare la media per ogni nota sui valori di loudness registrati per ognuna di esse i
questa è la patch... come fare? grazie
{ "boxes" : [ { "box" : { "maxclass" : "comment", "text" : "questa sub patch è parte di una main patch adibita a ricevere un segnale audio in ingresso e a ricostruirlo midi....mi servirebbe avere inoltre il valore medio del loudness per ogni evento nota trovato...per fare ciò ho utilizzato l'oggetto mean che da in uscita i vari andamenti del livello e i campioni corrispondenti... ", "linecount" : 4, "id" : "obj-3", "numoutlets" : 0, "fontname" : "Arial", "fontsize" : 12.0, "patching_rect" : [ 47.0, 6.0, 516.0, 62.0 ], "numinlets" : 1 }
} , { "box" : { "maxclass" : "comment", "text" : "c'è una altra patch che per ogni nota on riazzera il conteggio dei campioni in modo da avere la differenziazione degli eventi", "linecount" : 3, "id" : "obj-2", "numoutlets" : 0, "fontname" : "Arial", "fontsize" : 12.0, "patching_rect" : [ 375.0, 95.0, 235.0, 48.0 ], "numinlets" : 1 }
} , { "box" : { "maxclass" : "flonum", "id" : "obj-1", "numoutlets" : 2, "fontname" : "Arial", "outlettype" : [ "float", "bang" ], "fontsize" : 12.0, "patching_rect" : [ 67.0, 108.0, 50.0, 20.0 ], "numinlets" : 1 }
} , { "box" : { "maxclass" : "comment", "text" : "ricevo nel primo inlet il loudness", "linecount" : 2, "id" : "obj-23", "numoutlets" : 0, "fontname" : "Arial", "fontsize" : 12.0, "patching_rect" : [ 28.0, 70.0, 150.0, 34.0 ], "numinlets" : 1 }
} , { "box" : { "maxclass" : "comment", "text" : "servirebbe avere il valore\ndella media sull'ultimo campione di ogni nota potendola cosi effettuare su tutti i valori del loudness", "linecount" : 4, "id" : "obj-21", "numoutlets" : 0, "fontname" : "Arial", "fontsize" : 12.0, "patching_rect" : [ 218.0, 237.0, 256.0, 62.0 ], "numinlets" : 1 }
} , { "box" : { "maxclass" : "newobj", "text" : "r on", "id" : "obj-4", "numoutlets" : 1, "fontname" : "Arial", "outlettype" : [ "" ], "fontsize" : 9.0, "patching_rect" : [ 403.0, 153.0, 24.0, 17.0 ], "numinlets" : 0 }
} , { "box" : { "maxclass" : "inlet", "id" : "obj-5", "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 321.0, 124.0, 15.0, 15.0 ], "numinlets" : 0, "comment" : "" }
} , { "box" : { "maxclass" : "outlet", "id" : "obj-6", "numoutlets" : 0, "patching_rect" : [ 138.0, 322.0, 15.0, 15.0 ], "numinlets" : 1, "comment" : "" }
} , { "box" : { "maxclass" : "newobj", "text" : "* 100.", "id" : "obj-10", "numoutlets" : 1, "fontname" : "Arial", "outlettype" : [ "float" ], "fontsize" : 9.0, "patching_rect" : [ 138.0, 258.0, 43.0, 17.0 ], "numinlets" : 2 }
} , { "box" : { "maxclass" : "flonum", "id" : "obj-11", "numoutlets" : 2, "fontname" : "Arial", "bgcolor" : [ 0.866667, 0.866667, 0.866667, 1.0 ], "outlettype" : [ "float", "bang" ], "htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ], "triscale" : 0.9, "fontsize" : 9.0, "patching_rect" : [ 138.0, 240.0, 35.0, 17.0 ], "numinlets" : 1 }
} , { "box" : { "maxclass" : "slider", "id" : "obj-12", "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 102.0, 284.0, 18.0, 61.0 ], "size" : 101.0, "orientation" : 2, "numinlets" : 1 }
} , { "box" : { "maxclass" : "flonum", "id" : "obj-13", "numoutlets" : 2, "fontname" : "Arial", "bgcolor" : [ 0.866667, 0.866667, 0.866667, 1.0 ], "outlettype" : [ "float", "bang" ], "htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ], "triscale" : 0.9, "fontsize" : 9.0, "patching_rect" : [ 138.0, 197.0, 35.0, 17.0 ], "numinlets" : 1 }
} , { "box" : { "maxclass" : "newobj", "text" : "* 0.01", "id" : "obj-14", "numoutlets" : 1, "fontname" : "Arial", "outlettype" : [ "float" ], "fontsize" : 9.0, "patching_rect" : [ 138.0, 176.0, 44.0, 17.0 ], "numinlets" : 2 }
} , { "box" : { "maxclass" : "message", "text" : "clear", "id" : "obj-15", "numoutlets" : 1, "fontname" : "Arial", "outlettype" : [ "" ], "fontsize" : 9.0, "patching_rect" : [ 321.0, 196.0, 38.0, 15.0 ], "numinlets" : 2 }
} , { "box" : { "maxclass" : "number", "id" : "obj-16", "numoutlets" : 2, "fontname" : "Arial", "bgcolor" : [ 0.866667, 0.866667, 0.866667, 1.0 ], "outlettype" : [ "int", "bang" ], "htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ], "triscale" : 0.9, "fontsize" : 9.0, "patching_rect" : [ 176.0, 240.0, 35.0, 17.0 ], "numinlets" : 1 }
} , { "box" : { "maxclass" : "slider", "id" : "obj-17", "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 220.0, 80.0, 18.0, 61.0 ], "size" : 101.0, "orientation" : 2, "numinlets" : 1 }
} , { "box" : { "maxclass" : "newobj", "text" : "mean", "id" : "obj-18", "numoutlets" : 2, "fontname" : "Arial", "outlettype" : [ "float", "int" ], "fontsize" : 9.0, "patching_rect" : [ 138.0, 219.0, 48.0, 17.0 ], "color" : [ 1.0, 0.890196, 0.090196, 1.0 ], "numinlets" : 1 }
} ], "lines" : [ { "patchline" : { "source" : [ "obj-1", 0 ], "destination" : [ "obj-14", 0 ], "hidden" : 0, "midpoints" : [ ] }
} , { "patchline" : { "source" : [ "obj-10", 0 ], "destination" : [ "obj-12", 0 ], "hidden" : 0, "midpoints" : [ ] }
} , { "patchline" : { "source" : [ "obj-17", 0 ], "destination" : [ "obj-14", 0 ], "hidden" : 0, "midpoints" : [ ] }
} , { "patchline" : { "source" : [ "obj-14", 0 ], "destination" : [ "obj-13", 0 ], "hidden" : 0, "midpoints" : [ ] }
} , { "patchline" : { "source" : [ "obj-15", 0 ], "destination" : [ "obj-18", 0 ], "hidden" : 0, "midpoints" : [ 330.5, 216.0, 147.5, 216.0 ] }
} , { "patchline" : { "source" : [ "obj-13", 0 ], "destination" : [ "obj-18", 0 ], "hidden" : 0, "midpoints" : [ ] }
} , { "patchline" : { "source" : [ "obj-18", 0 ], "destination" : [ "obj-11", 0 ], "hidden" : 0, "midpoints" : [ ] }
} , { "patchline" : { "source" : [ "obj-11", 0 ], "destination" : [ "obj-10", 0 ], "hidden" : 0, "midpoints" : [ ] }
} , { "patchline" : { "source" : [ "obj-10", 0 ], "destination" : [ "obj-6", 0 ], "hidden" : 0, "midpoints" : [ ] }
} , { "patchline" : { "source" : [ "obj-18", 1 ], "destination" : [ "obj-16", 0 ], "hidden" : 0, "midpoints" : [ ] }
} , { "patchline" : { "source" : [ "obj-5", 0 ], "destination" : [ "obj-15", 0 ], "hidden" : 0, "midpoints" : [ ] }
} , { "patchline" : { "source" : [ "obj-4", 0 ], "destination" : [ "obj-15", 0 ], "hidden" : 0, "midpoints" : [ ] }
} ] }
|