Commit 90c6c5fe authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

bump jmmmp to version 0.47

parent e0d610e8
Abstractions from Joo Pais
Version 0.46
Version 0.47
(c) 2005-2016 Joo Pais - jmmmpais@gmail.com
Released under the BSD license (more information in each abstraction).
......@@ -25,6 +25,7 @@ dsp01 - DSP switch
f+ - Counter with variable increment
gui-edit - edit standard GUI objects fast
jp.menu - Dropdown menu programmed with data structures
jp.preset - Dropdown preset saver programmed with data structures
lbang - loadbang which can be triggered more often
liner~ - practical implementation of [line~]
liner+~ - practical implementation of signal envelopping
......@@ -53,9 +54,9 @@ tastin - Gate for keyboard input
uhr - Shows the time
It is recomended to use these abstractions with Pd-extended, since I don't keep track of which externals are used. Some abstractions use other ones of this package, so it is also better to have always the whole package together.
The jmmmp library is dependent from the following libraries: cyclone, ext13, ggee, iemlib, iemmatrix, jmmmp, zexy 2.2.6.
2016.05.27
2016.06.30
Non-working or discarded abstractions:
......
#N canvas 457 189 505 304 10;
#X obj 15 72 inlet;
#X obj 15 222 outlet;
#X obj 34 92 inlet;
#X obj 58 112 inlet;
#X obj 15 182 f \$1;
#X obj 72 192 +;
#X obj 108 152 expr if($f1 == 0 \, 1 \, $f1);
#X obj 15 52 inlet;
#X obj 15 202 outlet;
#X obj 34 72 inlet;
#X obj 58 92 inlet;
#X obj 15 162 f \$1;
#X obj 72 172 +;
#X obj 108 132 expr if($f1 == 0 \, 1 \, $f1);
#N canvas 0 0 426 446 license 0;
#X text 8 47 All rights reserved.;
#X text 8 227 The names of its contributors may not be used to endorse
......@@ -39,15 +39,15 @@ in the documentation and/or other materials provided with the distribution.
#X text 279 168 - Set increment;
#X text 279 198 Outlets;
#X text 279 218 - Float;
#X obj 34 162 \$1;
#X obj 34 132 route bang;
#X obj 34 142 \$1;
#X obj 34 112 route bang;
#X text 279 148 - Bang reset / Float (next count);
#X obj 15 202 t f f;
#X obj 15 182 t f f;
#X text 12 257 (C) 2006-2012 João Pais - jmmmpais@googlemail.com;
#X text 278 58 - Initial number (default 0);
#X text 279 78 - Increment (default 1);
#X obj 108 132 \$2;
#X obj 108 112 initbang;
#X obj 108 112 \$2;
#X obj 108 92 iemlib/init;
#X connect 0 0 4 0;
#X connect 2 0 16 0;
#X connect 3 0 5 1;
......
#N canvas 268 142 382 289 10;
#X text 16 6 NAME jmmmp;
#X text 16 26 AUTHOR Joo Pais <jmmmpais@googlemail.com>;
#X text 16 76 LICENSE GPL;
#X text 16 96 VERSION 0.46;
#X text 16 46 DESCRIPTION this library has several utilities with different
functions. It is composed of abstractions only.;
#N canvas 10 10 200 164 10;
#N canvas 20 20 420 300 META 0;
#X text 10 10 META this is a prototype of a libdir meta file;
#X text 10 30 NAME jmmmp;
#X text 10 90 LICENSE BSD;
#X text 10 110 VERSION 0.47;
#X text 10 50 AUTHOR Joo Pais <jmmmpais@googlemail.com>;
#X text 10 70 DESCRIPTION Several useful abstractions;
#X restore 10 10 pd META;
#N struct 1012-color float x float y float farbe;
#N struct 1012-color-display float x float y float farbe;
#N struct 1015-color float x float y float farbe;
#N struct 1015-color-display float x float y float farbe;
#N struct 1007-element float x float y symbol menu float lenght float
#N struct 1087-color float x float y float farbe;
#N struct 1087-color-display float x float y float farbe;
#N struct 1090-color float x float y float farbe;
#N struct 1090-color-display float x float y float farbe;
#N struct 1082-element float x float y symbol menu float lenght float
height float selection float ypos float col-back float col-lab;
#N struct 1025-color float x float y float farbe;
#N struct 1025-color-display float x float y float farbe;
#N struct 1028-color float x float y float farbe;
#N struct 1028-color-display float x float y float farbe;
#N struct 1020-element float x float y symbol menu float lenght float
#N struct 1183-color float x float y float farbe;
#N struct 1183-color-display float x float y float farbe;
#N struct 1186-color float x float y float farbe;
#N struct 1186-color-display float x float y float farbe;
#N struct 1178-element float x float y symbol menu float lenght float
height float selection float ypos float col-back float col-lab;
#N canvas 40 80 738 476 10;
#X floatatom 19 206 5 0 0 0 - - -;
#N canvas 0 0 426 446 license 0;
#N canvas 106 113 779 512 10;
#X floatatom 19 216 5 0 0 0 - - -;
#N canvas 0 0 393 422 license 0;
#X text 8 47 All rights reserved.;
#X text 8 227 The names of its contributors may not be used to endorse
or promote products derived from this software without specific prior
......@@ -37,9 +37,9 @@ in the documentation and/or other materials provided with the distribution.
;
#X text 8 7 Copyright 2016 \, João Pais;
#X text 8 27 jmmmpais@gmail.com;
#X restore 431 446 pd license;
#X text 429 341 Outlets;
#X text 429 251 - bang - outputs current setting;
#X restore 421 486 pd license;
#X text 419 401 Outlets;
#X text 419 291 - bang - outputs current setting;
#N canvas 564 268 494 344 META 0;
#X text 12 95 LICENSE BSD;
#X text 12 75 LIBRARY jmmmp;
......@@ -49,139 +49,154 @@ in the documentation and/or other materials provided with the distribution.
#X text 12 36 KEYWORDS menu GOP data-structures;
#X text 12 55 AUTHOR João Pais <jmmmpais@gmail.com>;
#X text 12 135 VERSION 2016;
#X restore 521 446 pd META;
#X restore 511 486 pd META;
#X text 11 11 [jp.menu] - Dropdown menu programmed with data structures
;
#X text 429 41 Arguments - ALWAYS USE THE FIRST THREE ARGUMENTS;
#X text 429 61 - name of configuration file;
#X text 428 81 - lenght (pixels);
#X text 429 101 - height (pixels);
#N canvas 451 243 394 363 configuration 0;
#X text 19 17 HOW TO FORMAT THE CONFIGURATION FILE FOR [jp.menu];
#X text 19 87 Name;
#X text 19 167 Content;
#X text 19 187 The content consists of as many lines as items in the
menu. In each line is be the label that appears.;
#X text 19 47 The configuration file must be a .txt file \, stored
in the same folder as the main patch where [jp.menu] is being used.
;
#X text 19 227 Load new file;
#X text 19 247 To load a new file \, send the message "load \$1" with
#X text 419 61 - name of configuration file;
#N canvas 312 426 384 356 configuration 0;
#X text 9 7 HOW TO FORMAT THE CONFIGURATION FILE FOR [jp.menu];
#X text 9 77 Name;
#X text 9 157 Content;
#X text 9 37 The configuration file must be a .txt file \, stored in
the same folder as the main patch where [jp.menu] is being used.;
#X text 9 217 Load new file;
#X text 9 237 To load a new file \, send the message "load \$1" with
the symbol as argument.;
#X obj 19 337 s \$0-country-i;
#X msg 19 288 load audio;
#X msg 29 308 load country;
#X text 19 107 The file must be named jp.menu-NAME.txt.;
#X text 19 127 The NAME will be used as the first argument for [jp.menu].
#X obj 9 327 s \$0-country-i;
#X msg 9 278 load audio;
#X msg 19 298 load country;
#X text 9 97 The file must be named jp.menu-NAME.txt.;
#X text 9 117 The NAME will be used as the first argument for [jp.menu].
;
#X connect 8 0 7 0;
#X connect 9 0 7 0;
#X restore 222 251 pd configuration;
#X text 430 426 (C) 2016 João Pais - jmmmpais@gmail.com;
#X text 429 211 - integer - select item number. From 0 upwards.;
#X obj 19 111 hradio 15 1 0 4 empty empty empty 0 -8 0 10 -262144 -1
#X text 9 177 The content consists of as many lines as items in the
menu. In each line is be the label that appears in the menu.;
#X connect 7 0 6 0;
#X connect 8 0 6 0;
#X restore 262 281 pd configuration;
#X text 420 466 (C) 2016 João Pais - jmmmpais@gmail.com;
#X text 419 211 - integer - select item number. From 0 upwards.;
#X obj 19 121 hradio 15 1 0 4 empty empty empty 0 -8 0 10 -262144 -1
-1 0;
#X text 429 121 - identifier for receive/send names;
#X text 15 91 This menu has 4 items;
#X text 429 361 - integer - chosen item number;
#X msg 29 131 open;
#X text 429 191 Input messages;
#X text 429 231 - open - opens full menu;
#X text 12 356 Limitations of data structures;
#X text 12 416 - the message "drawnumber_motion: symbol" appears in
#X text 439 121 - identifier for receive/send names;
#X text 419 421 - integer - chosen item number;
#X msg 29 141 open;
#X text 419 191 Input messages;
#X text 419 271 - open - opens full menu;
#X text 12 416 Limitations of data structures;
#X text 12 476 - the message "drawnumber_motion: symbol" appears in
the console when instead of clicking \, the user drags the menu;
#X text 12 396 - the size of the text can't be changed;
#N canvas 467 689 450 300 zutun 0;
#X text 25 215 ## dizer ao puckette para eliminar drawnumbermotion
das mensagens;
#X text 26 174 ## saida da direita com símbolo de label. para isso
\, só tem que apanhar o símbolo apenas quando entra float \, nao
quando há open.;
#X text 17 138 ## editar e gravar configuracao usando mensagens? funciona
com text \, ou tem que se usar a nova versao?;
#X text 21 244 ## modo and \, com várias opcoes ligadas/desligadas?
;
#X text 26 48 ## depois de load \, tamanho volta ao normal;
#X restore 584 446 pd zutun;
#X text 14 251 Formatting the configuration file;
#X text 14 291 Color configuration;
#X text 14 271 You can use send/receive variables;
#N canvas 497 71 396 209 send/receive 0;
#X text 19 17 SEND/RECEIVE VARIABLES;
#X text 19 47 [jp.menu] lets you define an internal variable to use
with send and receive objects. You can send and receive any messages
to it.;
#X text 19 87 The variables are formated as:;
#X text 19 107 - the 3rd argument gives the send name;
#X text 19 127 - the receive name adds "-i" to the 3rd argument;
#X text 19 157 For example \, if the 3rd argument is "menusend" \,
the receive name will be "menusend-i". You can use also dollarsigns
as symbols: \$0 \, \$1 \, etc. \, as in the following example:;
#X restore 228 271 pd send/receive;
#X text 12 41 [jp.menu] creates a dropdown menu based on a text file.
This abstraction is a development of the concept used by Gilberto Bernardes
in his earGram software.;
#X msg 199 131 open;
#X obj 189 151 s \$0-country-i;
#X obj 189 181 r \$0-country;
#X floatatom 189 111 5 0 0 0 - - -;
#X floatatom 189 201 5 0 0 0 - - -;
#X obj 169 131 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
#X msg 299 171 open;
#X obj 289 191 s \$0-country-i;
#X obj 289 221 r \$0-country;
#X floatatom 289 151 5 0 0 0 - - -;
#X floatatom 289 241 5 0 0 0 - - -;
#X obj 269 171 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X text 429 271 - color \$1 \$2 - change colors;
#X text 170 91 Use send/receive to control the menu;
#X text 429 141 - background color;
#X text 429 161 - label / border color;
#X obj 289 111 jp.menu country 100 22 \$0-country 89 9;
#X text 429 291 - size x y - change menu size;
#N canvas 331 210 386 167 size 0;
#X msg 29 47 size 60 70;
#X msg 39 67 size 120 20;
#X msg 19 27 size 80 15;
#X text 19 7 Change menu size;
#X obj 19 97 s \$0-country-i;
#X text 19 127 !! Mind \, for "size" the object doesn't get saved with
#X text 419 311 - color \$1 \$2 - change colors;
#X text 150 131 Use send/receive to control the menu;
#X text 439 141 - background color;
#X text 439 161 - label / border color;
#X text 419 351 - size x y - change menu size;
#X text 12 436 The following limitations are built in to Pure Data:
;
#X text 15 91 This menu has 4 items \, Click on it or send a number
or message.;
#X text 419 31 Arguments - Always use the first argument \, others
are facultative;
#X text 14 281 Formatting/loading a configuration file;
#N canvas 38 162 445 466 display 0;
#X msg 19 47 size 60 70;
#X msg 29 67 size 120 20;
#X msg 9 27 size 80 15;
#X text 9 7 Change menu size;
#X obj 9 87 s \$0-country-i;
#X text 9 107 !! Mind \, for "size" the object doesn't get saved with
the new parameters !! You must edit the object itself.;
#X connect 0 0 4 0;
#X connect 1 0 4 0;
#X connect 2 0 4 0;
#X restore 121 311 pd size;
#X text 14 311 Change menu size;
#N canvas 438 53 442 335 color 0;
#X msg 21 157 color 57 600;
#X text 10 7 Change colors:;
#X obj 373 67 pd-colors;
#X msg 11 257 color;
#X text 11 237 Or send only the message "color" to open a color selector.
#X msg 20 307 color 57 600;
#X text 9 167 Change colors:;
#X obj 372 227 pd-colors;
#X msg 10 387 color;
#X text 10 367 Or send only the message "color" to open a color selector.
;
#X text 11 67 The colors follow the data structures color scheme. Look
at;
#X text 11 81 for a complete palette.;
#X text 11 97 If both color arguments are 0 \, default colors will
#X text 10 227 The colors follow the data structures color scheme.
Look at;
#X text 10 241 for a complete palette.;
#X text 10 257 If both color arguments are 0 \, default colors will
be used.;
#X obj 11 206 s \$0-country-i;
#X obj 11 277 s \$0-country-i;
#X msg 11 127 color 999 0;
#X text 91 127 default values;
#X text 11 47 \$1 = background color \, \$2 = label+border color;
#X text 11 27 Send the message "color \$1 \$2" to set the menu colors.
#X obj 10 347 s \$0-country-i;
#X obj 10 407 s \$0-country-i;
#X msg 10 287 color 999 0;
#X text 90 287 default values;
#X text 10 207 \$1 = background color \, \$2 = label+border color;
#X text 10 187 Send the message "color \$1 \$2" to set the menu colors.
;
#X msg 31 177 color 60 999;
#X text 11 297 !! Mind \, for "color" the object doesn't get saved
#X msg 30 327 color 60 999;
#X text 10 427 !! Mind \, for "color" the object doesn't get saved
with the new parameters !! You must edit the object itself.;
#X connect 0 0 8 0;
#X connect 3 0 9 0;
#X connect 10 0 8 0;
#X connect 14 0 8 0;
#X restore 138 290 pd color;
#X text 429 311 - load \$1 - load other configuration;
#X obj 19 151 jp.menu audio 85 13 \$0-aud;
#X text 12 376 The following limitations are built in to Pure Data:
#X connect 0 0 4 0;
#X connect 1 0 4 0;
#X connect 2 0 4 0;
#X connect 6 0 14 0;
#X connect 9 0 15 0;
#X connect 16 0 14 0;
#X connect 20 0 14 0;
#X restore 164 361 pd display;
#X text 14 361 Display configuration;
#N canvas 38 28 396 209 send/receive 0;
#X text 9 7 SEND/RECEIVE VARIABLES;
#X text 9 77 The variables are formated as:;
#X text 9 147 For example \, if the 3rd argument is "menusend" \, the
receive name will be "menusend-i". You can use also dollarsigns as
symbols: \$0 \, \$1 \, etc. \, as in the example in the main patch.
;
#X text 9 97 - the 4th argument gives the send name;
#X text 9 117 - the receive name adds "-i" to the 4th argument;
#X text 9 37 [jp.menu] lets you define an internal variable to use
with send and receive objects. You can send and receive any messages
to it.;
#X restore 164 341 pd send/receive;
#X text 14 341 Send/receive variables;
#X text 14 321 Select items;
#N canvas 500 61 386 239 select 0;
#X msg 22 91 next;
#X msg 32 111 previous;
#X floatatom 12 71 5 0 0 0 - - -;
#X text 12 7 To select an item;
#X text 12 27 You can send an integer to select an item. The strings
"next" and "previous" also move between the elements of the menu.;
#X text 12 167 The message "open" shows the full menu.;
#X msg 12 187 open;
#X obj 12 131 s \$0-country-i;
#X obj 12 207 s \$0-country-i;
#X connect 0 0 7 0;
#X connect 1 0 7 0;
#X connect 2 0 7 0;
#X connect 6 0 8 0;
#X restore 164 321 pd select;
#X text 12 456 - the size and font of the label can't be changed;
#X text 419 231 - next - outputs next item;
#X text 419 251 - previous - outputs previous item;
#X text 419 331 - color - open color selector;
#X text 419 371 - load \$1 - load other configuration from the same
folder;
#X obj 19 161 jp.menu audio;
#X text 438 81 - lenght (pixels) \, set to 100 if not used;
#X text 439 101 - height (pixels) \, set to 17 if not used;
#X obj 149 151 jp.menu country 100 22 \$0-country 89 9;
#N canvas 491 72 386 146 edit 0;
#X text 12 7 For now \, the only way to delete a preset is by editing
the text file with the data. At a later point \, it might be possible
to integrate editing features into this abstraction. For a more powerful
abstraction \, check out [jmmmp/jp.preset].;
#X restore 164 301 pd edit;
#X text 14 301 Edit presets;
#X connect 10 0 45 0;
#X connect 13 0 45 0;
#X connect 17 0 45 0;
#X connect 29 0 30 0;
#X connect 31 0 33 0;
#X connect 32 0 30 0;
#X connect 34 0 30 0;
#X connect 19 0 20 0;
#X connect 21 0 23 0;
#X connect 22 0 20 0;
#X connect 24 0 20 0;
#X connect 45 0 0 0;
This diff is collapsed.
#N struct 1036-color float x float y float farbe;
#N struct 1036-color-display float x float y float farbe;
#N struct 1039-color float x float y float farbe;
#N struct 1039-color-display float x float y float farbe;
#N struct 1034-element float x float y symbol menu float lenght float
height float selection float ypos float col-back float col-lab;
#N struct 1132-color float x float y float farbe;
#N struct 1132-color-display float x float y float farbe;
#N struct 1135-color float x float y float farbe;
#N struct 1135-color-display float x float y float farbe;
#N struct 1130-element float x float y symbol menu float lenght float
height float selection float ypos float col-back float col-lab;
#N canvas 217 63 770 565 10;
#N canvas 0 0 396 419 license 0;
#X text 8 47 All rights reserved.;
#X text 8 227 The names of its contributors may not be used to endorse
or promote products derived from this software without specific prior
written permission.;
#X text 8 87 Redistribution and use in source and binary forms \, with
or without modification \, are permitted provided that the following
conditions are met:;
#X text 8 127 Redistributions of source code must retain the above
copyright notice \, this list of conditions and the following disclaimer.
;
#X text 8 297 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES \, INCLUDING
\, BUT NOT LIMITED TO \, THE IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT \, INDIRECT
\, INCIDENTAL \, SPECIAL \, EXEMPLARY \, OR CONSEQUENTIAL DAMAGES (INCLUDING
\, BUT NOT LIMITED TO \, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES
;
#X text 8 167 Redistributions in binary form must reproduce the above
copyright notice \, this list of conditions and the following disclaimer
in the documentation and/or other materials provided with the distribution.
;
#X text 8 7 Copyright 2016 \, João Pais;
#X text 8 27 jmmmpais@gmail.com;
#X restore 411 536 pd license;
#X text 409 441 Outlets;
#X text 409 291 - bang - outputs current setting;
#N canvas 564 268 494 344 META 0;
#X text 12 95 LICENSE BSD;
#X text 12 75 LIBRARY jmmmp;
#X text 13 115 WEBSITE http://puredata.info/Members/jmmmp;
#X text 12 6 DESCRIPTION Dropdown menu programmed with data structures
;
#X text 12 36 KEYWORDS menu GOP data-structures;
#X text 12 55 AUTHOR João Pais <jmmmpais@gmail.com>;
#X text 12 135 VERSION 2016;
#X restore 501 536 pd META;
#X text 409 61 - name of configuration file;
#N canvas 403 54 381 365 configuration 0;
#X text 9 87 Name;
#X text 9 157 Content;
#X text 9 227 Load new file;
#X text 9 247 To load a new file \, send the message "load \$1" with
the symbol as argument.;
#X text 9 7 HOW TO FORMAT THE CONFIGURATION FILE FOR [jp.preset];
#X text 9 37 The configuration file must be a .txt file \, stored in
the same folder as the main patch where [jp.preset] is being used.
;
#X text 9 107 The file must be named jp.preset-NAME.txt.;
#X text 9 127 The NAME will be used as the first argument for [jp.preset].
;
#X text 9 177 The content consists of as many lines as items in the
menu. At the start of each line is the preset's label \, followed by
the parameters.;
#X msg 9 288 load test1;
#X msg 19 308 load test2;
#X obj 9 337 s \$0-test2-i;
#X connect 9 0 11 0;
#X connect 10 0 11 0;
#X restore 262 341 pd configuration;
#X text 410 516 (C) 2016 João Pais - jmmmpais@gmail.com;
#X text 409 211 - integer - select item number. From 0 upwards.;
#X obj 18 111 hradio 15 1 0 4 empty empty empty 0 -8 0 10 -262144 -1
-1 0;
#X text 429 121 - identifier for receive/send names;
#X msg 28 131 open;
#X text 409 191 Input messages;
#X text 409 271 - open - opens full menu;
#X text 12 466 Limitations of data structures;
#X text 12 526 - the message "drawnumber_motion: symbol" appears in
the console when instead of clicking \, the user drags the menu;
#N canvas 204 57 396 209 send/receive 0;
#X text 9 7 SEND/RECEIVE VARIABLES;
#X text 9 77 The variables are formated as:;
#X text 9 147 For example \, if the 3rd argument is "menusend" \, the
receive name will be "menusend-i". You can use also dollarsigns as
symbols: \$0 \, \$1 \, etc. \, as in the example in the main patch.
;
#X text 9 37 [jp.preset] lets you define an internal variable to use
with send and receive objects. You can send and receive any messages
to it.;
#X text 9 97 - the 4th argument gives the send name;
#X text 9 117 - the receive name adds "-i" to the 4th argument;
#X restore 164 401 pd send/receive;
#X text 409 351 - color \$1 \$2 - change colors;
#X text 429 141 - background color;
#X text 429 161 - label / border color;
#X text 409 391 - size x y - change menu size;
#X text 12 486 The following limitations are built in to Pure Data:
;
#X obj 18 171 print PRESET;
#X msg 238 301 1 2 3;
#X obj 238 281 prepend set;
#X text 409 311 - save \$1 ... - replaces current preset;
#X text 409 331 - rename - open input window to rename current preset
;
#X text 409 371 - color - open color selector;
#X text 409 411 - load \$1 - load other configuration from the same
folder;
#X text 14 381 Select items;
#N canvas 500 61 386 239 select 0;
#X msg 22 91 next;
#X msg 32 111 previous;
#X floatatom 12 71 5 0 0 0 - - -;
#X text 12 7 To select an item;
#X text 12 27 You can send an integer to select an item. The strings
"next" and "previous" also move between the elements of the menu.;
#X text 12 167 The message "open" shows the full menu.;
#X msg 12 187 open;
#X obj 12 131 s \$0-test2-i;
#X obj 12 207 s \$0-test2-i;
#X connect 0 0 7 0;
#X connect 1 0 7 0;
#X connect 2 0 7 0;
#X connect 6 0 8 0;
#X restore 164 381 pd select;
#X text 409 231 - next - outputs next item;
#X text 409 251 - previous - outputs previous item;
#X text 14 401 Send/receive variables;
#N canvas 491 72 386 554 edit 0;
#X text 12 337 You can edit the configuration file in anyway you want.
Or you can use the GUI:;
#X text 12 387 - the name window appears \, you will be prompted to
give it a name;
#X text 12 417 - the new preset slot is created. You can write data
to it by sending the message "save \$1 ...";
#X text 12 367 - click the last preset slot \, called "NEW";
#X text 12 447 - the preset file is automatically saved after you add
some content to it.;
#X text 12 317 To add a new preset;
#X text 12 37 To write a preset;
#X text 12 57 - select a preset \, making it active;
#X text 12 77 - send the message "save \$1 ..." to [jp.preset]. It
overwrites the active preset and saves the file.;
#X text 12 207 - select a preset \, making it active;
#X text 12 227 - send the message "save \$1 ..." to [jp.preset]. It
overwrites the active preset and saves the file.;
#X text 12 187 To rename a preset;
#X msg 11 107 save ano soa apdp aospd;
#X msg 21 127 save 1 23 aa xpto -5;
#X msg 11 257 rename;
#X text 12 7 All content operations save the preset file immediately.
;
#X text 12 497 To delete a preset;
#X text 12 517 For now \, the only way to delete a preset is by editing
the text file with the data.;
#X obj 11 147 s \$0-test2-i;
#X obj 11 277 s \$0-test2-i;
#X connect 12 0 18 0;
#X connect 13 0 18 0;
#X connect 14 0 19 0;
#X restore 164 361 pd edit;
#X text 14 361 Edit presets;
#X text 14 421 Display configuration;
#N canvas 509 163 442 464 display 0;
#X msg 21 307 color 57 600;
#X text 10 167 Change colors:;
#X obj 373 227 pd-colors;
#X msg 11 387 color;
#X text 11 367 Or send only the message "color" to open a color selector.
;
#X text 11 227 The colors follow the data structures color scheme.
Look at;
#X text 11 241 for a complete palette.;
#X text 11 257 If both color arguments are 0 \, default colors will
be used.;
#X msg 11 287 color 999 0;
#X text 91 287 default values;
#X text 11 207 \$1 = background color \, \$2 = label+border color;
#X text 11 187 Send the message "color \$1 \$2" to set the menu colors.
;
#X msg 31 327 color 60 999;
#X text 11 427 !! Mind \, for "color" the object doesn't get saved
with the new parameters !! You must edit the object itself.;
#X msg 20 47 size 60 70;
#X msg 30 67 size 120 20;
#X msg 10 27 size 80 15;
#X text 10 7 Change menu size;
#X text 10 107 !! Mind \, for "size" the object doesn't get saved with
the new parameters !! You must edit the object itself.;
#X obj 10 87 s \$0-test2-i;
#X obj 11 347 s \$0-test2-i;
#X obj 11 407 s \$0-test2-i;
#X connect 0 0 20 0;
#X connect 3 0 21 0;
#X connect 8 0 20 0;
#X connect 12 0 20 0;
#X connect 14 0 19 0;
#X connect 15 0 19 0;
#X connect 16 0 19 0;
#X restore 164 421 pd display;
#X text 19 211 This object is controlled by the send/receive variables
defined as arguments.;
#X text 14 91 This preset has 4 items;
#X text 428 81 - lenght (pixels) \, set to 100 if not used;
#X text 429 101 - height (pixels) \, set to 17 if not used;
#X text 409 31 Arguments - Always use the first argument \, others
are facultative;
#X obj 138 261 hradio 15 1 0 5 empty empty empty 0 -8 0 10 -262144
-1 -1 0;
#X text 139 241 Send:;
#X text 239 241 Receive:;
#X text 12 41 [jp.preset] can be used to store and recall lists of
values. You can connect it with another object \, or use configurable
send/receive variables.;
#X text 11 11 [jp.preset] - Dropdown preset saver programmed with data
structures;
#X text 409 461 - list of elements;
#X obj 18 151 jp.preset test1;
#X obj 138 281 s \$0-test2-i;
#X obj 238 261 r \$0-test2;
#X text 14 341 Formatting/loading a configuration file;
#X text 12 506 - the size and font of the label can't be changed;
#X obj 18 241 jp.preset test2 100 22 \$0-test2 89 9;
#X connect 8 0 48 0;
#X connect 10 0 48 0;
#X connect 23 0 22 0;
#X connect 42 0 49 0;
#X connect 48 0 21 0;
#X connect 50 0 23 0;