github.com/256dpi/max-go@v0.7.0/example/bench.maxpat (about)

     1  {
     2  	"patcher" : 	{
     3  		"fileversion" : 1,
     4  		"appversion" : 		{
     5  			"major" : 8,
     6  			"minor" : 6,
     7  			"revision" : 2,
     8  			"architecture" : "x64",
     9  			"modernui" : 1
    10  		}
    11  ,
    12  		"classnamespace" : "box",
    13  		"rect" : [ 933.0, 495.0, 874.0, 625.0 ],
    14  		"bglocked" : 0,
    15  		"openinpresentation" : 0,
    16  		"default_fontsize" : 12.0,
    17  		"default_fontface" : 0,
    18  		"default_fontname" : "Arial",
    19  		"gridonopen" : 1,
    20  		"gridsize" : [ 15.0, 15.0 ],
    21  		"gridsnaponopen" : 1,
    22  		"objectsnaponopen" : 1,
    23  		"statusbarvisible" : 2,
    24  		"toolbarvisible" : 1,
    25  		"lefttoolbarpinned" : 0,
    26  		"toptoolbarpinned" : 0,
    27  		"righttoolbarpinned" : 0,
    28  		"bottomtoolbarpinned" : 0,
    29  		"toolbars_unpinned_last_save" : 0,
    30  		"tallnewobj" : 0,
    31  		"boxanimatetime" : 200,
    32  		"enablehscroll" : 1,
    33  		"enablevscroll" : 1,
    34  		"devicewidth" : 0.0,
    35  		"description" : "",
    36  		"digest" : "",
    37  		"tags" : "",
    38  		"style" : "",
    39  		"subpatcher_template" : "",
    40  		"assistshowspatchername" : 0,
    41  		"boxes" : [ 			{
    42  				"box" : 				{
    43  					"id" : "obj-34",
    44  					"maxclass" : "message",
    45  					"numinlets" : 2,
    46  					"numoutlets" : 1,
    47  					"outlettype" : [ "" ],
    48  					"patching_rect" : [ 405.0, 450.0, 45.0, 22.0 ],
    49  					"text" : "clear"
    50  				}
    51  
    52  			}
    53  , 			{
    54  				"box" : 				{
    55  					"id" : "obj-31",
    56  					"maxclass" : "message",
    57  					"numinlets" : 2,
    58  					"numoutlets" : 1,
    59  					"outlettype" : [ "" ],
    60  					"patching_rect" : [ 480.0, 450.0, 75.0, 22.0 ],
    61  					"text" : "382.74537"
    62  				}
    63  
    64  			}
    65  , 			{
    66  				"box" : 				{
    67  					"id" : "obj-32",
    68  					"maxclass" : "newobj",
    69  					"numinlets" : 1,
    70  					"numoutlets" : 1,
    71  					"outlettype" : [ "float" ],
    72  					"patching_rect" : [ 570.0, 450.0, 41.0, 22.0 ],
    73  					"text" : "ewma"
    74  				}
    75  
    76  			}
    77  , 			{
    78  				"box" : 				{
    79  					"id" : "obj-23",
    80  					"maxclass" : "message",
    81  					"numinlets" : 2,
    82  					"numoutlets" : 1,
    83  					"outlettype" : [ "" ],
    84  					"patching_rect" : [ 255.0, 450.0, 75.0, 22.0 ],
    85  					"text" : "38.672761"
    86  				}
    87  
    88  			}
    89  , 			{
    90  				"box" : 				{
    91  					"id" : "obj-22",
    92  					"maxclass" : "newobj",
    93  					"numinlets" : 1,
    94  					"numoutlets" : 1,
    95  					"outlettype" : [ "float" ],
    96  					"patching_rect" : [ 345.0, 450.0, 41.0, 22.0 ],
    97  					"text" : "ewma"
    98  				}
    99  
   100  			}
   101  , 			{
   102  				"box" : 				{
   103  					"id" : "obj-9",
   104  					"maxclass" : "message",
   105  					"numinlets" : 2,
   106  					"numoutlets" : 1,
   107  					"outlettype" : [ "" ],
   108  					"patching_rect" : [ 390.0, 345.0, 50.0, 22.0 ],
   109  					"text" : "470"
   110  				}
   111  
   112  			}
   113  , 			{
   114  				"box" : 				{
   115  					"id" : "obj-4",
   116  					"maxclass" : "slider",
   117  					"min" : 1.0,
   118  					"numinlets" : 1,
   119  					"numoutlets" : 1,
   120  					"outlettype" : [ "" ],
   121  					"parameter_enable" : 0,
   122  					"patching_rect" : [ 420.0, 135.0, 20.0, 140.0 ],
   123  					"size" : 1000.0
   124  				}
   125  
   126  			}
   127  , 			{
   128  				"box" : 				{
   129  					"id" : "obj-47",
   130  					"maxclass" : "toggle",
   131  					"numinlets" : 1,
   132  					"numoutlets" : 1,
   133  					"outlettype" : [ "int" ],
   134  					"parameter_enable" : 0,
   135  					"patching_rect" : [ 390.0, 255.0, 24.0, 24.0 ]
   136  				}
   137  
   138  			}
   139  , 			{
   140  				"box" : 				{
   141  					"id" : "obj-45",
   142  					"maxclass" : "newobj",
   143  					"numinlets" : 2,
   144  					"numoutlets" : 1,
   145  					"outlettype" : [ "bang" ],
   146  					"patching_rect" : [ 390.0, 300.0, 39.0, 22.0 ],
   147  					"text" : "metro"
   148  				}
   149  
   150  			}
   151  , 			{
   152  				"box" : 				{
   153  					"fontface" : 1,
   154  					"fontsize" : 16.0,
   155  					"id" : "obj-44",
   156  					"maxclass" : "comment",
   157  					"numinlets" : 1,
   158  					"numoutlets" : 0,
   159  					"patching_rect" : [ 480.0, 225.0, 105.0, 24.0 ],
   160  					"text" : "max-go"
   161  				}
   162  
   163  			}
   164  , 			{
   165  				"box" : 				{
   166  					"fontface" : 1,
   167  					"fontsize" : 16.0,
   168  					"id" : "obj-43",
   169  					"maxclass" : "comment",
   170  					"numinlets" : 1,
   171  					"numoutlets" : 0,
   172  					"patching_rect" : [ 255.0, 225.0, 105.0, 24.0 ],
   173  					"text" : "native"
   174  				}
   175  
   176  			}
   177  , 			{
   178  				"box" : 				{
   179  					"id" : "obj-41",
   180  					"maxclass" : "comment",
   181  					"numinlets" : 1,
   182  					"numoutlets" : 0,
   183  					"patching_rect" : [ 480.0, 480.0, 135.0, 20.0 ],
   184  					"text" : "mircoseconds"
   185  				}
   186  
   187  			}
   188  , 			{
   189  				"box" : 				{
   190  					"id" : "obj-30",
   191  					"maxclass" : "newobj",
   192  					"numinlets" : 5,
   193  					"numoutlets" : 5,
   194  					"outlettype" : [ "signal", "signal", "", "float", "bang" ],
   195  					"patching_rect" : [ 480.0, 330.0, 81.0, 22.0 ],
   196  					"text" : "maxgo bench"
   197  				}
   198  
   199  			}
   200  , 			{
   201  				"box" : 				{
   202  					"id" : "obj-24",
   203  					"maxclass" : "newobj",
   204  					"numinlets" : 2,
   205  					"numoutlets" : 1,
   206  					"outlettype" : [ "float" ],
   207  					"patching_rect" : [ 570.0, 420.0, 47.0, 22.0 ],
   208  					"text" : "* 1000."
   209  				}
   210  
   211  			}
   212  , 			{
   213  				"box" : 				{
   214  					"id" : "obj-25",
   215  					"maxclass" : "message",
   216  					"numinlets" : 2,
   217  					"numoutlets" : 1,
   218  					"outlettype" : [ "" ],
   219  					"patching_rect" : [ 480.0, 420.0, 75.0, 22.0 ],
   220  					"text" : "301.125"
   221  				}
   222  
   223  			}
   224  , 			{
   225  				"box" : 				{
   226  					"id" : "obj-26",
   227  					"maxclass" : "newobj",
   228  					"numinlets" : 2,
   229  					"numoutlets" : 1,
   230  					"outlettype" : [ "float" ],
   231  					"patching_rect" : [ 570.0, 375.0, 29.5, 22.0 ],
   232  					"text" : "- 0."
   233  				}
   234  
   235  			}
   236  , 			{
   237  				"box" : 				{
   238  					"id" : "obj-27",
   239  					"maxclass" : "button",
   240  					"numinlets" : 1,
   241  					"numoutlets" : 1,
   242  					"outlettype" : [ "bang" ],
   243  					"parameter_enable" : 0,
   244  					"patching_rect" : [ 480.0, 270.0, 24.0, 24.0 ]
   245  				}
   246  
   247  			}
   248  , 			{
   249  				"box" : 				{
   250  					"id" : "obj-28",
   251  					"maxclass" : "newobj",
   252  					"numinlets" : 1,
   253  					"numoutlets" : 1,
   254  					"outlettype" : [ "float" ],
   255  					"patching_rect" : [ 480.0, 375.0, 55.0, 22.0 ],
   256  					"text" : "cpuclock"
   257  				}
   258  
   259  			}
   260  , 			{
   261  				"box" : 				{
   262  					"id" : "obj-29",
   263  					"maxclass" : "newobj",
   264  					"numinlets" : 1,
   265  					"numoutlets" : 1,
   266  					"outlettype" : [ "float" ],
   267  					"patching_rect" : [ 525.0, 270.0, 55.0, 22.0 ],
   268  					"text" : "cpuclock"
   269  				}
   270  
   271  			}
   272  , 			{
   273  				"box" : 				{
   274  					"id" : "obj-20",
   275  					"maxclass" : "message",
   276  					"numinlets" : 2,
   277  					"numoutlets" : 1,
   278  					"outlettype" : [ "" ],
   279  					"patching_rect" : [ 255.0, 330.0, 50.0, 22.0 ],
   280  					"text" : "bang"
   281  				}
   282  
   283  			}
   284  , 			{
   285  				"box" : 				{
   286  					"id" : "obj-18",
   287  					"maxclass" : "comment",
   288  					"numinlets" : 1,
   289  					"numoutlets" : 0,
   290  					"patching_rect" : [ 255.0, 480.0, 135.0, 20.0 ],
   291  					"text" : "mircoseconds"
   292  				}
   293  
   294  			}
   295  , 			{
   296  				"box" : 				{
   297  					"id" : "obj-16",
   298  					"maxclass" : "newobj",
   299  					"numinlets" : 2,
   300  					"numoutlets" : 1,
   301  					"outlettype" : [ "float" ],
   302  					"patching_rect" : [ 345.0, 420.0, 47.0, 22.0 ],
   303  					"text" : "* 1000."
   304  				}
   305  
   306  			}
   307  , 			{
   308  				"box" : 				{
   309  					"id" : "obj-15",
   310  					"maxclass" : "message",
   311  					"numinlets" : 2,
   312  					"numoutlets" : 1,
   313  					"outlettype" : [ "" ],
   314  					"patching_rect" : [ 255.0, 420.0, 75.0, 22.0 ],
   315  					"text" : "29.291"
   316  				}
   317  
   318  			}
   319  , 			{
   320  				"box" : 				{
   321  					"id" : "obj-10",
   322  					"maxclass" : "newobj",
   323  					"numinlets" : 2,
   324  					"numoutlets" : 1,
   325  					"outlettype" : [ "float" ],
   326  					"patching_rect" : [ 345.0, 375.0, 29.5, 22.0 ],
   327  					"text" : "- 0."
   328  				}
   329  
   330  			}
   331  , 			{
   332  				"box" : 				{
   333  					"id" : "obj-5",
   334  					"maxclass" : "button",
   335  					"numinlets" : 1,
   336  					"numoutlets" : 1,
   337  					"outlettype" : [ "bang" ],
   338  					"parameter_enable" : 0,
   339  					"patching_rect" : [ 255.0, 270.0, 24.0, 24.0 ]
   340  				}
   341  
   342  			}
   343  , 			{
   344  				"box" : 				{
   345  					"id" : "obj-3",
   346  					"maxclass" : "newobj",
   347  					"numinlets" : 1,
   348  					"numoutlets" : 1,
   349  					"outlettype" : [ "float" ],
   350  					"patching_rect" : [ 255.0, 375.0, 55.0, 22.0 ],
   351  					"text" : "cpuclock"
   352  				}
   353  
   354  			}
   355  , 			{
   356  				"box" : 				{
   357  					"id" : "obj-2",
   358  					"maxclass" : "newobj",
   359  					"numinlets" : 1,
   360  					"numoutlets" : 1,
   361  					"outlettype" : [ "float" ],
   362  					"patching_rect" : [ 300.0, 270.0, 55.0, 22.0 ],
   363  					"text" : "cpuclock"
   364  				}
   365  
   366  			}
   367   ],
   368  		"lines" : [ 			{
   369  				"patchline" : 				{
   370  					"destination" : [ "obj-16", 0 ],
   371  					"source" : [ "obj-10", 0 ]
   372  				}
   373  
   374  			}
   375  , 			{
   376  				"patchline" : 				{
   377  					"destination" : [ "obj-15", 1 ],
   378  					"order" : 1,
   379  					"source" : [ "obj-16", 0 ]
   380  				}
   381  
   382  			}
   383  , 			{
   384  				"patchline" : 				{
   385  					"destination" : [ "obj-22", 0 ],
   386  					"order" : 0,
   387  					"source" : [ "obj-16", 0 ]
   388  				}
   389  
   390  			}
   391  , 			{
   392  				"patchline" : 				{
   393  					"destination" : [ "obj-10", 1 ],
   394  					"source" : [ "obj-2", 0 ]
   395  				}
   396  
   397  			}
   398  , 			{
   399  				"patchline" : 				{
   400  					"destination" : [ "obj-3", 0 ],
   401  					"source" : [ "obj-20", 0 ]
   402  				}
   403  
   404  			}
   405  , 			{
   406  				"patchline" : 				{
   407  					"destination" : [ "obj-23", 1 ],
   408  					"source" : [ "obj-22", 0 ]
   409  				}
   410  
   411  			}
   412  , 			{
   413  				"patchline" : 				{
   414  					"destination" : [ "obj-25", 1 ],
   415  					"order" : 1,
   416  					"source" : [ "obj-24", 0 ]
   417  				}
   418  
   419  			}
   420  , 			{
   421  				"patchline" : 				{
   422  					"destination" : [ "obj-32", 0 ],
   423  					"order" : 0,
   424  					"source" : [ "obj-24", 0 ]
   425  				}
   426  
   427  			}
   428  , 			{
   429  				"patchline" : 				{
   430  					"destination" : [ "obj-24", 0 ],
   431  					"source" : [ "obj-26", 0 ]
   432  				}
   433  
   434  			}
   435  , 			{
   436  				"patchline" : 				{
   437  					"destination" : [ "obj-29", 0 ],
   438  					"order" : 0,
   439  					"source" : [ "obj-27", 0 ]
   440  				}
   441  
   442  			}
   443  , 			{
   444  				"patchline" : 				{
   445  					"destination" : [ "obj-30", 2 ],
   446  					"order" : 1,
   447  					"source" : [ "obj-27", 0 ]
   448  				}
   449  
   450  			}
   451  , 			{
   452  				"patchline" : 				{
   453  					"destination" : [ "obj-26", 0 ],
   454  					"source" : [ "obj-28", 0 ]
   455  				}
   456  
   457  			}
   458  , 			{
   459  				"patchline" : 				{
   460  					"destination" : [ "obj-26", 1 ],
   461  					"source" : [ "obj-29", 0 ]
   462  				}
   463  
   464  			}
   465  , 			{
   466  				"patchline" : 				{
   467  					"destination" : [ "obj-10", 0 ],
   468  					"source" : [ "obj-3", 0 ]
   469  				}
   470  
   471  			}
   472  , 			{
   473  				"patchline" : 				{
   474  					"destination" : [ "obj-28", 0 ],
   475  					"source" : [ "obj-30", 2 ]
   476  				}
   477  
   478  			}
   479  , 			{
   480  				"patchline" : 				{
   481  					"destination" : [ "obj-31", 1 ],
   482  					"source" : [ "obj-32", 0 ]
   483  				}
   484  
   485  			}
   486  , 			{
   487  				"patchline" : 				{
   488  					"destination" : [ "obj-22", 0 ],
   489  					"order" : 1,
   490  					"source" : [ "obj-34", 0 ]
   491  				}
   492  
   493  			}
   494  , 			{
   495  				"patchline" : 				{
   496  					"destination" : [ "obj-32", 0 ],
   497  					"order" : 0,
   498  					"source" : [ "obj-34", 0 ]
   499  				}
   500  
   501  			}
   502  , 			{
   503  				"patchline" : 				{
   504  					"destination" : [ "obj-45", 1 ],
   505  					"order" : 1,
   506  					"source" : [ "obj-4", 0 ]
   507  				}
   508  
   509  			}
   510  , 			{
   511  				"patchline" : 				{
   512  					"destination" : [ "obj-9", 1 ],
   513  					"order" : 0,
   514  					"source" : [ "obj-4", 0 ]
   515  				}
   516  
   517  			}
   518  , 			{
   519  				"patchline" : 				{
   520  					"destination" : [ "obj-27", 0 ],
   521  					"order" : 0,
   522  					"source" : [ "obj-45", 0 ]
   523  				}
   524  
   525  			}
   526  , 			{
   527  				"patchline" : 				{
   528  					"destination" : [ "obj-5", 0 ],
   529  					"order" : 1,
   530  					"source" : [ "obj-45", 0 ]
   531  				}
   532  
   533  			}
   534  , 			{
   535  				"patchline" : 				{
   536  					"destination" : [ "obj-45", 0 ],
   537  					"source" : [ "obj-47", 0 ]
   538  				}
   539  
   540  			}
   541  , 			{
   542  				"patchline" : 				{
   543  					"destination" : [ "obj-2", 0 ],
   544  					"order" : 0,
   545  					"source" : [ "obj-5", 0 ]
   546  				}
   547  
   548  			}
   549  , 			{
   550  				"patchline" : 				{
   551  					"destination" : [ "obj-20", 1 ],
   552  					"order" : 1,
   553  					"source" : [ "obj-5", 0 ]
   554  				}
   555  
   556  			}
   557  , 			{
   558  				"patchline" : 				{
   559  					"destination" : [ "obj-20", 0 ],
   560  					"order" : 2,
   561  					"source" : [ "obj-5", 0 ]
   562  				}
   563  
   564  			}
   565   ],
   566  		"dependency_cache" : [ 			{
   567  				"name" : "ewma.mxo",
   568  				"type" : "iLaX"
   569  			}
   570  , 			{
   571  				"name" : "maxgo.mxo",
   572  				"type" : "iLaX"
   573  			}
   574   ],
   575  		"autosave" : 0
   576  	}
   577  
   578  }