aboutsummaryrefslogtreecommitdiff
path: root/aconnect-help.pd
diff options
context:
space:
mode:
Diffstat (limited to 'aconnect-help.pd')
-rw-r--r--aconnect-help.pd81
1 files changed, 81 insertions, 0 deletions
diff --git a/aconnect-help.pd b/aconnect-help.pd
new file mode 100644
index 0000000..0262925
--- /dev/null
+++ b/aconnect-help.pd
@@ -0,0 +1,81 @@
+#N canvas 83 42 744 737 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 text 389 249 disconnect output of client#0:port#0 to input of client#72:port#1
+;
+#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 146 669 aconnect;
+#X msg 146 644 bang;
+#X msg 209 669 disconnect \$1 \$2 \$3 \$4;
+#X text 188 643 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;
+#X msg 244 251 disconnect 0 0 72 1;
+#X connect 0 0 5 0;
+#X connect 0 1 30 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 24 0 0 0;
+#X connect 26 0 28 0;
+#X connect 27 0 26 0;
+#X connect 28 0 26 0;
+#X connect 31 0 0 0;