Skip to content

Commit 930e8c0

Browse files
authored
Merge pull request #21 from jamshark70/topic/addOffsetToHelp
Help patch: Add notes about offset message
2 parents 12ed175 + 8ba84d6 commit 930e8c0

File tree

1 file changed

+48
-31
lines changed

1 file changed

+48
-31
lines changed

external/abl_link~-help.pd

+48-31
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,69 @@
1-
#N canvas 100 23 416 755 10;
2-
#X msg 351 519 tempo \$1;
3-
#X msg 165 519 resolution \$1;
4-
#X msg 261 519 reset \$1 \$2;
5-
#X obj 261 498 pack f f;
6-
#X floatatom 195 645 5 0 0 1 beat_time - -, f 5;
7-
#X floatatom 167 666 5 0 0 1 phase - -, f 5;
8-
#X msg 36 619 \; pd dsp 1;
9-
#X floatatom 140 694 5 0 0 1 step - -, f 5;
10-
#X floatatom 223 623 5 0 0 1 tempo - -, f 5;
11-
#X obj 22 499 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1+
#N canvas 100 86 912 528 10;
2+
#X msg 750 106 tempo \$1;
3+
#X msg 564 106 resolution \$1;
4+
#X msg 660 106 reset \$1 \$2;
5+
#X obj 660 85 pack f f;
6+
#X floatatom 594 232 5 0 0 1 beat_time - -;
7+
#X floatatom 566 253 5 0 0 1 phase - -;
8+
#X msg 435 206 \; pd dsp 1;
9+
#X floatatom 539 281 5 0 0 1 step - -;
10+
#X floatatom 622 210 5 0 0 1 tempo - -;
11+
#X obj 421 86 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1212
1;
13-
#X obj 140 582 abl_link~ 1 0 4 134;
14-
#X floatatom 351 500 5 0 0 2 tempo - -, f 5;
15-
#X floatatom 306 479 5 0 0 2 quantum - -, f 5;
16-
#X floatatom 261 479 5 0 0 2 beat - -, f 5;
17-
#X floatatom 165 499 5 0 0 2 resolution - -, f 5;
18-
#X text 25 331 Link's beat time can sometimes go backwards. When this
13+
#X obj 539 169 abl_link~ 1 0 4 134;
14+
#X floatatom 750 87 5 0 0 2 tempo - -;
15+
#X floatatom 705 66 5 0 0 2 quantum - -;
16+
#X floatatom 660 66 5 0 0 2 beat - -;
17+
#X floatatom 564 86 5 0 0 2 resolution - -;
18+
#X text 25 344 Link's beat time can sometimes go backwards. When this
1919
happens \, the step outlet will fall silent until the beat time moves
2020
forward again. The phase and beat outlets will output raw values from
2121
Link so that patches can implement their own handling of time going
2222
backwards.;
23-
#X text 25 238 The creation arguments \, all optional \, specify the
23+
#X text 25 251 The creation arguments \, all optional \, specify the
2424
resolution (default 1) and the initial beat time (default 0) \, as
2525
well as the quantum (default 4) and tempo (default 120) \, which will
2626
be replaced by the session tempo if the Link instance is already connected.
2727
The Link external will perform a quantized launch on creation.;
28-
#X msg 22 520 connect \$1;
29-
#X text 25 411 The Link external emits events as soon as DSP is enabled
28+
#X msg 421 107 connect \$1;
29+
#X text 25 424 The Link external emits events as soon as DSP is enabled
3030
in Pd. It will only connect with other Link instances \, however \,
3131
if you send it the message [connect 1(.;
32-
#X floatatom 248 713 5 0 0 0 - - -, f 5;
33-
#X obj 248 691 r #abl_link_num_peers;
32+
#X floatatom 647 300 5 0 0 0 - - -;
33+
#X obj 647 278 r #abl_link_num_peers;
3434
#X text 25 24 abl_link~: Ableton Link external;
35-
#X floatatom 251 604 5 0 0 1 is_playing - -, f 5;
36-
#X obj 105 499 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
35+
#X floatatom 650 191 5 0 0 1 is_playing - -;
36+
#X obj 504 86 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
3737
1;
38-
#X msg 105 519 play \$1;
39-
#X text 25 158 abl_link~ responds to five methods \, for connecting
40-
with other Link instances \, for setting the resolution of the step
41-
outlet (in steps per beat) \, the tempo (in beats per minute) \, the
42-
play state (on or off) \, and for resetting the beat time and quantum
43-
by having Link perform a quantized launch.;
38+
#X msg 504 106 play \$1;
4439
#X text 25 52 abl_link~ is a Pd external that integrates Ableton Link
4540
into Pd. It has five outlets \, which emit the index of the current
4641
step (at the beginning of each step) \, the current phase and beat
4742
time on each DSP tick \, the tempo on tempo changes \, as well as the
4843
play state. Phase and beat time are Link concepts. The purpose of the
4944
step feature is to generate events in Pd at a given rate (measured
5045
in steps per beat).;
46+
#N canvas 213 167 446 262 offset_vs_audio_latency 0;
47+
#X text 37 29 Ableton defines its grid time as the moment when the
48+
sound should hit the speakers. This means connected apps must \, on
49+
their own \, account for audio driver latency and any other calculation
50+
latencies.;
51+
#X text 37 94 Pure Data does not currently make the audio driver latency
52+
available to objects. When you run abl_link~ against other apps \,
53+
then \, Pure Data may sound some milliseconds late.;
54+
#X text 37 149 abl_link~ responds to an [offset( message by shifting
55+
its timebase earlier by the given number of milliseconds. At worst
56+
\, then \, users may sync with non-Pd apps (or with Pd running under
57+
different audio settings) by manually setting the offset. It's easy
58+
to tune by hand/ear.;
59+
#X restore 119 483 pd offset_vs_audio_latency;
60+
#X floatatom 820 87 5 0 0 0 - - -;
61+
#X msg 820 106 offset \$1;
62+
#X text 25 158 abl_link~ responds to six methods \, for connecting
63+
with other Link instances \, for setting the resolution of the step
64+
outlet (in steps per beat) \, the tempo (in beats per minute) \, the
65+
play state (on or off) \, the latency offset \, and for resetting the
66+
beat time and quantum by having Link perform a quantized launch.;
5167
#X connect 0 0 10 0;
5268
#X connect 1 0 10 0;
5369
#X connect 2 0 10 0;
@@ -57,7 +73,6 @@ in steps per beat).;
5773
#X connect 10 1 5 0;
5874
#X connect 10 2 4 0;
5975
#X connect 10 3 8 0;
60-
#X connect 10 4 22 0;
6176
#X connect 11 0 0 0;
6277
#X connect 12 0 3 1;
6378
#X connect 13 0 3 0;
@@ -66,3 +81,5 @@ in steps per beat).;
6681
#X connect 20 0 19 0;
6782
#X connect 23 0 24 0;
6883
#X connect 24 0 10 0;
84+
#X connect 27 0 28 0;
85+
#X connect 28 0 10 0;

0 commit comments

Comments
 (0)