-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathali.sampler-help.pd
executable file
·55 lines (55 loc) · 1.81 KB
/
ali.sampler-help.pd
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
46
47
48
49
50
51
52
53
54
55
#N canvas 432 239 1122 681 10;
#X obj 761 119 loadbang;
#X obj 761 168 soundfiler;
#N canvas 0 22 450 300 (subpatch) 0;
#X array voice-sample 105119 float 0;
#X coords 0 -1 105118 1 200 120 1 0 0;
#X restore 759 227 graph;
#X obj 759 368 loadbang;
#X obj 759 417 soundfiler;
#N canvas 0 22 450 300 (subpatch) 0;
#X array bass-sample 151552 float 0;
#X coords 0 -1 151551 1 200 120 1 0 0;
#X restore 757 476 graph;
#X msg 759 392 read -resize ./sound/string.wav bass-sample;
#X msg 91 222 play voice-sample 0 500 0.5 1 0;
#X text 172 25 play message arguments;
#X text 199 44 arg1: name of sample table or array \; arg2: start time
in sample \, in msec \; arg3: duration of sound to play \, in msec
\; 0 for all \; arg4: gain from 0 to 1 \, linear \; arg5: playspeed
\, 1 is normal \, 2 is double \; arg6: looping \, 0 no loop \, 1 loops
'til "stop" message \;;
#X msg 230 427 stop;
#X msg 219 380 gain \$1;
#X text 291 216 play first 500 msec of "voice-sample" at 0.5 gain and
normal playspeed;
#X obj 103 559 dac~;
#X msg 119 261 play voice-sample 400 0 0.5 1.1 0;
#X text 332 255 play "voice-sample" from 400 msec until the end \,
at 0.5 gain and at 1.1 playspeed;
#X text 329 293 play and loop "bass-sample" from start to end at 0.5
gain and normal playspeed;
#X msg 192 350 0;
#X msg 227 351 0.1;
#X msg 268 351 0.5;
#X text 351 349 change gain;
#X msg 305 353 1;
#X obj 116 465 ali.sampler;
#X text 270 427 stop playback;
#X msg 761 143 read -resize ./sound/voice.wav voice-sample;
#X msg 147 300 play bass-sample 0 0 0.5 1 0;
#X connect 0 0 24 0;
#X connect 3 0 6 0;
#X connect 6 0 4 0;
#X connect 7 0 22 0;
#X connect 10 0 22 0;
#X connect 11 0 22 0;
#X connect 14 0 22 0;
#X connect 17 0 11 0;
#X connect 18 0 11 0;
#X connect 19 0 11 0;
#X connect 21 0 11 0;
#X connect 22 0 13 0;
#X connect 22 0 13 1;
#X connect 24 0 1 0;
#X connect 25 0 22 0;