aboutsummaryrefslogtreecommitdiff
path: root/deque/src/deque-help.pd
blob: e9b4b854ef6317257615c36b914e756060a06609 (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
#N canvas 62 30 512 484 10;
#X text 89 3 deque : double-ended message queue;
#X text 47 27 INLETS:;
#X text 58 40 1 - control messages;
#X text 58 53 2 - unshift (list);
#X text 57 67 3 - push (list);
#X text 253 28 OUTLETS:;
#X text 267 41 1 - dequeued messages;
#X text 198 455 Bryan Jurish <moocow@ling.uni-potsdam.de>;
#X obj 51 391 deque;
#X msg 51 103 push foo bar;
#X msg 57 125 unshift baz bonk;
#X msg 77 180 pop;
#X text 241 177 "pop" : remove & outlet from end;
#X text 226 200 "shift" : remove & outlet from front;
#X msg 80 201 shift;
#X text 208 102 "push MSG" : add MSG to end;
#X text 187 125 "unshift MSG" : add MSG to front;
#X msg 86 223 bang;
#X text 232 222 "bang" : alias for "shift";
#X msg 92 261 clear;
#X msg 93 284 flush;
#X text 225 256 "clear" : clear all elements;
#X msg 97 328 list bink bop;
#X msg 106 351 list fink fop;
#X text 216 328 LIST (inlet-2) : like "unshift LIST";
#X text 216 352 LIST (inlet-3) : like "push LIST";
#X text 225 278 "flush" : output front-to-back & clear;
#X msg 70 157 size;
#X text 233 156 "size" : get number of stored messages;
#X obj 81 414 print deque-status;
#X obj 51 438 print deque-content;
#X text 266 55 2 - status messages;
#X connect 8 0 30 0;
#X connect 8 1 29 0;
#X connect 9 0 8 0;
#X connect 10 0 8 0;
#X connect 11 0 8 0;
#X connect 14 0 8 0;
#X connect 17 0 8 0;
#X connect 19 0 8 0;
#X connect 20 0 8 0;
#X connect 22 0 8 1;
#X connect 23 0 8 2;
#X connect 27 0 8 0;