aboutsummaryrefslogtreecommitdiff
path: root/aconnect-help.pd
blob: 0b02dd258e12c9ce1c802ee1591ceee9707c0dde (plain)
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
#N canvas 211 47 891 733 10;
#X obj 145 275 aconnect;
#X text 51 10 aconnect:: ALSA sequencer connection manager;
#X text 70 43 allows you to (dis)connect different alsa-sequencer clients
;
#X text 71 64 you can also query the current connection status and
the clients;
#X msg 145 125 devices;
#X obj 145 320 route input output;
#X obj 145 384 print READBALE;
#X obj 205 354 print WRITEABLE;
#X text 204 126 query existing clients and ports attached to them;
#X obj 159 417 unpack 0 s 0 s;
#X floatatom 159 519 0 0 0 0 client# - -;
#X symbolatom 190 499 0 0 0 0 client - -;
#X floatatom 221 479 0 0 0 0 port# - -;
#X symbolatom 252 459 0 0 0 0 port - -;
#X msg 198 175 bang;
#X text 250 173 query existing connections;
#X obj 420 381 print connected;
#X obj 390 406 unpack 0 0 0 0;
#X floatatom 390 486 3 0 0 1 sender# - -;
#X floatatom 421 466 3 0 0 1 sendport# - -;
#X floatatom 452 446 3 0 0 1 dest# - -;
#X floatatom 483 426 3 0 0 1 destport# - -;
#X obj 390 355 t l l;
#X msg 244 223 connect 74 0 72 0;
#X text 371 213 connect output of client#74:port#0 to input of client#72:port#0
;
#X obj 502 563 aconnect;
#X msg 502 538 bang;
#X msg 568 564 disconnect \$1 \$2 \$3 \$4;
#X text 544 537 disconnect all;
#N canvas 0 0 829 380 return 0;
#X msg 78 163 sucess;
#X obj 78 185 print retval;
#X text 58 248 return values: 0==success;
#X text 163 262 >0:warning;
#X text 163 274 <0:error;
#X text 74 296 note that the return value will always be sent LAST
(even though it is not the leftmost outlet);
#X obj 78 67 inlet;
#X obj 78 94 select 0;
#X obj 129 133 moses;
#X msg 129 163 error \$1;
#X msg 209 163 warning \$1;
#X connect 0 0 1 0;
#X connect 6 0 7 0;
#X connect 7 0 0 0;
#X connect 7 1 8 0;
#X connect 8 0 9 0;
#X connect 8 1 10 0;
#X connect 9 0 1 0;
#X connect 10 0 1 0;
#X restore 196 297 pd return value;
#N canvas 0 0 299 212 pipe 0;
#X obj 83 36 inlet;
#X obj 83 140 outlet;
#X obj 83 64 unpack 0 0 0 0;
#X obj 83 104 pack 0 0 0 0;
#X obj 83 84 pipe 0 0 0 0 0;
#X connect 0 0 2 0;
#X connect 2 0 4 0;
#X connect 2 1 4 1;
#X connect 2 2 4 2;
#X connect 2 3 4 3;
#X connect 3 0 1 0;
#X connect 4 0 3 0;
#X connect 4 1 3 1;
#X connect 4 2 3 2;
#X connect 4 3 3 3;
#X restore 502 586 pd pipe;
#X text 459 608 note: we need to detach the "disconnect" message from
querying the connections \, in order to be able to disconnect all listeners
from a sender with multiple listeners. this might change in future
versions;
#X text 532 12 updated for aconnect-0.3;
#X msg 244 251 disconnect 64 0 72 1;
#X text 393 248 disconnect output of client#64:port#0 to input of client#72:port#1
;
#X text 51 655 insitute for electronic music and acoustics \, iem;
#X text 52 669 university of music and dramatic arts \, graz \, aut
;
#X text 50 621 copyleft (c) 2005 IOhannes m zmoelnig;
#X text 52 637 published under the GnuGPL v2.0;
#X connect 0 0 5 0;
#X connect 0 1 29 0;
#X connect 4 0 0 0;
#X connect 5 0 6 0;
#X connect 5 0 9 0;
#X connect 5 1 7 0;
#X connect 5 2 22 0;
#X connect 9 0 10 0;
#X connect 9 1 11 0;
#X connect 9 2 12 0;
#X connect 9 3 13 0;
#X connect 14 0 0 0;
#X connect 17 0 18 0;
#X connect 17 1 19 0;
#X connect 17 2 20 0;
#X connect 17 3 21 0;
#X connect 22 0 17 0;
#X connect 22 1 16 0;
#X connect 23 0 0 0;
#X connect 25 0 30 0;
#X connect 26 0 25 0;
#X connect 27 0 25 0;
#X connect 30 0 27 0;
#X connect 33 0 0 0;