forked from dotmmb/mmb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhrslider.mmb-help.pd
153 lines (153 loc) · 4.75 KB
/
hrslider.mmb-help.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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
#N canvas 285 36 841 770 10;
#X floatatom 233 689 5 0 0 0 - - -;
#X floatatom 359 689 5 0 0 0 - - -;
#X floatatom 233 184 5 0 0 0 - - -;
#X floatatom 359 583 5 0 0 0 - - -;
#X msg 292 293 set 40 30;
#N canvas 668 93 623 657 colors 0;
#N canvas 0 22 542 322 dropdown 0;
#X obj 101 102 popup 124 25 #ffffff --- bgcolor fgcolor;
#X obj 101 140 route bang;
#X msg 55 108 0;
#X obj 216 163 outlet;
#X msg 264 73 name ---;
#X msg 101 37 options bgcolor fgcolor;
#X connect 0 0 1 0;
#X connect 0 1 3 0;
#X connect 1 0 2 0;
#X connect 2 0 0 0;
#X connect 4 0 0 0;
#X connect 5 0 0 0;
#X coords 0 -1 1 1 125 29 2 100 100;
#X restore 295 81 pd dropdown;
#N canvas 0 22 483 390 rgb 0;
#X obj 40 256 rgb2pd.mmb;
#X floatatom 105 105 5 0 255 1 red - -;
#X floatatom 105 125 5 0 255 1 green - -;
#X floatatom 105 145 5 0 255 1 blue - -;
#X obj 98 203 t b f;
#X obj 57 185 t b f;
#X obj 47 299 outlet;
#X connect 0 0 6 0;
#X connect 1 0 0 0;
#X connect 2 0 5 0;
#X connect 3 0 4 0;
#X connect 4 0 0 0;
#X connect 4 1 0 2;
#X connect 5 0 0 0;
#X connect 5 1 0 1;
#X coords 0 -1 1 1 75 65 2 100 100;
#X restore 75 56 pd rgb;
#X floatatom 192 58 5 0 255 1 red - -;
#X floatatom 192 78 5 0 255 1 green - -;
#X floatatom 192 98 5 0 255 1 blue - -;
#X obj 175 158 t b f;
#X obj 213 158 t b f;
#X obj 159 278 list prepend;
#X obj 161 191 pack f f f;
#X text 428 86 color messages;
#X text 89 17 accepts single color value or list of separate rbg values
;
#X obj 159 307 list prepend set;
#X obj 159 328 list trim;
#X msg 159 394 bgcolor 0 0 0;
#X obj 159 351 t b a;
#X floatatom 39 149 5 0 0 0 - - -;
#X obj 159 428 outlet;
#X connect 0 0 7 1;
#X connect 1 0 7 0;
#X connect 2 0 8 0;
#X connect 3 0 5 0;
#X connect 4 0 6 0;
#X connect 5 0 8 0;
#X connect 5 1 8 1;
#X connect 6 0 8 0;
#X connect 6 1 8 2;
#X connect 7 0 11 0;
#X connect 8 0 7 0;
#X connect 11 0 12 0;
#X connect 12 0 14 0;
#X connect 13 0 16 0;
#X connect 14 0 13 0;
#X connect 14 1 13 0;
#X connect 15 0 7 0;
#X restore 370 528 pd colors;
#X obj 33 341 vradio 15 1 0 5 empty empty empty 0 -8 0 10 -262144 -1
-1 0;
#X msg 33 437 mode \$1;
#X text 50 341 0 = selection;
#X text 50 356 1 = shift;
#X text 50 371 2 = extend;
#X text 50 386 3 = expand (drag up/down);
#X obj 25 12 cnv 15 400 35 empty empty hrslider.mmb 20 12 0 14 -4160
-203904 0;
#X obj 25 48 cnv 15 400 70 empty empty empty 20 12 0 14 -203904 -66577
0;
#X text 163 131 [hrslider.mmb width height];
#X text 180 145 arg1: <optional> width in pixels (default is 133);
#X text 180 159 arg2: <optional> height in pixels (default is 15);
#X msg 259 211 bang;
#X text 291 212 output current values;
#X text 45 48 [hrslider.mmb] is a "range slider" that outputs two values
instead of one. The handle in the slider represents the difference
between the two values \, and there are different modes that allow
you to ineract with it in different ways with the mouse. It is based
on [rslider] from Max/MSP.;
#X text 358 293 set the two values without outputting them;
#X obj 306 374 pack f f;
#X floatatom 306 327 5 0 0 0 - - -;
#X floatatom 342 327 5 0 0 0 - - -;
#X obj 342 351 t b f;
#X msg 306 399 size \$1 \$2;
#X text 381 321 resize object.;
#X text 268 184 set value and output;
#X text 397 582 set value \, no output;
#X text 229 708 [hrslider.mmb] always reorders the values so that the
lowest value goes out the left outlet and the highest goes out the
right.;
#X text 510 430 set receive names for inlets;
#X text 518 457 set send names for outlets;
#X msg 352 499 clipinput \$1;
#X obj 352 477 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X text 435 482 clips input values so that they output within the range
set by [setminmax(. Default is 1;
#X msg 272 237 setminmax 0 200;
#X msg 281 263 20 80;
#X text 321 262 list sets both values and outputs them;
#X text 433 529 open this to see how to set colors;
#X text 10 306 change the way the mouse interacts;
#X text 11 319 with [hrslider.mmb];
#X text 724 725 .mmb;
#X obj 233 617 hrslider.mmb;
#X text 112 616 Click and drag -->;
#X text 373 237 set minimum and maximum values (default is 0 127);
#X text 50 401 4 = no response to mouse;
#X text 392 345 Note: these values will not be saved with the patch.
If you need to save with the patch \, use them as args.;
#X msg 328 430 receive \$0-inlet1 \$0-inlet2;
#X msg 340 456 send \$0-outlet1 \$0-outlet2;
#X text 568 608 See also:;
#X obj 642 609 vrslider.mmb;
#X text 550 623 [vrslider.mmb];
#X connect 2 0 42 0;
#X connect 3 0 42 1;
#X connect 4 0 42 0;
#X connect 5 0 42 0;
#X connect 6 0 7 0;
#X connect 7 0 42 0;
#X connect 17 0 42 0;
#X connect 21 0 25 0;
#X connect 22 0 21 0;
#X connect 23 0 24 0;
#X connect 24 0 21 0;
#X connect 24 1 21 1;
#X connect 25 0 42 0;
#X connect 32 0 42 0;
#X connect 33 0 32 0;
#X connect 35 0 42 0;
#X connect 36 0 42 0;
#X connect 42 0 0 0;
#X connect 42 1 1 0;
#X connect 47 0 42 0;
#X connect 48 0 42 0;