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

« back to all changes in this revision

Viewing changes to doc/5.reference/help-qlist.pd

  • Committer: Bazaar Package Importer
  • Author(s): Guenter Geiger (Debian/GNU)
  • Date: 2005-04-08 16:21:52 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 hoary)
  • Revision ID: james.westby@ubuntu.com-20050408162152-88qyy276gx2qmx35
Tags: 0.38.4+amidi-3
* Incorporated mlock fix for 2.6 kernels
* moved allocation/deallocation out of midi poll() call for ALSA (this 
  cause problems on 2.6 kernel series when using -rt)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#N canvas 7 31 1178 587 12;
2
 
#X obj 546 328 qlist;
3
 
#X msg 592 110 rewind;
4
 
#X msg 591 135 next;
5
 
#X floatatom 546 382 0 0 0;
6
 
#X msg 593 54 bang;
7
 
#X obj 441 515 r this;
8
 
#X obj 544 515 r that;
9
 
#X obj 441 544 print this;
10
 
#X obj 544 544 print that;
11
 
#X obj 560 356 print done;
12
 
#X msg 593 80 tempo 1;
13
 
#X text 18 51 The qlist object reads text files containing time-tagged
14
 
Pd messages. You can have them sequenced automatically (by sending
15
 
a "bang" message \, possibly changing speed via "tempo" messages) or
16
 
manually via the "rewind" and "next" messages.;
17
 
#X text 15 136 To run the qlist automatically \, send it a "read" message
18
 
(the filename is relative to the directory the patch is in) and later
19
 
a "bang." Messages in the file are separated by semicolons. Optional
20
 
leading numbers are delay times in milliseconds. If the tempo is diffrerent
21
 
from 1 the messages are sent faster or slower accordingly. Messages
22
 
should start with a symbol giving the destination object. In the file
23
 
"qlist.q" used here \, the messages go to objects "this" and "that"
24
 
which are receives below.;
25
 
#X text 17 281 To run it manually \, send "rewind" followed by "next".
26
 
All messages not preceeded by numbers are sent. As soon as a message
27
 
starting with one or more numbers is encountered \, the numbers are
28
 
output as a list. There are many ways you could design a sequencer
29
 
around this.;
30
 
#X text 668 48 sequence automatically;
31
 
#X text 670 79 set relative tempo;
32
 
#X text 668 105 go to beginning (and stop);
33
 
#X text 668 132 single-step forward;
34
 
#X text 713 273 read a file;
35
 
#X text 777 300 write one;
36
 
#X text 552 404 This outlet gets a list of leading numbers for the
37
 
next message \, for you to use in designing your own sequencer.;
38
 
#X msg 586 274 read qlist.txt;
39
 
#X msg 586 300 write /tmp/qlist.txt;
40
 
#X text 21 493 see also:;
41
 
#X obj 97 493 textfile;
42
 
#X text 22 362 You can also record textual messages and save them to
43
 
a file. Send "clear" to empty the qlist and "add" to add messages (terminated
44
 
with semicolons.) The message \, "add2" adds a list of atoms without
45
 
finishing with a semicolon in case you want to make variable-length
46
 
messages.;
47
 
#X msg 589 190 clear;
48
 
#X msg 589 216 add 500 this is another message;
49
 
#X msg 590 242 add2 that;
50
 
#X text 666 187 empty the qlist;
51
 
#X text 882 217 add a message to a qlist;
52
 
#X text 683 240 add a message to a qlist but don't terminate it;
53
 
#X text 653 341 This outlet gets a bang when you hit the end of the
54
 
sequence. In the file "qlist.txt" the end is delayed 1000 milliseconds
55
 
after the last message.;
56
 
#X text 379 470 These receives are invoked in the file "qlist.txt"
57
 
in this directory.;
58
 
#X obj 71 13 qlist;
59
 
#X text 132 15 - text-based sequencer;
60
 
#X text 668 158 single-step forward SUPRESSING MESSAGE-SENDING;
61
 
#X msg 591 161 next 1;
62
 
#X text 921 558 updated for Pd version 0.35;
63
 
#X connect 0 0 3 0;
64
 
#X connect 0 1 9 0;
65
 
#X connect 1 0 0 0;
66
 
#X connect 2 0 0 0;
67
 
#X connect 4 0 0 0;
68
 
#X connect 5 0 7 0;
69
 
#X connect 6 0 8 0;
70
 
#X connect 10 0 0 0;
71
 
#X connect 21 0 0 0;
72
 
#X connect 22 0 0 0;
73
 
#X connect 26 0 0 0;
74
 
#X connect 27 0 0 0;
75
 
#X connect 28 0 0 0;
76
 
#X connect 37 0 0 0;