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

« back to all changes in this revision

Viewing changes to doc/3.audio.examples/B10.sampler.scratch.pd

  • Committer: Bazaar Package Importer
  • Author(s): Paul Brossier
  • Date: 2009-12-22 21:29:31 UTC
  • mfrom: (1.2.6 upstream) (4.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091222212931-nhwkzapjwsmjao1l
Tags: 0.42.5-3
* debian/control:
  - add community site to homepage field
  - improve long description
  - remove Replaces and Conflicts fields
  - add Suggests on pd-csound, pd-pdp, pd-zexy, pd-aubio
* debian/rules: add per-arch configuration flags
* debian/patches/02_kfreebsd.diff:
  - also define pd_tilde_dllextent on FreeBSD
  - fix typo (really closing #414414 this time)
  - also add hurd glue
* debian/patches/04_hurd.diff:
  - add hurd glue and s_midi_dummy.c

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#N canvas 53 232 936 654 12;
 
2
#N canvas 0 0 450 300 graph1 0;
 
3
#X array table19 44103 float 0;
 
4
#X coords 0 1.02 44100 -1.02 200 130 1;
 
5
#X restore 680 8 graph;
 
6
#X obj 40 382 hip~ 5;
 
7
#X floatatom 99 51 0 0 0 0 - - -;
 
8
#X text 146 50 <-- frequency (Hz.);
 
9
#X floatatom 129 106 0 0 0 0 - - -;
 
10
#X obj 129 135 * 441;
 
11
#X obj 100 158 *~ 0;
 
12
#X obj 100 181 +~ 1;
 
13
#X msg 194 281 bang;
 
14
#X text 164 106 <-- chunk size (100ths of a second);
 
15
#X obj 591 369 adc~ 1;
 
16
#X obj 591 395 hip~ 5;
 
17
#X msg 609 423 bang;
 
18
#N canvas 0 0 450 300 graph2 0;
 
19
#X array graph19 44100 float 0;
 
20
#X coords 0 44100 44100 0 200 130 1;
 
21
#X restore 681 196 graph;
 
22
#X obj 40 356 *~;
 
23
#X obj 123 276 line~;
 
24
#X obj 123 228 * 441;
 
25
#X floatatom 123 205 0 0 0 0 - - -;
 
26
#X obj 123 252 pack 0 100;
 
27
#X obj 101 310 +~;
 
28
#X text 34 474 In this patch we can loop in any "window" of the input
 
29
sample. The "read point" (0-100) gives the starting point of the window
 
30
and "chunk" is its size (both in 100ths of a second.) Try \, for example
 
31
\, frequency 4 \, sharpness 10 \, chunk size 25 \, and vary the read
 
32
point from -25 to 100 \, listening to the result.;
 
33
#X text 242 281 <-- graph table index;
 
34
#X text 684 337 ----- 1 second ------;
 
35
#X obj 595 490 loadbang;
 
36
#X text 631 514 v-- re-read the original sample;
 
37
#X obj 605 559 soundfiler;
 
38
#X text 678 147 ---- 44103 samples ---;
 
39
#X obj 591 455 tabwrite~ table19;
 
40
#X msg 605 535 read ../sound/voice.wav table19;
 
41
#X text 688 628 updated for Pd version 0.37;
 
42
#X msg 595 585 \; graph19 ylabel 48000 0 44100;
 
43
#X obj 39 103 -~ 0.5;
 
44
#X obj 99 76 phasor~;
 
45
#X obj 39 127 *~ 0.5;
 
46
#X obj 39 150 cos~;
 
47
#X text 157 206 <-- read point (100ths of a second);
 
48
#X obj 41 406 output~;
 
49
#X text 651 422 <-- record;
 
50
#X text 36 13 ENVELOPING THE LOOPING SAMPLER;
 
51
#X text 37 574 You should hear some doppler shift as you change the
 
52
read point. To see why \, click on "graph table index" and quickly
 
53
start changing the read point--- you should see entertaining pictures
 
54
in "table-index". The next patch shows how to prevent this if you wish
 
55
to.;
 
56
#X obj 100 336 tabread4~ table19;
 
57
#X obj 194 307 tabwrite~ graph19;
 
58
#X connect 1 0 36 0;
 
59
#X connect 2 0 32 0;
 
60
#X connect 4 0 5 0;
 
61
#X connect 5 0 6 1;
 
62
#X connect 6 0 7 0;
 
63
#X connect 7 0 19 0;
 
64
#X connect 8 0 41 0;
 
65
#X connect 10 0 11 0;
 
66
#X connect 11 0 27 0;
 
67
#X connect 12 0 27 0;
 
68
#X connect 14 0 1 0;
 
69
#X connect 15 0 19 1;
 
70
#X connect 16 0 18 0;
 
71
#X connect 17 0 16 0;
 
72
#X connect 18 0 15 0;
 
73
#X connect 19 0 40 0;
 
74
#X connect 19 0 41 0;
 
75
#X connect 23 0 30 0;
 
76
#X connect 23 0 28 0;
 
77
#X connect 28 0 25 0;
 
78
#X connect 31 0 33 0;
 
79
#X connect 32 0 6 0;
 
80
#X connect 32 0 31 0;
 
81
#X connect 33 0 34 0;
 
82
#X connect 34 0 14 0;
 
83
#X connect 40 0 14 1;