~ubuntu-branches/ubuntu/precise/puredata/precise

« back to all changes in this revision

Viewing changes to doc/4.data.structures/08.selection.pd

  • Committer: Bazaar Package Importer
  • Author(s): Paul Brossier
  • Date: 2009-12-22 21:29:31 UTC
  • mfrom: (1.2.6 upstream) (4.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091222212931-nhwkzapjwsmjao1l
Tags: 0.42.5-3
* debian/control:
  - add community site to homepage field
  - improve long description
  - remove Replaces and Conflicts fields
  - add Suggests on pd-csound, pd-pdp, pd-zexy, pd-aubio
* debian/rules: add per-arch configuration flags
* debian/patches/02_kfreebsd.diff:
  - also define pd_tilde_dllextent on FreeBSD
  - fix typo (really closing #414414 this time)
  - also add hurd glue
* debian/patches/04_hurd.diff:
  - add hurd glue and s_midi_dummy.c

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#N struct template8 float x float y float w float h float q;
 
2
#N canvas 60 446 586 452 12;
 
3
#X floatatom 53 347 0 0 0 0 - - -;
 
4
#X floatatom 53 299 0 0 0 0 - - -;
 
5
#X floatatom 53 251 0 0 0 0 - - -;
 
6
#X floatatom 53 203 0 0 0 0 - - -;
 
7
#X floatatom 342 283 0 0 0 0 - - -;
 
8
#X floatatom 301 283 0 0 0 0 - - -;
 
9
#X floatatom 258 283 0 0 0 0 - - -;
 
10
#X floatatom 215 283 0 0 0 0 - - -;
 
11
#X floatatom 374 283 0 0 0 0 - - -;
 
12
#X floatatom 53 394 0 0 0 0 - - -;
 
13
#N canvas 19 29 363 341 data8 1;
 
14
#X scalar template8 28 123 0 16 917 \;;
 
15
#X scalar template8 289 213 0 32 66 \;;
 
16
#X scalar template8 185 -30 46 71 78 \;;
 
17
#X scalar template8 20 259 49 42 220 \;;
 
18
#X scalar template8 111 142 28 72 634 \;;
 
19
#X scalar template8 249 66 46 11 48 \;;
 
20
#X scalar template8 25 3 70 11 903 \;;
 
21
#X scalar template8 259 -23 10 4 169 \;;
 
22
#X scalar template8 229 116 25 27 710 \;;
 
23
#X scalar template8 281 207 50 25 612 \;;
 
24
#X scalar template8 54 124 62 51 421 \;;
 
25
#X scalar template8 176 182 39 66 866 \;;
 
26
#X scalar template8 144 37 27 27 125 \;;
 
27
#X scalar template8 115 26 66 32 319 \;;
 
28
#X scalar template8 134 2 50 25 454 \;;
 
29
#X scalar template8 274 58 21 45 583 \;;
 
30
#X scalar template8 269 171 25 38 548 \;;
 
31
#X scalar template8 216 190 24 73 214 \;;
 
32
#X scalar template8 215 256 50 78 652 \;;
 
33
#X scalar template8 287 32 72 19 325 \;;
 
34
#X restore 410 359 pd data8;
 
35
#N canvas 280 471 688 314 template8 0;
 
36
#X obj 25 177 filledpolygon q 0 1 0 0 w 0 w h 0 h;
 
37
#X obj 26 200 drawnumber q 0 0 0;
 
38
#X obj 24 19 struct template8 float x float y float w float h float
 
39
q;
 
40
#X obj 24 74 route select;
 
41
#X obj 24 103 outlet;
 
42
#X obj 32 46 print struct-template8;
 
43
#X text 151 72 "struct" outputs messages notifying you when objects
 
44
of this structure are selected or deselected. Here we only catch selection.
 
45
;
 
46
#X connect 2 0 3 0;
 
47
#X connect 2 0 5 0;
 
48
#X connect 3 0 4 0;
 
49
#X restore 215 208 pd template8;
 
50
#X text 46 5 This patch demonstrates catching the selection so you
 
51
can make control panels to edit parameters. The "struct" object outputs
 
52
a pointer to any selected object of type struct8.;
 
53
#X obj 53 227 set template8 x;
 
54
#X obj 53 275 set template8 y;
 
55
#X obj 53 323 set template8 w;
 
56
#X obj 53 370 set template8 h;
 
57
#X obj 53 417 set template8 q;
 
58
#X obj 215 259 get template8 x y w h q;
 
59
#X text 46 68 To try it \, unlock the subpatch (data8) and select something.
 
60
The 5 paramters should show up under the "get" object in this window
 
61
\, and you should be able to change them with the "set" object.;
 
62
#X text 332 405 updated for Pd version 0.39;
 
63
#X text 47 136 The blue "selection" rectangle ought to notice when
 
64
the object that got selected gets moved or resized \, but this isn't
 
65
done yet (as of Pd version 0.39).;
 
66
#X connect 0 0 16 0;
 
67
#X connect 1 0 15 0;
 
68
#X connect 2 0 14 0;
 
69
#X connect 3 0 13 0;
 
70
#X connect 9 0 17 0;
 
71
#X connect 11 0 13 1;
 
72
#X connect 11 0 14 1;
 
73
#X connect 11 0 15 1;
 
74
#X connect 11 0 16 1;
 
75
#X connect 11 0 17 1;
 
76
#X connect 11 0 18 0;
 
77
#X connect 18 0 7 0;
 
78
#X connect 18 1 6 0;
 
79
#X connect 18 2 5 0;
 
80
#X connect 18 3 4 0;
 
81
#X connect 18 4 8 0;