-
Notifications
You must be signed in to change notification settings - Fork 22
/
000.I.PRESET_SYSTEM.pd
136 lines (136 loc) · 4.53 KB
/
000.I.PRESET_SYSTEM.pd
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
#N canvas 334 33 954 705 10;
#X obj 307 249 expr~ $v1 && $v2;
#X obj 13 308 vs-audiodac-gui \$0 dac-one;
#A saved 75 1 5 6 1 1 100 0 0 0 1 2 100;
#X obj 12 83 vs-operator-gui \$0 \$0-operator-one;
#A saved 100 0 2 1 0 25 0 1 1 0 0;
#X obj 340 83 vs-operator-gui \$0 \$0-operator-two;
#A saved 100 0 2 1 0 25 90 1 1 0 0;
#X obj 14 12 vs-phasor-gui \$0 \$0-phasor-one;
#A saved 500 0 1 0;
#X obj 339 12 vs-phasor-gui \$0 \$0-phasor-two;
#A saved 0 50 0 0;
#X obj 563 217 cnv 15 360 170 empty empty empty 20 12 0 14 -4034 -66577
0;
#X obj 561 402 cnv 15 380 280 empty empty empty 20 12 0 14 -4034 -66577
0;
#X text 73 613 Derek Holzer;
#X text 73 662 [email protected];
#X text 73 637 Helsinki May 2019;
#X text 561 406 [vs-presets-gui] is a preset loading and saving system.
;
#X text 591 612 as well as start and stop playback of the scenes.;
#X text 573 332 Try storing different settings of waveform and harmonic
;
#X text 573 353 using [vs-presets-gui] below and then recalling them.
;
#X text 577 429 * Make sure to use \$0 as the creation argument!;
#X text 577 451 * You need only one in each master patch you use.;
#X text 578 522 * You can "save" your presets to a textfile and "load"
them.;
#X text 578 592 * SCHEDULER can be used to arrange presets in order
\,;
#X text 578 548 * TRANSITIONS can be used to edit crossfades between
;
#X text 593 567 presets.;
#X text 585 265 * Both operators are synced to the master.;
#X text 585 286 * Phasor-two modulates the phase of operator-two.;
#X text 585 307 * This causes an illusion that the circle is spinning.
;
#X text 585 245 * Phasor-one is the master oscillator.;
#X text 571 222 This patch on the left draws a circle using sine waves.
;
#X text 578 475 * The green arrows move between and recall presets.
;
#X text 578 499 * The red "store" button stores the info for each preset.
;
#X obj 19 536 cnv 15 200 60 empty empty empty 20 12 0 14 -4034 -66577
0;
#N canvas 561 66 730 680 wirelesssending 0;
#X obj 44 304 s \$0-phasor-one/frequency;
#X obj 44 277 t b f;
#X obj 46 81 hsl 128 15 0 127 0 0 empty empty empty -2 -8 0 10 -262144
-1 -1 0 1;
#X obj 43 112 mtof;
#X msg 43 53 22;
#X msg 79 53 44;
#X msg 116 53 120;
#X obj 244 304 s \$0-phasor-one/frequency;
#X obj 244 277 t b f;
#X obj 246 79 hsl 128 15 0 127 0 0 empty empty empty -2 -8 0 10 -262144
-1 -1 0 1;
#X obj 243 112 mtof;
#X obj 243 54 ctlin 1 0;
#X text 73 150 Set SMOOTH to OFF;
#X text 273 150 Set SMOOTH to ON;
#X text 73 166 in target abstraction;
#X text 273 166 in target abstraction;
#X text 41 17 FROM SAVED PRESETS/MIDI NOTES;
#X text 241 17 FROM CONTINUOUS MIDI INPUT;
#X text 83 340 Edit name of [send] object to include target abstraction/parameter
;
#X obj 42 560 t b f;
#X text 277 111 [mtof] scales the incoming MIDI message of 0-127 to
a frequency in Hz;
#X obj 44 482 hsl 128 15 0 127 0 0 empty empty empty -2 -8 0 10 -262144
-1 -1 0 1;
#X obj 42 516 vs-rescale 0 127 -100 100;
#X obj 42 587 s \$0-dac-one/horz;
#X obj 41 447 ctlin 2 0;
#X obj 213 561 t b f;
#X obj 215 483 hsl 128 15 0 127 0 0 empty empty empty -2 -8 0 10 -262144
-1 -1 0 1;
#X obj 213 517 vs-rescale 0 127 -100 100;
#X obj 212 448 ctlin 2 0;
#X floatatom 261 561 5 0 0 0 - - -;
#X floatatom 91 561 5 0 0 0 - - -;
#X obj 213 588 s \$0-dac-one/vert;
#X text 379 502 [vs-recale] scales the input value from the first range
in the creation arguments (0 to 127 in this example) to the second
range in the creation arguments (-100 to 100 in this example).;
#X connect 1 0 0 0;
#X connect 1 1 0 0;
#X connect 2 0 3 0;
#X connect 3 0 1 0;
#X connect 4 0 2 0;
#X connect 5 0 2 0;
#X connect 6 0 2 0;
#X connect 8 0 7 0;
#X connect 8 1 7 0;
#X connect 9 0 10 0;
#X connect 10 0 8 0;
#X connect 11 0 9 0;
#X connect 19 0 23 0;
#X connect 19 1 23 0;
#X connect 21 0 22 0;
#X connect 22 0 19 0;
#X connect 22 0 30 0;
#X connect 24 0 21 0;
#X connect 25 0 31 0;
#X connect 25 1 31 0;
#X connect 26 0 27 0;
#X connect 27 0 25 0;
#X connect 27 0 29 0;
#X connect 28 0 26 0;
#X restore 61 567 pd wirelesssending;
#X text 27 542 Open for MIDI implementation;
#X obj 13 462 switch~;
#X text 578 633 * Be sure that the \$0 unique identifier in the saved
TXT;
#X text 588 649 file matches the one in the number box at the bottom
of;
#X text 588 666 this abstraction when reopening the presets later.
;
#X obj 358 411 vs-presets-gui \$0;
#X obj 358 382 nbx 5 14 -1e+37 1e+37 0 0 empty empty Current_Scene_Number
0 -8 0 10 -4034 -1 -1 0 256;
#X connect 0 0 1 2;
#X connect 1 0 31 0;
#X connect 2 0 1 0;
#X connect 2 0 1 3;
#X connect 2 1 0 0;
#X connect 3 0 1 1;
#X connect 3 0 1 4;
#X connect 3 1 0 1;
#X connect 5 0 3 1;
#X connect 36 0 35 0;