Max patches for displaying energy distribution of ambisonic signals as point clouds in OpenGL
Marlon Schumacher
07.07.24 8041897857c9e03ecdd647588c060884ec09e019
commit | author | age
9dafdb 1 {
MS 2     "patcher" :     {
3         "fileversion" : 1,
4         "appversion" :         {
5             "major" : 8,
6             "minor" : 5,
7             "revision" : 6,
8             "architecture" : "x64",
9             "modernui" : 1
10         }
11 ,
12         "classnamespace" : "box",
13         "rect" : [ 511.0, 226.0, 1032.0, 650.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                     "bubble" : 1,
44                     "id" : "obj-4",
45                     "maxclass" : "comment",
46                     "numinlets" : 1,
47                     "numoutlets" : 0,
48                     "patching_rect" : [ 572.740723669528961, 384.185178279876709, 193.0, 24.0 ],
49                     "text" : "change distance threshold here"
50                 }
51
52             }
53 ,             {
54                 "box" :                 {
55                     "format" : 6,
56                     "id" : "obj-42",
57                     "maxclass" : "flonum",
58                     "numinlets" : 1,
59                     "numoutlets" : 2,
60                     "outlettype" : [ "", "bang" ],
61                     "parameter_enable" : 0,
62                     "patching_rect" : [ 530.740723669528961, 255.259250104427338, 99.629628002643585, 22.0 ]
63                 }
64
65             }
66 ,             {
67                 "box" :                 {
68                     "id" : "obj-40",
69                     "maxclass" : "message",
70                     "numinlets" : 2,
71                     "numoutlets" : 1,
72                     "outlettype" : [ "" ],
73                     "patching_rect" : [ 530.740723669528961, 283.407397329807281, 87.0, 22.0 ],
74                     "text" : "scale $1 $1 $1"
75                 }
76
77             }
78 ,             {
79                 "box" :                 {
80                     "id" : "obj-38",
81                     "maxclass" : "number",
82                     "numinlets" : 1,
83                     "numoutlets" : 2,
84                     "outlettype" : [ "", "bang" ],
85                     "parameter_enable" : 0,
86                     "patching_rect" : [ 392.324179232120514, 251.111102879047394, 74.444443643093109, 22.0 ]
87                 }
88
89             }
90 ,             {
91                 "box" :                 {
92                     "id" : "obj-36",
93                     "maxclass" : "message",
94                     "numinlets" : 2,
95                     "numoutlets" : 1,
96                     "outlettype" : [ "" ],
97                     "patching_rect" : [ 462.222207069396973, 283.407397329807281, 45.0, 22.0 ],
98                     "text" : "dim $1"
99                 }
100
101             }
102 ,             {
103                 "box" :                 {
104                     "id" : "obj-34",
105                     "maxclass" : "message",
106                     "numinlets" : 2,
107                     "numoutlets" : 1,
108                     "outlettype" : [ "" ],
109                     "patching_rect" : [ 392.324179232120514, 283.407397329807281, 65.0, 22.0 ],
110                     "text" : "dim $1 2 1"
111                 }
112
113             }
114 ,             {
115                 "box" :                 {
116                     "id" : "obj-30",
117                     "maxclass" : "newobj",
118                     "numinlets" : 1,
119                     "numoutlets" : 2,
120                     "outlettype" : [ "", "" ],
121                     "patching_rect" : [ 120.851481199264526, 254.814806461334229, 131.0, 22.0 ],
122                     "text" : "jit.mo.time @speed 0.1"
123                 }
124
125             }
126 ,             {
127                 "box" :                 {
128                     "id" : "obj-29",
129                     "maxclass" : "message",
130                     "numinlets" : 2,
131                     "numoutlets" : 1,
132                     "outlettype" : [ "" ],
133                     "patching_rect" : [ 120.851481199264526, 302.222212314605713, 108.0, 22.0 ],
134                     "text" : "offset 0 0 $1, bang"
135                 }
136
137             }
138 ,             {
139                 "box" :                 {
140                     "id" : "obj-27",
141                     "maxclass" : "message",
142                     "numinlets" : 2,
143                     "numoutlets" : 1,
144                     "outlettype" : [ "" ],
145                     "patching_rect" : [ 261.481472909450531, 302.222212314605713, 109.0, 22.0 ],
146                     "text" : "setattr basis sign 1"
147                 }
148
149             }
150 ,             {
151                 "box" :                 {
152                     "id" : "obj-25",
153                     "maxclass" : "newobj",
154                     "numinlets" : 1,
155                     "numoutlets" : 1,
156                     "outlettype" : [ "bang" ],
157                     "patching_rect" : [ 261.481472909450531, 274.814805805683136, 58.0, 22.0 ],
158                     "text" : "loadbang"
159                 }
160
161             }
162 ,             {
163                 "box" :                 {
164                     "id" : "obj-24",
165                     "maxclass" : "newobj",
166                     "numinlets" : 1,
167                     "numoutlets" : 2,
168                     "outlettype" : [ "jit_matrix", "" ],
169                     "patching_rect" : [ 120.851481199264526, 419.814801871776581, 133.0, 22.0 ],
170                     "text" : "jit.matrix 3 float32 1000"
171                 }
172
173             }
174 ,             {
175                 "box" :                 {
176                     "id" : "obj-23",
177                     "maxclass" : "newobj",
178                     "numinlets" : 1,
179                     "numoutlets" : 2,
180                     "outlettype" : [ "jit_matrix", "" ],
181                     "patching_rect" : [ 120.851481199264526, 354.814803183078766, 370.0, 22.0 ],
182                     "text" : "jit.bfg 3 float32 1000 2 1 @basis noise.simplex @scale 100 100 100"
183                 }
184
185             }
186 ,             {
187                 "box" :                 {
188                     "format" : 6,
189                     "id" : "obj-22",
190                     "maxclass" : "flonum",
191                     "numinlets" : 1,
192                     "numoutlets" : 2,
193                     "outlettype" : [ "", "bang" ],
194                     "parameter_enable" : 0,
195                     "patching_rect" : [ 392.324179232120514, 462.96294778585434, 50.0, 22.0 ]
196                 }
197
198             }
199 ,             {
200                 "box" :                 {
201                     "id" : "obj-20",
202                     "maxclass" : "message",
203                     "numinlets" : 2,
204                     "numoutlets" : 1,
205                     "outlettype" : [ "" ],
206                     "patching_rect" : [ 392.324179232120514, 492.592576444149017, 101.0, 22.0 ],
207                     "text" : "color $1 $1 $1 $1"
208                 }
209
210             }
211 ,             {
212                 "box" :                 {
213                     "id" : "obj-15",
214                     "maxclass" : "newobj",
215                     "numinlets" : 9,
216                     "numoutlets" : 2,
217                     "outlettype" : [ "", "" ],
218                     "patching_rect" : [ 73.972340226173401, 562.828453183174133, 371.0, 22.0 ],
219                     "text" : "jit.gl.mesh game @draw_mode points @color 1 1 1 1 @point_size 5"
220                 }
221
222             }
223 ,             {
224                 "box" :                 {
225                     "format" : 6,
226                     "id" : "obj-18",
227                     "maxclass" : "flonum",
228                     "numinlets" : 1,
229                     "numoutlets" : 2,
230                     "outlettype" : [ "", "bang" ],
231                     "parameter_enable" : 0,
232                     "patching_rect" : [ 520.740723669528961, 385.185178279876709, 50.0, 22.0 ]
233                 }
234
235             }
236 ,             {
237                 "box" :                 {
238                     "id" : "obj-16",
239                     "maxclass" : "message",
240                     "numinlets" : 2,
241                     "numoutlets" : 1,
242                     "outlettype" : [ "" ],
243                     "patching_rect" : [ 520.740723669528961, 423.596483767032623, 97.0, 22.0 ],
244                     "text" : "distThreshold $1"
245                 }
246
247             }
248 ,             {
249                 "box" :                 {
250                     "id" : "obj-14",
251                     "maxclass" : "newobj",
252                     "numinlets" : 1,
253                     "numoutlets" : 1,
254                     "outlettype" : [ "" ],
255                     "patching_rect" : [ 520.740723669528961, 453.93761420249939, 90.0, 22.0 ],
256                     "text" : "prepend param"
257                 }
258
259             }
260 ,             {
261                 "box" :                 {
262                     "id" : "obj-13",
263                     "maxclass" : "newobj",
264                     "numinlets" : 1,
265                     "numoutlets" : 2,
266                     "outlettype" : [ "jit_gl_buffer", "" ],
267                     "patching_rect" : [ 120.814444065093994, 454.205647110939026, 205.0, 22.0 ],
268                     "text" : "jit.gl.buffer @type position @texbuf 1"
269                 }
270
271             }
272 ,             {
273                 "box" :                 {
274                     "id" : "obj-11",
275                     "maxclass" : "newobj",
276                     "numinlets" : 1,
277                     "numoutlets" : 2,
278                     "outlettype" : [ "", "" ],
279                     "patching_rect" : [ 520.740723669528961, 487.899602234363556, 326.0, 22.0 ],
280                     "text" : "jit.gl.shader game @name shadyLines @file shadyLines.jxs"
281                 }
282
283             }
284 ,             {
285                 "box" :                 {
286                     "id" : "obj-8",
287                     "maxclass" : "newobj",
288                     "numinlets" : 9,
289                     "numoutlets" : 2,
290                     "outlettype" : [ "", "" ],
291                     "patching_rect" : [ 120.814444065093994, 521.5691938996315, 758.0, 22.0 ],
292                     "text" : "jit.gl.mesh game @draw_mode points @color 1 1 1 1 @point_size 10 @shader shadyLines @blend_enable 1 @depth_enable 0 @blend add"
293                 }
294
295             }
296 ,             {
297                 "box" :                 {
298                     "id" : "obj-19",
299                     "maxclass" : "message",
300                     "numinlets" : 2,
301                     "numoutlets" : 1,
302                     "outlettype" : [ "" ],
303                     "patching_rect" : [ 133.0, 83.0, 70.0, 22.0 ],
304                     "text" : "anim_reset"
305                 }
306
307             }
308 ,             {
309                 "box" :                 {
310                     "id" : "obj-7",
311                     "maxclass" : "newobj",
312                     "numinlets" : 1,
313                     "numoutlets" : 0,
314                     "patching_rect" : [ 514.0, 183.0, 51.0, 22.0 ],
315                     "text" : "s metro"
316                 }
317
318             }
319 ,             {
320                 "box" :                 {
321                     "id" : "obj-6",
322                     "maxclass" : "newobj",
323                     "numinlets" : 1,
324                     "numoutlets" : 2,
325                     "outlettype" : [ "", "" ],
326                     "patching_rect" : [ 221.0, 83.0, 210.0, 22.0 ],
327                     "text" : "jit.anim.drive @ui_listen 1 @speed 20"
328                 }
329
330             }
331 ,             {
332                 "box" :                 {
333                     "fontface" : 0,
334                     "fontname" : "Arial",
335                     "fontsize" : 12.0,
336                     "id" : "obj-12",
337                     "maxclass" : "jit.fpsgui",
338                     "numinlets" : 1,
339                     "numoutlets" : 2,
340                     "outlettype" : [ "", "" ],
341                     "patching_rect" : [ 416.0, 176.0, 80.0, 35.0 ]
342                 }
343
344             }
345 ,             {
346                 "box" :                 {
347                     "id" : "obj-10",
348                     "maxclass" : "newobj",
349                     "numinlets" : 1,
350                     "numoutlets" : 2,
351                     "outlettype" : [ "jit_gl_texture", "" ],
352                     "patching_rect" : [ 204.0, 114.0, 397.0, 22.0 ],
353                     "text" : "jit.gl.camera game @position 0 0 2 @lookat 0 0 0 @tripod 1 @locklook 1"
354                 }
355
356             }
357 ,             {
358                 "box" :                 {
359                     "id" : "obj-3",
360                     "maxclass" : "toggle",
361                     "numinlets" : 1,
362                     "numoutlets" : 1,
363                     "outlettype" : [ "int" ],
364                     "parameter_enable" : 0,
365                     "patching_rect" : [ 87.0, 114.0, 24.0, 24.0 ]
366                 }
367
368             }
369 ,             {
370                 "box" :                 {
371                     "id" : "obj-2",
372                     "maxclass" : "newobj",
373                     "numinlets" : 1,
374                     "numoutlets" : 3,
375                     "outlettype" : [ "jit_matrix", "bang", "" ],
376                     "patching_rect" : [ 87.0, 147.599990844726562, 684.0, 22.0 ],
377                     "text" : "jit.world game @fsaa 1 @size 320 240 @windowposition 1500 100 @floating 1 @erase_color 0 0 0 1 @fsmenubar 0 @fps 120"
378                 }
379
380             }
381  ],
382         "lines" : [             {
383                 "patchline" :                 {
384                     "destination" : [ "obj-15", 0 ],
385                     "order" : 1,
386                     "source" : [ "obj-13", 0 ]
387                 }
388
389             }
390 ,             {
391                 "patchline" :                 {
392                     "destination" : [ "obj-8", 0 ],
393                     "order" : 0,
394                     "source" : [ "obj-13", 0 ]
395                 }
396
397             }
398 ,             {
399                 "patchline" :                 {
400                     "destination" : [ "obj-11", 0 ],
401                     "source" : [ "obj-14", 0 ]
402                 }
403
404             }
405 ,             {
406                 "patchline" :                 {
407                     "destination" : [ "obj-14", 0 ],
408                     "source" : [ "obj-16", 0 ]
409                 }
410
411             }
412 ,             {
413                 "patchline" :                 {
414                     "destination" : [ "obj-16", 0 ],
415                     "source" : [ "obj-18", 0 ]
416                 }
417
418             }
419 ,             {
420                 "patchline" :                 {
421                     "destination" : [ "obj-10", 0 ],
422                     "order" : 1,
423                     "source" : [ "obj-19", 0 ]
424                 }
425
426             }
427 ,             {
428                 "patchline" :                 {
429                     "destination" : [ "obj-6", 0 ],
430                     "order" : 0,
431                     "source" : [ "obj-19", 0 ]
432                 }
433
434             }
435 ,             {
436                 "patchline" :                 {
437                     "destination" : [ "obj-12", 0 ],
438                     "order" : 1,
439                     "source" : [ "obj-2", 1 ]
440                 }
441
442             }
443 ,             {
444                 "patchline" :                 {
445                     "destination" : [ "obj-7", 0 ],
446                     "order" : 0,
447                     "source" : [ "obj-2", 1 ]
448                 }
449
450             }
451 ,             {
452                 "patchline" :                 {
453                     "destination" : [ "obj-8", 0 ],
454                     "source" : [ "obj-20", 0 ]
455                 }
456
457             }
458 ,             {
459                 "patchline" :                 {
460                     "destination" : [ "obj-20", 0 ],
461                     "source" : [ "obj-22", 0 ]
462                 }
463
464             }
465 ,             {
466                 "patchline" :                 {
467                     "destination" : [ "obj-24", 0 ],
468                     "source" : [ "obj-23", 0 ]
469                 }
470
471             }
472 ,             {
473                 "patchline" :                 {
474                     "destination" : [ "obj-13", 0 ],
475                     "source" : [ "obj-24", 0 ]
476                 }
477
478             }
479 ,             {
480                 "patchline" :                 {
481                     "destination" : [ "obj-27", 0 ],
482                     "source" : [ "obj-25", 0 ]
483                 }
484
485             }
486 ,             {
487                 "patchline" :                 {
488                     "destination" : [ "obj-23", 0 ],
489                     "source" : [ "obj-27", 0 ]
490                 }
491
492             }
493 ,             {
494                 "patchline" :                 {
495                     "destination" : [ "obj-23", 0 ],
496                     "source" : [ "obj-29", 0 ]
497                 }
498
499             }
500 ,             {
501                 "patchline" :                 {
502                     "destination" : [ "obj-2", 0 ],
503                     "source" : [ "obj-3", 0 ]
504                 }
505
506             }
507 ,             {
508                 "patchline" :                 {
509                     "destination" : [ "obj-29", 0 ],
510                     "source" : [ "obj-30", 0 ]
511                 }
512
513             }
514 ,             {
515                 "patchline" :                 {
516                     "destination" : [ "obj-23", 0 ],
517                     "source" : [ "obj-34", 0 ]
518                 }
519
520             }
521 ,             {
522                 "patchline" :                 {
523                     "destination" : [ "obj-24", 0 ],
524                     "source" : [ "obj-36", 0 ]
525                 }
526
527             }
528 ,             {
529                 "patchline" :                 {
530                     "destination" : [ "obj-34", 0 ],
531                     "order" : 1,
532                     "source" : [ "obj-38", 0 ]
533                 }
534
535             }
536 ,             {
537                 "patchline" :                 {
538                     "destination" : [ "obj-36", 0 ],
539                     "order" : 0,
540                     "source" : [ "obj-38", 0 ]
541                 }
542
543             }
544 ,             {
545                 "patchline" :                 {
546                     "destination" : [ "obj-23", 0 ],
547                     "source" : [ "obj-40", 0 ]
548                 }
549
550             }
551 ,             {
552                 "patchline" :                 {
553                     "destination" : [ "obj-40", 0 ],
554                     "source" : [ "obj-42", 0 ]
555                 }
556
557             }
558 ,             {
559                 "patchline" :                 {
560                     "destination" : [ "obj-10", 0 ],
561                     "source" : [ "obj-6", 0 ]
562                 }
563
564             }
565  ],
566         "dependency_cache" : [             {
567                 "name" : "jit.mo.time.mxo",
568                 "type" : "iLaX"
569             }
570  ],
571         "autosave" : 0
572     }
573
574 }