|
28 | 28 | #X obj 376 128 nbx 3 14 -1e+37 1e+37 0 0 empty empty empty 0 -8 0 10 #dcdcdc #000000 #000000 0 256;
|
29 | 29 | #X text 172 343 - formats the message with current input, f 59;
|
30 | 30 | #X obj 75 364 cnv 17 3 27 empty empty 0-n 5 9 0 16 #dcdcdc #9c9c9c 0;
|
31 |
| -#N canvas 777 115 489 472 possible-types 0; |
32 |
| -#X text 91 46 %c; |
33 |
| -#X text 112 46 character, f 49; |
34 |
| -#X text 55 59 %d or %i; |
35 |
| -#X text 91 98 %e; |
36 |
| -#X text 91 111 %E; |
37 |
| -#X text 91 150 %o; |
38 |
| -#X text 91 163 %s; |
39 |
| -#X text 91 176 %u; |
40 |
| -#X text 112 176 unsigned integer, f 49; |
41 |
| -#X text 91 189 %x; |
42 |
| -#X text 112 189 unsigned hexadecimal in lowercase, f 49; |
43 |
| -#X text 91 202 %X; |
44 |
| -#X text 112 202 unsigned hexadecimal in CAPS, f 49; |
45 |
| -#X text 112 150 unsigned octal, f 49; |
46 |
| -#X text 112 163 string, f 49; |
47 |
| -#X text 91 124 %g; |
48 |
| -#X text 91 137 %G; |
49 |
| -#X text 91 85 %F; |
50 |
| -#X text 91 72 %f; |
51 |
| -#X obj 72 302 pdcontrol; |
52 |
| -#X msg 72 273 browse https://en.wikipedia.org/wiki/Printf_format_string; |
53 |
| -#X text 57 19 Possible types in [sprintf], f 30; |
54 |
| -#X text 112 59 signed decimal intege, f 49; |
55 |
| -#X text 112 72 float (lowercase for 'nan'/'inf'), f 49; |
56 |
| -#X text 112 85 float (uppercase for 'NAN'/'INF'), f 49; |
57 |
| -#X text 112 98 float in exponential notation using "e" character; |
58 |
| -#X text 112 111 float in exponential notation using "E" character; |
59 |
| -#X text 112 124 float in normal (%f) or exponential (%e), f 49; |
60 |
| -#X text 112 137 float in normal (%F) or exponential (%E), f 49; |
61 |
| -#X text 93 243 For more details on these types \, refer to a standard C library manual. For instance in the link below:, f 52; |
62 |
| -#X obj 72 248 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc #000000 #000000; |
63 |
| -#X text 156 305 The above reference has more information and parameters not really available for [sprintf]. Nonetheless \, the optional fields: "+" \, "#" \, the width and precision field are supported. Only the single modifiers "h" and "l" are allowed., f 46; |
64 |
| -#X text 59 382 Inconsistency: If a format type is not supported or invalid \, [sprintf] doesn't create a corresponding inlet and prints an error isntead. The Max version creates an inlet for whatever inserted type \, invalid or not \, and only prints an error when trying to convert.; |
| 31 | +#N canvas 777 115 489 502 possible-types 0; |
| 32 | +#X text 91 66 %c; |
| 33 | +#X text 112 66 character, f 49; |
| 34 | +#X text 55 79 %d or %i; |
| 35 | +#X text 91 118 %e; |
| 36 | +#X text 91 131 %E; |
| 37 | +#X text 91 170 %o; |
| 38 | +#X text 91 183 %s; |
| 39 | +#X text 91 196 %u; |
| 40 | +#X text 112 196 unsigned integer, f 49; |
| 41 | +#X text 91 209 %x; |
| 42 | +#X text 112 209 unsigned hexadecimal in lowercase, f 49; |
| 43 | +#X text 91 222 %X; |
| 44 | +#X text 112 222 unsigned hexadecimal in CAPS, f 49; |
| 45 | +#X text 112 170 unsigned octal, f 49; |
| 46 | +#X text 112 183 string, f 49; |
| 47 | +#X text 91 144 %g; |
| 48 | +#X text 91 157 %G; |
| 49 | +#X text 91 105 %F; |
| 50 | +#X text 91 92 %f; |
| 51 | +#X obj 72 322 pdcontrol; |
| 52 | +#X msg 72 293 browse https://en.wikipedia.org/wiki/Printf_format_string; |
| 53 | +#X text 57 12 Possible types in [sprintf], f 30; |
| 54 | +#X text 112 79 signed decimal intege, f 49; |
| 55 | +#X text 112 92 float (lowercase for 'nan'/'inf'), f 49; |
| 56 | +#X text 112 105 float (uppercase for 'NAN'/'INF'), f 49; |
| 57 | +#X text 112 118 float in exponential notation using "e" character; |
| 58 | +#X text 112 131 float in exponential notation using "E" character; |
| 59 | +#X text 112 144 float in normal (%f) or exponential (%e), f 49; |
| 60 | +#X text 112 157 float in normal (%F) or exponential (%E), f 49; |
| 61 | +#X text 93 263 For more details on these types \, refer to a standard C library manual. For instance in the link below:, f 52; |
| 62 | +#X obj 72 268 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc #000000 #000000; |
| 63 | +#X text 156 325 The above reference has more information and parameters not really available for [sprintf]. Nonetheless \, the optional fields: "+" \, "#" \, the width and precision field are supported. Only the single modifiers "h" and "l" are allowed., f 46; |
| 64 | +#X text 59 402 Inconsistency: If a format type is not supported or invalid \, [sprintf] doesn't create a corresponding inlet and prints an error isntead. The Max version creates an inlet for whatever inserted type \, invalid or not \, and only prints an error when trying to convert.; |
| 65 | +#X text 91 42 %a; |
| 66 | +#X text 91 54 %A; |
| 67 | +#X text 112 42 float hexadecimal in lowercase, f 49; |
| 68 | +#X text 112 54 float hexadecimal in CAPS, f 49; |
65 | 69 | #X connect 20 0 19 0;
|
66 | 70 | #X connect 30 0 20 0;
|
67 | 71 | #X restore 326 491 pd possible-types;
|
68 |
| -#N canvas 554 133 767 604 examples 0; |
| 72 | +#N canvas 556 80 781 745 examples 0; |
69 | 73 | #X obj 61 276 print;
|
70 | 74 | #X obj 61 181 nbx 5 14 -1e+37 1e+37 0 0 empty empty empty 0 -8 0 10 #dcdcdc #000000 #000000 0 256;
|
71 | 75 | #X obj 61 458 print;
|
|
104 | 108 | #X obj 340 527 cyclone/sprintf this %s %s %s;
|
105 | 109 | #X msg 425 500 quite alright;
|
106 | 110 | #X text 452 241 Nonetheless \, note you can use backslashes to create symbols with special characters such as spaces., f 42;
|
| 111 | +#X text 115 630 see the help file of, f 12; |
| 112 | +#X obj 174 650 makefilename; |
| 113 | +#X text 125 679 fpr more details; |
| 114 | +#X text 285 612 Unlike the original in MAX \, the Cyclone version supports the 'space' flag. Unlike [makefilename] (and also the MAX original) \, [sprintf] supports the apostrophe flag and the '%a'/'%A' types., f 64; |
| 115 | +#X text 285 652 The MAX original has issues in dealing with spaces for symbol input that contains spaces and the width field when it adds spaces. What happens is that atoms get split when you don't have the 'symout' argument. The cyclone version also has the same issues., f 64; |
107 | 116 | #X connect 1 0 25 0;
|
108 | 117 | #X connect 3 0 8 0;
|
109 | 118 | #X connect 4 0 6 0;
|
|
0 commit comments