-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmain.maxpat
More file actions
4764 lines (4387 loc) · 118 KB
/
Copy pathmain.maxpat
File metadata and controls
4764 lines (4387 loc) · 118 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"patcher" : {
"fileversion" : 1,
"appversion" : {
"major" : 6,
"minor" : 1,
"revision" : 3,
"architecture" : "x86"
}
,
"rect" : [ 55.0, 68.0, 2198.0, 1243.0 ],
"bglocked" : 0,
"openinpresentation" : 1,
"default_fontsize" : 12.0,
"default_fontface" : 0,
"default_fontname" : "Arial",
"gridonopen" : 0,
"gridsize" : [ 15.0, 15.0 ],
"gridsnaponopen" : 0,
"statusbarvisible" : 2,
"toolbarvisible" : 1,
"boxanimatetime" : 200,
"imprint" : 0,
"enablehscroll" : 1,
"enablevscroll" : 1,
"devicewidth" : 0.0,
"description" : "",
"digest" : "",
"tags" : "",
"boxes" : [ {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"frgb" : 0.0,
"id" : "obj-78",
"linecount" : 40,
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 1987.0, 614.0, 155.0, 543.0 ],
"presentation" : 1,
"presentation_linecount" : 18,
"presentation_rect" : [ 1249.0, 722.0, 546.0, 248.0 ],
"text" : "The encryption scheme is implemented as follows:\n\nLet S be a message which is a binary string\nL is the length of the embedded message which represents how many bits are in S\nT, a parameter which represents how many seconds of sound are used per secret bit such that T x L is the time needed to decrypt the message. In this patch, T is regulated by a metronome.\nB, the cover sound which is generated from the public key\n\nTo generate share 1 (s1):\n1. Initialize s1 to B\n2. For every T seconds of data, flip a coin c.\n3. If c is 1, multiply s1 by -1 implying a 180 degree phase shift. Otherwise do nothing.\n\nTo generate share 2 (s2):\n1. Initialize s2 to B\n2. For every T seconds of data, flip a coin c.\n3. Compute c' = ~(c XOR S_t) where S_t is the bit of the secret message at timestep t\n4. If c' is 1, multiply s2 by -1, otherwise do nothing. "
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"frgb" : 0.0,
"id" : "obj-77",
"linecount" : 16,
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 1987.0, 373.0, 151.0, 221.0 ],
"presentation" : 1,
"presentation_linecount" : 4,
"presentation_rect" : [ 1249.0, 639.0, 541.0, 60.0 ],
"text" : "If we are given two harmonic sound waves with the same amplitude and frequency but one is phase shifted by 180 degrees and we superimpose them on top of each other, they will completely destroy each other. On the other hand if we superimpose two waves that are 0 degrees phase shifted, the resulting wave will have an amplitude which is twice the original one."
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"frgb" : 0.0,
"id" : "obj-75",
"linecount" : 5,
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 1987.0, 1176.5, 153.0, 74.0 ],
"presentation" : 1,
"presentation_linecount" : 2,
"presentation_rect" : [ 1249.0, 1001.0, 541.0, 33.0 ],
"text" : "To decrypt the message, one plays the audio through two channels on a stereo system which will reveal the encoded secret."
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"frgb" : 0.0,
"id" : "obj-73",
"linecount" : 19,
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 1987.0, 87.0, 150.0, 261.0 ],
"presentation" : 1,
"presentation_linecount" : 7,
"presentation_rect" : [ 1249.0, 180.0, 541.0, 100.0 ],
"text" : "This composition is a sonic representation of secret sharing scheme that uses the property of interference in waves and the stereophonic perception of the human auditory system. In this cryptographic scheme, a secret message is embedded into two audio streams which are generated by mapping an alphanumeric string such as a RSA public key to a series of tones.\n\n\n\n"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"frgb" : 0.0,
"id" : "obj-54",
"linecount" : 2,
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 115.5, 59.0, 150.0, 33.0 ],
"presentation" : 1,
"presentation_rect" : [ 159.0, 56.0, 234.0, 20.0 ],
"text" : "Audio based secret sharing scheme"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"frgb" : 0.0,
"id" : "obj-38",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 115.5, 39.0, 150.0, 20.0 ],
"presentation" : 1,
"presentation_rect" : [ 159.0, 88.0, 150.0, 20.0 ],
"text" : "Tony Kaitong Chen"
}
}
, {
"box" : {
"fontface" : 1,
"fontname" : "Arial",
"fontsize" : 16.0,
"frgb" : 0.0,
"id" : "obj-27",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 115.5, 15.0, 210.0, 24.0 ],
"presentation" : 1,
"presentation_rect" : [ 157.0, 32.0, 210.0, 24.0 ],
"text" : "stereo-cipher"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-34",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 319.5, 373.0, 89.0, 20.0 ],
"text" : "loadmess 220."
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"frgb" : 0.0,
"id" : "obj-33",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 377.5, 415.0, 49.0, 20.0 ],
"presentation" : 1,
"presentation_rect" : [ 202.0, 222.0, 49.0, 20.0 ],
"text" : "BPM"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-32",
"maxclass" : "number",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "int", "bang" ],
"parameter_enable" : 0,
"patching_rect" : [ 319.5, 414.0, 50.0, 20.0 ],
"presentation" : 1,
"presentation_rect" : [ 260.0, 222.0, 50.0, 20.0 ]
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-13",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 387.0, 562.0, 89.0, 20.0 ],
"text" : "loadmess 220."
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"frgb" : 0.0,
"id" : "obj-211",
"linecount" : 2,
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 541.5, 688.0, 150.0, 33.0 ],
"presentation" : 1,
"presentation_rect" : [ 75.0, 722.0, 176.0, 20.0 ],
"text" : "180 degree phase shift share 2"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"frgb" : 0.0,
"id" : "obj-210",
"linecount" : 2,
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 82.5, 674.0, 150.0, 33.0 ],
"presentation" : 1,
"presentation_rect" : [ 75.0, 694.0, 176.0, 20.0 ],
"text" : "180 degree phase shift share 1"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"frgb" : 0.0,
"id" : "obj-195",
"linecount" : 2,
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 1057.357178, 869.0, 150.0, 33.0 ],
"presentation" : 1,
"presentation_linecount" : 2,
"presentation_rect" : [ 340.0, 606.0, 150.0, 33.0 ],
"text" : "green: share 1\nred: share 2"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"frgb" : 0.0,
"id" : "obj-191",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 387.0, 542.0, 90.0, 20.0 ],
"presentation" : 1,
"presentation_rect" : [ 159.0, 180.0, 95.0, 20.0 ],
"text" : "root frequency"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"frgb" : 0.0,
"id" : "obj-188",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 1717.5, 304.0, 150.0, 20.0 ],
"presentation" : 1,
"presentation_rect" : [ 897.0, 557.0, 150.0, 20.0 ],
"text" : "Embed secret"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"frgb" : 0.0,
"id" : "obj-185",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 1809.0, 358.0, 150.0, 20.0 ],
"presentation" : 1,
"presentation_rect" : [ 836.0, 153.0, 150.0, 20.0 ],
"text" : "Enter secret"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"frgb" : 0.0,
"id" : "obj-184",
"linecount" : 2,
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 124.785889, 1598.0, 150.0, 33.0 ],
"presentation" : 1,
"presentation_rect" : [ 836.0, 394.0, 364.0, 20.0 ],
"text" : "Waveform representation of secret message"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-179",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "signal" ],
"patching_rect" : [ 51.5, 1616.0, 32.5, 20.0 ],
"text" : "+~"
}
}
, {
"box" : {
"bgcolor" : [ 0.0, 0.0, 0.0, 1.0 ],
"bordercolor" : [ 0.699983, 0.699983, 0.699983, 1.0 ],
"fgcolor" : [ 1.0, 0.999974, 0.999991, 1.0 ],
"gridcolor" : [ 0.329412, 0.329412, 0.329412, 0.15 ],
"id" : "obj-178",
"maxclass" : "scope~",
"numinlets" : 2,
"numoutlets" : 0,
"patching_rect" : [ 51.5, 1655.5, 473.142883, 129.0 ],
"presentation" : 1,
"presentation_rect" : [ 836.0, 414.0, 364.0, 130.0 ],
"range" : [ -5.0, 5.0 ]
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-176",
"maxclass" : "newobj",
"numinlets" : 0,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 100.785889, 1559.0, 41.0, 20.0 ],
"text" : "r out2"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-177",
"maxclass" : "newobj",
"numinlets" : 0,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 51.5, 1559.0, 41.0, 20.0 ],
"text" : "r out1"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"frgb" : 0.0,
"id" : "obj-175",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 938.0, 15.0, 150.0, 20.0 ],
"presentation" : 1,
"presentation_rect" : [ 398.0, 557.0, 150.0, 20.0 ],
"text" : "Update"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"frgb" : 0.0,
"id" : "obj-172",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 1024.0, 62.0, 150.0, 20.0 ],
"presentation" : 1,
"presentation_rect" : [ 340.0, 153.0, 150.0, 20.0 ],
"text" : "Enter public key"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"frgb" : 0.0,
"id" : "obj-170",
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 271.0, 415.0, 39.0, 20.0 ],
"presentation" : 1,
"presentation_rect" : [ 211.0, 262.5, 40.0, 20.0 ],
"text" : "Start"
}
}
, {
"box" : {
"id" : "obj-165",
"maxclass" : "button",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"patching_rect" : [ 908.0, 15.0, 20.0, 20.0 ],
"presentation" : 1,
"presentation_rect" : [ 340.0, 544.0, 46.0, 46.0 ]
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"frgb" : 0.0,
"id" : "obj-166",
"linecount" : 136,
"maxclass" : "textedit",
"numinlets" : 1,
"numoutlets" : 4,
"outlettype" : [ "", "int", "", "" ],
"parameter_enable" : 0,
"patching_rect" : [ 908.0, 47.0, 100.0, 50.0 ],
"presentation" : 1,
"presentation_linecount" : 25,
"presentation_rect" : [ 340.0, 180.0, 496.0, 364.0 ],
"text" : "OW+IyIh0eddn2A8FMDTm8/I+3NdpPNyNvktOJIs87obOd6DMNDoSDlWmGjDbPKqV J/vQ1Um06XB0wXVShFNTEBqFDyIG3p6eLuL+wr4Z36PfGinxj0z7gWU/P6Xt5lCh ubyTl4iNADLtRHTU82H2VJJf0JiZ4s0FsQuHIs6jYCp0WIzYVNj1p7sVnueMr5S9 B9gp4C5TNnuPnWrMxOdSoAvjOxVLmyImkj6WqD2IWQqbxj2wBJiglw5ZDdCLPCsi 6EGnoED27LyoWSxrGwAqJzFxdEQr7jVYp+fEnKucnrjJOHeId9e6j4eP4FA2no0R Mu0Ms4c92wVZ563PE/w5i34TUgV8LHSwGwHLAH8VvZk+k73vCBWvEz9ThaBSAAgY DWvHNyTaJylomG8ZTINWjzsIiXW+9jhZuqmiKikj3ZpS/XS2wy4+QqR+dulrWaUD L+uN/vdWDL0KU2wZ7jLI0SNeKmOWrY8UoxSKTVzCJKXG34FhLGdLGYl9hCQ0MU8t B5VeDgEckK1bm4GeoVDMuEnQ+MlIiS6K+9Qxc0QBEXEnOo3JqPS1ifkNxakculKp 9d5r3q9hZ5uw3KE5CXlUhPP9rOmmHmRHjnZfb+2Xzo3b/igZnv2IBhyQEgZ2RInl g6QhpQFTPHiHAC2ya7UyHqEAU4GRyLIAG6jqevVkHDtZFfH9SukgArJXn76102gj AJL8oJhMbvAKaU2kHx2uHlzXf6BP+s00sGdCx/GAPS0AysSJPujOKwm+9wT7m5Rz PDOKeQEw3fG1RQt0rya9I/L9NFHOtOef5tJqa0C1L6HsTiluoWyTgW1iuJw06OYD 3KBVqPfMf9nCiUM3FsX0cs5WzY8tF/wBL8GFVx++VoS8nRAT5PhlPG/IxBnD60vN 55lSfPV9yQPnxxOrNB55qgwl0UEYbRXsLstaJVt/6lU2UhPfLsXxAcSiq1IsV3VO Jt1HDAlaKpOWEf4CHGmfbvGAtdaN3Uh6TIFVddz4qHnsOECvgU6ZdX3N4L8MuKfR hugyWj2Tt+7QvYWDt+M2MeY9K2OKyxG+UsQLaNOr3NGoZe/DNaRXrmEkUYkHIPJt kIQ/KAfqjNVVu85Lmrum9ERvICMlqHxtEoyvATRrjSN9aJKB4kOTWQnbHiALRRWX lgHjlqCknH81KcsE8vxB9rIS4gA1hmTF/3VNso5DaZcLV2lZsyxU9PnauXICSdg9 FxilE82N0s36qpJzg9IrBqF2OqSWGungBEG3dGm78XSL3Dsc90/dA1SOZ8Q3lSfp MD9lBJqfrWudDJv1iNVzcoMbboTCtdIhagANw/vojqwvKXx35IduR/tSkddqVCzL FFmOQIFdI4fUoa1RcYHHhM3osWgdt6wAgldKZ+4/pupeE0HH92fWpx4Y6SCBII2E uG5hwyPkv2L044RPW3qvATenPSP+gRTp+jy74lufcUDzHO0CML3azUj0BqI1pkju DWlG1CVZpPELSuu/9EN05aWqKp8dtiv0by4K4iPQxdHPZUR2fdHXWWNYQjcYEauh dcmTl0N1434SrsE7cw2eAiQh54RELYtNg36IjBm+Te37ezqTSp2THuK5+cstswfY"
}
}
, {
"box" : {
"id" : "obj-162",
"maxclass" : "button",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"patching_rect" : [ 1686.0, 304.0, 20.0, 20.0 ],
"presentation" : 1,
"presentation_rect" : [ 836.0, 544.0, 47.0, 47.0 ]
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"frgb" : 0.0,
"id" : "obj-154",
"linecount" : 31,
"maxclass" : "textedit",
"numinlets" : 1,
"numoutlets" : 4,
"outlettype" : [ "", "int", "", "" ],
"parameter_enable" : 0,
"patching_rect" : [ 1686.0, 343.0, 100.0, 50.0 ],
"presentation" : 1,
"presentation_linecount" : 8,
"presentation_rect" : [ 836.0, 180.0, 364.0, 214.0 ],
"text" : "I met a traveller from an antique land Who said: Two vast and trunkless legs of stone Stand in the desert. Near them, on the sand, Half sunk, a shattered visage lies, whose frown, And wrinkled lip, and sneer of cold command, Tell that its sculptor well those passions read Which yet survive, stamped on these lifeless things, The hand that mocked them and the heart that fed: And on the pedestal these words appear: \"My name is Ozymandias, king of kings\" a a"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-152",
"maxclass" : "newobj",
"numinlets" : 0,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 434.357147, 1256.0, 31.0, 20.0 ],
"text" : "r b1"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-151",
"maxclass" : "newobj",
"numinlets" : 0,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 1192.357178, 1239.0, 31.0, 20.0 ],
"text" : "r b2"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-150",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 561.0, 762.0, 33.0, 20.0 ],
"text" : "s b2"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-149",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 291.75, 736.0, 33.0, 20.0 ],
"text" : "s b1"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-147",
"maxclass" : "newobj",
"numinlets" : 0,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 304.5, 621.0, 66.0, 20.0 ],
"text" : "r multiplier"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-146",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 550.25, 480.0, 68.0, 20.0 ],
"text" : "s multiplier"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-144",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "int" ],
"patching_rect" : [ 550.25, 373.0, 32.5, 20.0 ],
"text" : "+"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-143",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "int" ],
"patching_rect" : [ 489.5, 327.0, 32.5, 20.0 ],
"text" : "+"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-140",
"maxclass" : "flonum",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "float", "bang" ],
"parameter_enable" : 0,
"patching_rect" : [ 387.0, 621.0, 50.0, 20.0 ],
"presentation" : 1,
"presentation_rect" : [ 260.0, 180.0, 50.0, 20.0 ]
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-133",
"maxclass" : "flonum",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "float", "bang" ],
"parameter_enable" : 0,
"patching_rect" : [ 550.25, 445.0, 50.0, 20.0 ]
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-122",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "float" ],
"patcher" : {
"fileversion" : 1,
"appversion" : {
"major" : 6,
"minor" : 1,
"revision" : 3,
"architecture" : "x86"
}
,
"rect" : [ 1214.0, 333.0, 1179.0, 736.0 ],
"bglocked" : 0,
"openinpresentation" : 0,
"default_fontsize" : 12.0,
"default_fontface" : 0,
"default_fontname" : "Arial",
"gridonopen" : 0,
"gridsize" : [ 15.0, 15.0 ],
"gridsnaponopen" : 0,
"statusbarvisible" : 2,
"toolbarvisible" : 1,
"boxanimatetime" : 200,
"imprint" : 0,
"enablehscroll" : 1,
"enablevscroll" : 1,
"devicewidth" : 0.0,
"description" : "",
"digest" : "",
"tags" : "",
"boxes" : [ {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"frgb" : 0.0,
"id" : "obj-36",
"linecount" : 3,
"maxclass" : "comment",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 174.0, 40.0, 155.0, 47.0 ],
"text" : "This subpatch selects the frequency multiplier based on input mod 12"
}
}
, {
"box" : {
"comment" : "",
"id" : "obj-18",
"maxclass" : "outlet",
"numinlets" : 1,
"numoutlets" : 0,
"patching_rect" : [ 174.0, 618.0, 25.0, 25.0 ]
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-17",
"maxclass" : "flonum",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "float", "bang" ],
"parameter_enable" : 0,
"patching_rect" : [ 174.0, 559.0, 50.0, 20.0 ]
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-15",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 391.0, 168.0, 61.0, 18.0 ],
"text" : "1.887749"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-13",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 360.0, 192.0, 61.0, 18.0 ],
"text" : "1.781797"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-10",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 329.0, 216.0, 61.0, 18.0 ],
"text" : "1.681793"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-8",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 298.0, 242.0, 61.0, 18.0 ],
"text" : "1.587401"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-6",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 267.0, 266.0, 61.0, 18.0 ],
"text" : "1.498307"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-4",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 236.0, 293.0, 61.0, 18.0 ],
"text" : "1.414214"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-2",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 206.0, 318.0, 54.0, 18.0 ],
"text" : "1.33484"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-116",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 174.0, 344.0, 61.0, 18.0 ],
"text" : "1.259921"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-112",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 143.0, 369.0, 61.0, 18.0 ],
"text" : "1.189207"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-110",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 112.0, 391.0, 61.0, 18.0 ],
"text" : "1.122462"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-108",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 81.0, 417.0, 61.0, 18.0 ],
"text" : "1.059463"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-106",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 50.0, 446.0, 32.5, 18.0 ],
"text" : "1."
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-98",
"maxclass" : "newobj",
"numinlets" : 13,
"numoutlets" : 13,
"outlettype" : [ "bang", "bang", "bang", "bang", "bang", "bang", "bang", "bang", "bang", "bang", "bang", "bang", "" ],
"patching_rect" : [ 50.0, 138.0, 181.0, 20.0 ],
"text" : "sel 0 1 2 3 4 5 6 7 8 9 10 11"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-78",
"maxclass" : "newobj",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "int" ],
"patching_rect" : [ 50.0, 100.0, 38.0, 20.0 ],
"text" : "% 12"
}
}
, {
"box" : {
"comment" : "",
"id" : "obj-121",
"maxclass" : "inlet",
"numinlets" : 0,
"numoutlets" : 1,
"outlettype" : [ "int" ],
"patching_rect" : [ 50.0, 40.0, 25.0, 25.0 ]
}
}
],
"lines" : [ {
"patchline" : {
"destination" : [ "obj-17", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-106", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-17", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-110", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-17", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-112", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-78", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-121", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-17", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-13", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-18", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-17", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-17", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-2", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-17", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-6", 0 ]
}
}
, {
"patchline" : {