Preset controlling presets and global values?

Feb 8, 2008 at 9:16am

Preset controlling presets and global values?

Is there a way to use a preset object to save presets of a group of other presets? Like a master preset object that calls presets of other presets.

Kinda like this:

#P window setfont “Sans Serif” 20.;
#P window linecount 3;
#P comment 44 375 331 196628 presets for some groups of different types of effects , filters , signal generators , etc;
#P window setfont “Sans Serif” 9.;
#P number 537 180 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P newex 537 157 18 196617 t i;
#P user dial 537 74 40 40 128 1 0 0 159 270 1 1. 170 170 170 221 221 221 120 120 120 225 225 225 0 0 0 0 0 0;
#P number 537 134 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#N vpreset 2;
#P preset 220 301 56 70;
#N vpreset 2;
#P preset 132 301 56 70;
#N vpreset 2;
#P preset 47 301 56 70;
#N vpreset 2;
#P preset 314 301 56 70;
#N vpreset 2;
#P preset 112 69 56 70;
#P window setfont “Sans Serif” 20.;
#P window linecount 8;
#P comment 576 71 100 196628 Some global controls/values like BPM/Mhz/ms scales , etc;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P comment 91 56 100 196617 global state presets;
#P user kslider 456 206 54 0 36 48 31 12 0 128 128 128 128 128 128 255 255 255 0 0 0 0 0 0;
#P connect 3 0 5 0;
#P connect 3 0 6 0;
#P connect 3 0 7 0;
#P connect 3 0 4 0;
#P connect 3 0 0 0;
#P connect 3 0 9 0;
#P connect 3 0 8 0;
#P connect 10 0 11 0;
#P connect 8 0 10 0;
#P window clipboard copycount 13;

#35718
Feb 8, 2008 at 1:22pm

I dont have too much experience with it but im pretty sure the [pattr] family of objects will do this…Look into pattrstorage, saves data to an xml file. Alot more elegant than the preset object

#122056
Feb 8, 2008 at 8:36pm

Don K schrieb:
> Is there a way to use a preset object to save presets of a group of other presets? Like a master preset object that calls presets of other presets.

Yes, simply send the same presetnumber to all sub groups at the same
time. Preset is fine as long all of your recalled values are in the same
main patcher. As soon you get a hierachy of patches to control, you
better learn the pattr family of objects. But for the moment keep it as
you do it with simple preset objects. There is more important stuff to
learn in the beginning…

#P window setfont “Sans Serif” 9.;
#P number 214 110 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P user multiSlider 308 312 328 73 -1. 1. 253 2681 15 0 0 2 0 0 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P number 106 311 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P newex 106 288 18 196617 t i;
#P user dial 29 288 40 40 128 1 0 0 223 270 1 1. 170 170 170 221 221 221
120 120 120 225 225 225 0 0 0 0 0 0;
#P number 106 265 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#N vpreset 2;
#X append 1 1 0 249 214 kslider int 59 ;;
#X append 2 1 0 249 214 kslider int 48 ;;
#P preset 214 165 56 70;
#N vpreset 2;
#X append 1 1 7 265 106 number int 42 ;;
#X append 2 1 7 265 106 number int -15 ;;
#P preset 126 165 56 70;
#N vpreset 2;
#X append 1 1 8 288 29 dial int 56 ;;
#X append 2 1 8 288 29 dial int 98 ;;
#P preset 41 165 56 70;
#N vpreset 2;
#X append 1 1 11 312 308 multiSlider list 0. 0. 0. 0.126761 0.126761
0.126761 0.15493 0.183099 0.192488 0.201878 0.211268 0.225352 0.239437
0.253521 0.267606 0.28169 0.295775 0.295775 0.295775 0.295775 0.295775
0.295775 0.301408 0.307042 0.312676 0.31831 0.323944 0.323944 0.323944
0.323944 0.323944 0.323944 0.323944 0.309859 0.295775;
#X append 1 1 0.28169 0.267606 0.253521 0.239437 0.227364 0.215292
0.203219 0.191147 0.179074 0.167002 0.15493 0.134809 0.114688 0.094567
0.074447 0.054326 0.034205 0.014085 -0.004695 -0.023474 -0.042254
-0.061033 -0.079812 -0.098592 -0.117371 -0.13615 -0.15493 -0.173709
-0.192488 -0.211268 -0.222535 -0.233803 -0.24507 -0.256338 -0.267606
-0.28169 -0.295775 -0.309859 -0.323944 -0.335211;
#X append 1 1 -0.346479 -0.357746 -0.369014 -0.380282 -0.380282
-0.380282 -0.387324 -0.394366 -0.401408 -0.408451 -0.422535 -0.43662
-0.43662 -0.43662 -0.43662 -0.43662 -0.43662 -0.415493 -0.394366
-0.373239 -0.352113 -0.329577 -0.307042 -0.284507 -0.261972 -0.239437
-0.2 -0.160563 -0.121127 -0.08169 -0.042254 0.021127 0.084507 0.147887
0.211268 0.250704 0.290141 0.329577 0.369014 0.408451;
#X append 1 1 0.464789 0.521127 0.577465 0.633803 0.690141 0.746479
0.802817 0.840376 0.877934 0.915493 0.957747 1. 1. 1. 1. 1. 1. 0.985915
0.971831 0.929577 0.859155 0.802817 0.661972 0.521127 0.507042 0.492958
0.464789 0.43662 0.414084 0.391549 0.369014 0.346479 0.323944 0.295775
0.267606 0.239437 0.211268 0.183099 0.160563 0.138028;
#X append 1 1 0.115493 0.092958 0.070423 0.035211 -0. -0.035211
-0.070423 -0.104225 -0.138028 -0.171831 -0.205634 -0.239437 -0.270736
-0.302034 -0.333333 -0.364632 -0.395931 -0.42723 -0.458529 -0.489828
-0.521127 -0.544601 -0.568075 -0.591549 -0.615023 -0.638498 -0.661972
-0.684507 -0.707042 -0.729577 -0.752113 -0.774648 -0.774648 -0.774648
-0.774648 -0.71831 -0.661972 -0.605634 -0.538028 -0.470423;
#X append 1 1 -0.402817 -0.335211 -0.267606 -0.197183 -0.126761
-0.056338 0.014085 0.098592 0.183099 0.267606 0.323944 0.380282 0.43662
0.485915 0.535211 0.584507 0.633803 0.690141 0.746479 0.788732 0.830986
0.852113 0.873239 0.894366 0.915493 0.971831 0.971831 0.971831 0.971831
0.971831 0.943662 0.887324 0.859155 0.830986 0.802817 0.71831 0.680751
0.643192 0.605634 0.577465;
#X append 1 1 0.549296 0.521127 0.478873 0.43662 0.422535 0.408451
0.352113 0.323944 0.267606 0.211268 0.070423 0.042254 0.014085 0.014085
-0.042254 -0.070423 -0.098592 -0.098592 ;;
#X append 2 1 11 312 308 multiSlider list 0. 0. 0. 0.126761 0.126761
0.014085 -0.014085 -0.042254 -0.126761 -0.169014 -0.211268 -0.239437
-0.267606 -0.295775 -0.323944 -0.352113 -0.380282 -0.408451 -0.446009
-0.483568 -0.521127 -0.538028 -0.55493 -0.571831 -0.588732 -0.605634
-0.605634 -0.605634 -0.605634 -0.605634 -0.605634 -0.605634 -0.605634
-0.605634 -0.605634;
#X append 2 1 -0.605634 -0.605634 -0.605634 -0.605634 -0.605634
-0.605634 -0.596244 -0.586854 -0.577465 -0.560563 -0.543662 -0.526761
-0.509859 -0.492958 -0.464789 -0.43662 -0.408451 -0.380282 -0.352113
-0.323944 -0.295775 -0.267606 -0.197183 -0.126761 -0.098592 -0.070423
-0.042254 -0.014085 0.023474 0.061033 0.098592 0.183099 0.211268
0.239437 0.267606 0.323944 0.380282 0.380282 0.380282 0.380282;
#X append 2 1 0.380282 0.352113 0.342723 0.333333 0.323944 0.295775
0.267606 0.239437 0.197183 0.15493 0.119718 0.084507 0.049296 0.014085
-0.014085 -0.042254 -0.070423 -0.098592 -0.122066 -0.14554 -0.169014
-0.192488 -0.215962 -0.239437 -0.267606 -0.295775 -0.323944 -0.352113
-0.380282 -0.408451 -0.43662 -0.464789 -0.492958 -0.521127 -0.549296
-0.56338 -0.577465 -0.591549 -0.605634 -0.619718;
#X append 2 1 -0.633803 -0.647887 -0.661972 -0.671362 -0.680751
-0.690141 -0.690141 -0.690141 -0.690141 -0.690141 -0.690141 -0.690141
-0.690141 -0.661972 -0.549296 -0.521127 -0.43662 -0.408451 -0.380282
-0.380282 -0.352113 -0.295775 -0.267606 -0.239437 -0.211268 -0.183099
-0.140845 -0.098592 -0.014085 0. 0.014085 0.098592 0.112676 0.126761
0.183099 0.211268 0.239437 0.267606 0.323944 0.352113;
#X append 2 1 0.380282 0.43662 0.464789 0.483568 0.502347 0.521127
0.549296 0.568075 0.586854 0.605634 0.615023 0.624413 0.633803 0.640845
0.647887 0.65493 0.661972 0.661972 0.661972 0.661972 0.671362 0.680751
0.690141 0.690141 0.690141 0.690141 0.690141 0.690141 0.680751 0.671362
0.661972 0.643192 0.624413 0.605634 0.584507 0.56338 0.542253 0.521127
0.507042 0.492958;
#X append 2 1 0.478873 0.464789 0.43662 0.408451 0.389671 0.370892
0.352113 0.323944 0.295775 0.28169 0.267606 0.248826 0.230047 0.211268
0.183099 0.164319 0.14554 0.126761 0.126761 0.098592 0.098592 0.098592
0.098592 0.098592 0.117371 0.13615 0.15493 0.169014 0.183099 0.211268
0.225352 0.239437 0.267606 0.286385 0.305164 0.323944 0.352113 0.380282
0.408451 0.43662;
#X append 2 1 0.446009 0.455399 0.464789 0.492958 0.492958 0.521127
0.549296 0.605634 0.619718 0.633803 0.661972 0.661972 0.690141 0.690141
0.690141 0.690141 0.690141 0.690141 ;;
#P preset 308 165 56 70;
#N vpreset 2;
#X append 1 2 0 249 214 kslider int 36 ; 7 265 106 number int 0 ; 8
288 29 dial int 0 ; 10 311 106 number int 0 ; 11 312 308 multiSlider
list 0. 0. 0. 0.126761 0.126761 0.126761 0.15493;
#X append 1 2 0.183099 0.192488 0.201878 0.211268 0.225352 0.239437
0.253521 0.267606 0.28169 0.295775 0.295775 0.295775 0.295775 0.295775
0.295775 0.301408 0.307042 0.312676 0.31831 0.323944 0.323944 0.323944
0.323944 0.323944 0.323944 0.323944 0.309859 0.295775 0.28169 0.267606
0.253521 0.239437 0.227364 0.215292 0.203219 0.191147 0.179074 0.167002
0.15493 0.134809;
#X append 1 2 0.114688 0.094567 0.074447 0.054326 0.034205 0.014085
-0.004695 -0.023474 -0.042254 -0.061033 -0.079812 -0.098592 -0.117371
-0.13615 -0.15493 -0.173709 -0.192488 -0.211268 -0.222535 -0.233803
-0.24507 -0.256338 -0.267606 -0.28169 -0.295775 -0.309859 -0.323944
-0.335211 -0.346479 -0.357746 -0.369014 -0.380282 -0.380282 -0.380282
-0.387324 -0.394366 -0.401408 -0.408451 -0.422535 -0.43662;
#X append 1 2 -0.43662 -0.43662 -0.43662 -0.43662 -0.43662 -0.415493
-0.394366 -0.373239 -0.352113 -0.329577 -0.307042 -0.284507 -0.261972
-0.239437 -0.2 -0.160563 -0.121127 -0.08169 -0.042254 0.021127 0.084507
0.147887 0.211268 0.250704 0.290141 0.329577 0.369014 0.408451 0.464789
0.521127 0.577465 0.633803 0.690141 0.746479 0.802817 0.840376 0.877934
0.915493 0.957747 1.;
#X append 1 2 1. 1. 1. 1. 1. 0.985915 0.971831 0.929577 0.859155
0.802817 0.661972 0.521127 0.507042 0.492958 0.464789 0.43662 0.414084
0.391549 0.369014 0.346479 0.323944 0.295775 0.267606 0.239437 0.211268
0.183099 0.160563 0.138028 0.115493 0.092958 0.070423 0.035211 -0.
-0.035211 -0.070423 -0.104225 -0.138028 -0.171831 -0.205634 -0.239437;
#X append 1 2 -0.270736 -0.302034 -0.333333 -0.364632 -0.395931 -0.42723
-0.458529 -0.489828 -0.521127 -0.544601 -0.568075 -0.591549 -0.615023
-0.638498 -0.661972 -0.684507 -0.707042 -0.729577 -0.752113 -0.774648
-0.774648 -0.774648 -0.774648 -0.71831 -0.661972 -0.605634 -0.538028
-0.470423 -0.402817 -0.335211 -0.267606 -0.197183 -0.126761 -0.056338
0.014085 0.098592 0.183099 0.267606 0.323944 0.380282;
#X append 1 2 0.43662 0.485915 0.535211 0.584507 0.633803 0.690141
0.746479 0.788732 0.830986 0.852113 0.873239 0.894366 0.915493 0.971831
0.971831 0.971831 0.971831 0.971831 0.943662 0.887324 0.859155 0.830986
0.802817 0.71831 0.680751 0.643192 0.605634 0.577465 0.549296 0.521127
0.478873 0.43662 0.422535 0.408451 0.352113 0.323944 0.267606 0.211268
0.070423 0.042254;
#X append 1 2 0.014085 0.014085 -0.042254 -0.070423 -0.098592 -0.098592 ;;
#X append 2 2 0 249 214 kslider int 48 ; 7 265 106 number int -15 ; 8
288 29 dial int 98 ; 10 311 106 number int -15 ; 11 312 308
multiSlider list 0. 0. 0. 0.126761 0.126761 0.014085 -0.014085;
#X append 2 2 -0.042254 -0.126761 -0.169014 -0.211268 -0.239437
-0.267606 -0.295775 -0.323944 -0.352113 -0.380282 -0.408451 -0.446009
-0.483568 -0.521127 -0.538028 -0.55493 -0.571831 -0.588732 -0.605634
-0.605634 -0.605634 -0.605634 -0.605634 -0.605634 -0.605634 -0.605634
-0.605634 -0.605634 -0.605634 -0.605634 -0.605634 -0.605634 -0.605634
-0.605634 -0.596244 -0.586854 -0.577465 -0.560563 -0.543662 -0.526761;
#X append 2 2 -0.509859 -0.492958 -0.464789 -0.43662 -0.408451 -0.380282
-0.352113 -0.323944 -0.295775 -0.267606 -0.197183 -0.126761 -0.098592
-0.070423 -0.042254 -0.014085 0.023474 0.061033 0.098592 0.183099
0.211268 0.239437 0.267606 0.323944 0.380282 0.380282 0.380282 0.380282
0.380282 0.352113 0.342723 0.333333 0.323944 0.295775 0.267606 0.239437
0.197183 0.15493 0.119718 0.084507;
#X append 2 2 0.049296 0.014085 -0.014085 -0.042254 -0.070423 -0.098592
-0.122066 -0.14554 -0.169014 -0.192488 -0.215962 -0.239437 -0.267606
-0.295775 -0.323944 -0.352113 -0.380282 -0.408451 -0.43662 -0.464789
-0.492958 -0.521127 -0.549296 -0.56338 -0.577465 -0.591549 -0.605634
-0.619718 -0.633803 -0.647887 -0.661972 -0.671362 -0.680751 -0.690141
-0.690141 -0.690141 -0.690141 -0.690141 -0.690141 -0.690141;
#X append 2 2 -0.690141 -0.661972 -0.549296 -0.521127 -0.43662 -0.408451
-0.380282 -0.380282 -0.352113 -0.295775 -0.267606 -0.239437 -0.211268
-0.183099 -0.140845 -0.098592 -0.014085 0. 0.014085 0.098592 0.112676
0.126761 0.183099 0.211268 0.239437 0.267606 0.323944 0.352113 0.380282
0.43662 0.464789 0.483568 0.502347 0.521127 0.549296 0.568075 0.586854
0.605634 0.615023 0.624413;
#X append 2 2 0.633803 0.640845 0.647887 0.65493 0.661972 0.661972
0.661972 0.661972 0.671362 0.680751 0.690141 0.690141 0.690141 0.690141
0.690141 0.690141 0.680751 0.671362 0.661972 0.643192 0.624413 0.605634
0.584507 0.56338 0.542253 0.521127 0.507042 0.492958 0.478873 0.464789
0.43662 0.408451 0.389671 0.370892 0.352113 0.323944 0.295775 0.28169
0.267606 0.248826;
#X append 2 2 0.230047 0.211268 0.183099 0.164319 0.14554 0.126761
0.126761 0.098592 0.098592 0.098592 0.098592 0.098592 0.117371 0.13615
0.15493 0.169014 0.183099 0.211268 0.225352 0.239437 0.267606 0.286385
0.305164 0.323944 0.352113 0.380282 0.408451 0.43662 0.446009 0.455399
0.464789 0.492958 0.492958 0.521127 0.549296 0.605634 0.619718 0.633803
0.661972 0.661972;
#X append 2 2 0.690141 0.690141 0.690141 0.690141 0.690141 0.690141 ;;
#P preset 83 47 56 70;
#P comment 62 34 100 196617 global state presets;
#P user kslider 214 249 54 0 36 48 31 12 0 128 128 128 128 128 128 255
255 255 0 0 0 0 0 0;
#P connect 12 0 4 0;
#P connect 12 0 5 0;
#P connect 12 0 6 0;
#P connect 12 0 3 0;
#P hidden connect 6 0 0 0;
#P hidden connect 3 0 11 0;
#P hidden connect 5 0 7 0;
#P hidden connect 4 0 8 0;
#P connect 7 0 9 0;
#P connect 9 0 10 0;
#P window clipboard copycount 13;


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
– _|_)—-|—–()————–
———-()——–www.ccmix.com

#122057

You must be logged in to reply to this topic.