#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 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 obj 145 320 route src dst; #X connect 0 0 38 0; #X connect 0 1 28 0; #X connect 4 0 0 0; #X connect 8 0 9 0; #X connect 8 1 10 0; #X connect 8 2 11 0; #X connect 8 3 12 0; #X connect 13 0 0 0; #X connect 16 0 17 0; #X connect 16 1 18 0; #X connect 16 2 19 0; #X connect 16 3 20 0; #X connect 21 0 16 0; #X connect 21 1 15 0; #X connect 22 0 0 0; #X connect 24 0 29 0; #X connect 25 0 24 0; #X connect 26 0 24 0; #X connect 29 0 26 0; #X connect 32 0 0 0; #X connect 38 0 5 0; #X connect 38 0 8 0; #X connect 38 1 6 0; #X connect 38 2 21 0;