diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/pddp/TODO | 7 | ||||
-rw-r--r-- | doc/pddp/all_about_acoustic_conversions.pd (renamed from doc/pddp/help-acoustics.pd) | 1168 | ||||
-rw-r--r-- | doc/pddp/all_about_data_types.pd | 202 | ||||
-rw-r--r-- | doc/pddp/all_about_haptics.pd | 8 | ||||
-rw-r--r-- | doc/pddp/all_about_hid.pd | 9 | ||||
-rw-r--r-- | doc/pddp/all_about_midi_flags.pd (renamed from doc/pddp/midi-basics.pd) | 92 | ||||
-rw-r--r-- | doc/pddp/all_about_scope_and_locality.pd | 25 | ||||
-rw-r--r-- | doc/pddp/help-key.pd | 2 | ||||
-rw-r--r-- | doc/pddp/help-makefilename.pd | 487 | ||||
-rw-r--r-- | doc/pddp/help-receive.pd | 2 | ||||
-rw-r--r-- | doc/pddp/help-send.pd | 2 | ||||
-rw-r--r-- | doc/pddp/help-tabread.pd | 2 | ||||
-rw-r--r-- | doc/pddp/help-tabread4.pd | 2 | ||||
-rw-r--r-- | doc/pddp/help-tabwrite.pd | 2 | ||||
-rw-r--r-- | doc/pddp/help-trigger.pd | 4 | ||||
-rw-r--r-- | doc/pddp/pddp.pd | 26 | ||||
-rw-r--r-- | doc/pddp/pddp_open.pd | 29 | ||||
-rw-r--r-- | doc/pddp/table_of_contents.pd | 97 |
18 files changed, 1122 insertions, 1044 deletions
diff --git a/doc/pddp/TODO b/doc/pddp/TODO index ed3d67f5..ef4f84e8 100644 --- a/doc/pddp/TODO +++ b/doc/pddp/TODO @@ -1,7 +1,2 @@ -- auto-generate table_of_contents.pd from all all_about_*.pd patches - -- make a Pd patch to launch table_of_contents.pd to solve recursive problem - -- make [pddp] a patch that opens the filename given as an argument using an - internal GOP bang. For example: [[]pddp all_about_hid]. +- change [pwd] to whatever the object is finally called. diff --git a/doc/pddp/help-acoustics.pd b/doc/pddp/all_about_acoustic_conversions.pd index a983f848..1ead8b5f 100644 --- a/doc/pddp/help-acoustics.pd +++ b/doc/pddp/all_about_acoustic_conversions.pd @@ -1,583 +1,585 @@ -#N canvas 22 16 828 633 10;
-#X obj 12 58 mtof;
-#X floatatom 12 81 0 0 0;
-#X obj 12 105 ftom;
-#X floatatom 12 126 0 0 0;
-#X text 46 11 ACOUSTIC CONVERSIONS;
-#X text 47 58 -- MIDI note number to frequency converter.;
-#N canvas 37 -4 899 659 understanding_mtof 0;
-#X text 20 13 [mtof] will convert MIDI note numbers to Wave Freqeuency.
-This object exists in PD for the sake of convenience and speed of processing.
-;
-#X obj 37 165 mtof;
-#X floatatom 37 143 5 0 0;
-#X text 77 142 Select a MIDI note: (Middle C is 60).;
-#X floatatom 37 188 5 0 0;
-#X obj 37 207 osc~;
-#X floatatom 99 203 0 0 0;
-#N canvas 397 146 628 393 output 0;
-#X obj 393 156 t b;
-#X obj 393 106 f;
-#X obj 393 56 inlet;
-#X text 399 25 mute;
-#X obj 393 181 f;
-#X msg 480 174 0;
-#X msg 393 81 bang;
-#X obj 393 131 moses 1;
-#X obj 480 149 t b f;
-#X obj 452 113 moses 1;
-#X obj 138 144 dbtorms;
-#X obj 452 88 r master-lvl;
-#X obj 138 38 r master-lvl;
-#X obj 393 206 s master-lvl;
-#X obj 22 181 inlet~;
-#X obj 254 37 inlet;
-#X text 254 14 level;
-#X obj 254 152 s master-lvl;
-#X msg 151 61 set \$1;
-#X obj 151 85 outlet;
-#X obj 138 190 line~;
-#X obj 22 212 *~;
-#X obj 138 167 pack 0 50;
-#X text 34 159 audio;
-#X text 148 106 show level;
-#X obj 73 182 inlet~;
-#X obj 73 213 *~;
-#X obj 22 241 dac~ 1;
-#X obj 73 241 dac~ 2;
-#X msg 290 82 1;
-#X obj 265 59 sel 0;
-#X msg 265 119 \; pd dsp \$1;
-#X msg 265 82 0;
-#X connect 0 0 4 0;
-#X connect 1 0 7 0;
-#X connect 2 0 6 0;
-#X connect 4 0 13 0;
-#X connect 5 0 13 0;
-#X connect 5 0 31 0;
-#X connect 6 0 1 0;
-#X connect 7 0 0 0;
-#X connect 7 1 8 0;
-#X connect 8 0 5 0;
-#X connect 9 1 4 1;
-#X connect 10 0 22 0;
-#X connect 11 0 1 1;
-#X connect 11 0 9 0;
-#X connect 12 0 10 0;
-#X connect 12 0 18 0;
-#X connect 14 0 21 0;
-#X connect 15 0 17 0;
-#X connect 15 0 30 0;
-#X connect 18 0 19 0;
-#X connect 20 0 21 1;
-#X connect 20 0 26 1;
-#X connect 21 0 27 0;
-#X connect 22 0 20 0;
-#X connect 25 0 26 0;
-#X connect 26 0 28 0;
-#X connect 29 0 31 0;
-#X connect 30 0 32 0;
-#X connect 30 1 29 0;
-#X connect 32 0 31 0;
-#X restore 37 232 pd output;
-#X msg 128 204 MUTE;
-#X text 164 203 <-- Turn up your volume here.;
-#X text 15 260 HERE IS THE ALTERNATIVE;
-#X obj 36 321 mtof;
-#X floatatom 36 281 5 0 0;
-#X floatatom 15 345 0 0 0;
-#X floatatom 123 461 0 0 0;
-#X obj 138 312 <= -1500;
-#X obj 138 332 expr 1-$f1;
-#X obj 95 352 spigot;
-#X obj 95 295 t f f;
-#X obj 95 372 min 1499;
-#X obj 95 419 expr (8.17579891564*exp(0.0577622650*$f1));
-#X obj 151 352 s zero;
-#X obj 123 440 r zero;
-#X obj 96 485 bang;
-#X obj 36 482 bang;
-#X obj 36 502 realtime;
-#X floatatom 161 576 0 0 0;
-#X obj 204 499 bang;
-#X obj 161 499 bang;
-#X obj 161 519 realtime;
-#X floatatom 161 540 0 0 0;
-#X obj 365 389 *;
-#X obj 408 342 loadbang;
-#X obj 365 408 exp;
-#X obj 365 428 *;
-#X floatatom 365 448 0 0 0;
-#X obj 397 431 r zero;
-#X text 79 277 Select a MIDI note here.;
-#X obj 477 572 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
--1;
-#X obj 477 12 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
--1;
-#X text 496 123 The examples at the botton left are PD structures which
-emulate the source code of the [mtof] object. In one case \, I have
-used the [expr] object to perform the necessary calculation. In the
-other case \, I used PD's Arithmetic objects to perform the calculation.
-;
-#X text 498 291 Secondly \, the incoming MIDI note number is translated
-into a frequency value by the simple equation:;
-#X text 494 330 (8.17579891564 * exp(0.0577622650 * MIDI_note)) = frequency
-;
-#X text 498 355 For curiosity's sake \, I included a timer to show
-how much faster the [mtof] object is compared to the two alternative
-methods.;
-#X text 162 556 Arithmetic is __?__ milliseconds slower than [mtof].
-;
-#X text 159 592 [expr] is __?__ milliseconds slower than [mtof].;
-#X text 12 363 RESULT A;
-#X text 123 476 RESULT B;
-#X text 364 465 RESULT C;
-#X msg 408 363 0.0577623;
-#X msg 408 403 8.1758;
-#X text 504 12 THE ALTERNATIVE EXPLAINED;
-#X text 499 33 The [mtof] object is really just a function defined
-in PD's source code - which is programmed in "C".;
-#X text 497 67 As such \, it operates very quickly. If a similar function
-were to be created using PD's arithmetic objects \, the process would
-be quite a bit slower. How much slower?;
-#X text 498 409 As well \, notice that RESULT C (the output from PD's
-basic arithmetic objects) is not as accurate as the other two methods:
-[mtof] and/or [expr]. This is because the message boxes and the [*]
-object round off the operands because they cannot handle enough decimal
-places.;
-#X text 498 200 The first order of business performed by these examples
-is the filtering out of all numbers less than -1500 and greater than
-1499 (Just like the [mtof] source code). In other words \, "overflows
-and underflows are clipped" as Miller Puckette stated in the original
-documentation for this object.;
-#X text 22 62 MIDI notes usually range between 0 and 127 from an incoming
-MIDI controller. However \, in PD negative numbers to -1500 and positive
-numbers to 1499 are also supported and decimal places can be used to
-achive microtonal pitches.;
-#X text 11 125 CONVENIENT? YES!;
-#X connect 1 0 4 0;
-#X connect 2 0 1 0;
-#X connect 4 0 5 0;
-#X connect 5 0 7 0;
-#X connect 6 0 7 2;
-#X connect 7 0 6 0;
-#X connect 8 0 7 3;
-#X connect 11 0 13 0;
-#X connect 11 0 24 0;
-#X connect 12 0 11 0;
-#X connect 12 0 18 0;
-#X connect 15 0 16 0;
-#X connect 16 0 17 1;
-#X connect 16 0 21 0;
-#X connect 17 0 19 0;
-#X connect 18 0 17 0;
-#X connect 18 1 15 0;
-#X connect 19 0 20 0;
-#X connect 19 0 23 0;
-#X connect 19 0 31 0;
-#X connect 20 0 14 0;
-#X connect 22 0 14 0;
-#X connect 23 0 25 1;
-#X connect 24 0 25 0;
-#X connect 24 0 28 0;
-#X connect 25 0 26 0;
-#X connect 27 0 29 1;
-#X connect 28 0 29 0;
-#X connect 29 0 30 0;
-#X connect 31 0 33 0;
-#X connect 32 0 49 0;
-#X connect 32 0 50 0;
-#X connect 33 0 34 0;
-#X connect 34 0 35 0;
-#X connect 34 0 27 0;
-#X connect 36 0 35 0;
-#X connect 39 0 38 0;
-#X connect 49 0 31 1;
-#X connect 50 0 34 1;
-#X restore 175 75 pd understanding_mtof;
-#X text 47 105 -- Frequency to MIDI note number converter.;
-#N canvas 118 -18 919 630 understanding_ftom 0;
-#X floatatom 38 86 5 0 0;
-#X floatatom 38 131 5 0 0;
-#X text 12 215 HERE IS THE ALTERNATIVE;
-#X floatatom 33 236 5 0 0;
-#X floatatom 12 300 0 0 0;
-#X obj 507 572 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
--1;
-#X obj 507 12 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
--1;
-#X text 9 318 RESULT A;
-#X text 534 12 THE ALTERNATIVE EXPLAINED;
-#X text 527 67 As such \, it operates very quickly. If a similar function
-were to be created using PD's arithmetic objects \, the process would
-be quite a bit slower. How much slower?;
-#X text 12 68 CONVENIENT? YES!;
-#X text 22 14 [ftom] will convert Wave/Signal Frequency to MIDI note
-numbers. This object exists in PD for the sake of convenience and speed
-of processing.;
-#X text 78 85 Select a Frequency: (i.e. 440 hz is an "A" above middle
-C);
-#X obj 38 108 ftom;
-#X obj 38 158 makenote 100 500;
-#X obj 38 181 noteout;
-#X text 76 232 Select a FREQUENCY here.;
-#X obj 33 276 ftom;
-#X text 529 33 The [ftom] object is really just a function defined
-in PD's source code - which is programmed in "C".;
-#X text 526 123 The examples at the botton left are PD structures which
-emulate the source code of the [ftom] object. In one case \, I have
-used the [expr] object to perform the necessary calculation. In the
-other case \, I used PD's Arithmetic objects to perform the calculation.
-;
-#X obj 64 256 moses 0;
-#X msg 64 277 -1500;
-#X floatatom 64 408 0 0 0;
-#X floatatom 114 346 0 0 0;
-#X obj 114 313 * 17.3123;
-#X obj 114 273 * 0.122312;
-#X obj 114 293 log;
-#X obj 101 385 expr (17.3123405046*log(.12231220585*$f1));
-#X text 64 423 RESULT B;
-#X text 113 359 RESULT C;
-#X obj 93 449 bang;
-#X obj 33 446 bang;
-#X obj 33 466 realtime;
-#X floatatom 158 540 0 0 0;
-#X obj 201 463 bang;
-#X obj 158 463 bang;
-#X obj 158 483 realtime;
-#X floatatom 158 504 0 0 0;
-#X text 189 520 Arithmetic is __?__ milliseconds slower than [mtof].
-;
-#X text 156 556 [expr] is __?__ milliseconds slower than [mtof].;
-#X text 528 200 Firstly \, the PD source code "clips" overflows and
-underflows. This means simply that frequencies LESS THAN zero cannot
-be tranlated into a MIDI note value - so they're ignored completely
-and the object responds with "-1500".;
-#X text 528 291 Secondly \, the incoming frequency is translated into
-a MIDI note value by the simple equation:;
-#X text 524 330 (17.3123405046 * log(0.12231220585 * Frequency)) =
-MIDI_note;
-#X text 528 355 For curiosity's sake \, I included a timer to show
-how much faster the [ftom] object is compared to the two alternative
-methods.;
-#X text 528 409 As well \, notice that RESULT C (the output from PD's
-basic arithmetic objects) is not as accurate as the other two methods:
-[ftom] and/or [expr]. This is because the message boxes and the [*]
-object round off the operands because they cannot handle enough decimal
-places.;
-#X text 145 119 Note that fractional values have no effect. MIDI controllers
-only accept integers. Perhaps a subroutine could be designed to parse
-the decimal places and manipulate the pitch bend controller to achieve
-microtonal control?;
-#X connect 0 0 13 0;
-#X connect 1 0 14 0;
-#X connect 3 0 17 0;
-#X connect 3 0 20 0;
-#X connect 4 0 31 0;
-#X connect 6 0 5 0;
-#X connect 13 0 1 0;
-#X connect 14 0 15 0;
-#X connect 14 1 15 1;
-#X connect 17 0 4 0;
-#X connect 20 0 21 0;
-#X connect 20 1 25 0;
-#X connect 20 1 27 0;
-#X connect 21 0 22 0;
-#X connect 21 0 23 0;
-#X connect 22 0 30 0;
-#X connect 23 0 34 0;
-#X connect 24 0 23 0;
-#X connect 25 0 26 0;
-#X connect 26 0 24 0;
-#X connect 27 0 22 0;
-#X connect 30 0 32 1;
-#X connect 31 0 32 0;
-#X connect 31 0 35 0;
-#X connect 32 0 33 0;
-#X connect 34 0 36 1;
-#X connect 35 0 36 0;
-#X connect 36 0 37 0;
-#X restore 174 121 pd understanding_ftom;
-#X floatatom 12 37 0 0 0;
-#X floatatom 12 207 0 0 0;
-#X floatatom 12 252 0 0 0;
-#X floatatom 12 163 0 0 0;
-#X obj 12 184 dbtorms;
-#X obj 12 231 rmstodb;
-#N canvas 65 78 423 452 understanding_dbtorms 0;
-#N canvas 0 0 452 302 What_is_a_decibel? 0;
-#X text 24 94 The difficulty in measuring the volume of an instrument
-however is caused by 'distance'. For example \, at one metre away from
-a door bell \, the amplitude might be 70 Decibels \, while at 50 metres
-away the same door bell is just a fraction of that amplitude.;
-#X text 25 33 DECIBELS are units by which we measure amplitude. A human
-voice is approximately 70 Decibels - a snare drum is approximately
-120 Decibels - the threshold of pain for the human ear is approximately
-110 Decibels (poor drummers!);
-#X text 23 174 Literally \, a Decibel is one-tenth of a Bel. A Bel
-\, according to a medical dictionary is approximately the threshold
-of the human ear at 1000 hz. I know that this seems a little vague
-\, and perhaps this isn't the best way to explain it - we might as
-well be measuring "fortnights" and "bunches" and "Alens"! Anyways...I'm
-not an acoustician.;
-#X restore 39 24 pd What_is_a_decibel?;
-#N canvas 0 0 440 242 What_does_RMS_mean? 0;
-#X text 24 21 RMS is an acronym meaning "Root Mean Square".;
-#X text 23 43 In the analog realm \, RMS is the result of an equation
-performed on electrical flow. It is used to measure voltage or current.
-It is important to note however \, that it does NOT measure "power".
-It's also important to recognize that our ears perceive changes in
-amplitude (decibels) more than we perceive changes in RMS levels.;
-#X text 23 133 In the digital realm \, i.e. PD! \, RMS is better defined
-as "a measurement of a signal taken by squaring data points along the
-curve \, finding the mean \, and then determining the square root of
-that mean value.;
-#X restore 39 47 pd What_does_RMS_mean?;
-#X text 19 80 [dbtorms] in PD performs the following equation to convert
-the data: Note that incoming values less than 0 or greater than 485
-are considered overflow or underflow and are clipped/ignored.;
-#X text 22 241 Example:;
-#X floatatom 24 293 0 0 0;
-#X obj 24 313 moses 0;
-#X msg 24 333 0;
-#X obj 86 352 min 485;
-#X text 17 149 (exp((2.302585092994 * 0.05) * (db_value - 100)) = RMS
-;
-#X floatatom 24 397 0 0 0;
-#X obj 151 310 dbtorms;
-#X floatatom 151 330 0 0 0;
-#X obj 86 372 expr (exp((2.302585092994*0.05)*($f1-100)));
-#X text 18 178 On a scale of zero to 100 decibels \, the [dbtorms]
-produces exponential values between 0 and 1;
-#X msg 24 264 0;
-#X msg 57 264 100;
-#X obj 61 332 sel 0;
-#X connect 4 0 5 0;
-#X connect 4 0 10 0;
-#X connect 5 0 6 0;
-#X connect 5 1 16 0;
-#X connect 6 0 9 0;
-#X connect 7 0 12 0;
-#X connect 10 0 11 0;
-#X connect 12 0 9 0;
-#X connect 14 0 4 0;
-#X connect 15 0 4 0;
-#X connect 16 0 6 0;
-#X connect 16 1 7 0;
-#X restore 155 203 pd understanding_dbtorms;
-#X text 66 185 -- Decibels to RMS converter.;
-#X text 66 232 -- RMS to Decibels converter.;
-#X floatatom 12 333 0 0 0;
-#X floatatom 12 378 0 0 0;
-#X floatatom 12 289 0 0 0;
-#X obj 12 310 dbtopow;
-#X obj 12 357 powtodb;
-#N canvas 349 60 423 452 understanding_rmstodb 0;
-#N canvas 0 0 452 302 What_is_a_decibel? 0;
-#X text 24 94 The difficulty in measuring the volume of an instrument
-however is caused by 'distance'. For example \, at one metre away from
-a door bell \, the amplitude might be 70 Decibels \, while at 50 metres
-away the same door bell is just a fraction of that amplitude.;
-#X text 25 33 DECIBELS are units by which we measure amplitude. A human
-voice is approximately 70 Decibels - a snare drum is approximately
-120 Decibels - the threshold of pain for the human ear is approximately
-110 Decibels (poor drummers!);
-#X text 23 174 Literally \, a Decibel is one-tenth of a Bel. A Bel
-\, according to a medical dictionary is approximately the threshold
-of the human ear at 1000 hz. I know that this seems a little vague
-\, and perhaps this isn't the best way to explain it - we might as
-well be measuring "fortnights" and "bunches" and "Alens"! Anyways...I'm
-not an acoustician.;
-#X restore 39 24 pd What_is_a_decibel?;
-#N canvas 0 0 440 242 What_does_RMS_mean? 0;
-#X text 24 21 RMS is an acronym meaning "Root Mean Square".;
-#X text 23 43 In the analog realm \, RMS is the result of an equation
-performed on electrical flow. It is used to measure voltage or current.
-It is important to note however \, that it does NOT measure "power".
-It's also important to recognize that our ears perceive changes in
-amplitude (decibels) more than we perceive changes in RMS levels.;
-#X text 23 133 In the digital realm \, i.e. PD! \, RMS is better defined
-as "a measurement of a signal taken by squaring data points along the
-curve \, finding the mean \, and then determining the square root of
-that mean value.;
-#X restore 39 47 pd What_does_RMS_mean?;
-#X text 22 219 Example:;
-#X floatatom 24 259 0 0 0;
-#X floatatom 24 422 0 0 0;
-#X floatatom 151 354 0 0 0;
-#X msg 68 278 0;
-#X text 19 80 [rmstodb] in PD performs the following equation to convert
-the data: Note that incoming values less than 0 is consider underflow
-and is clipped/ignored.;
-#X text 18 178 On a scale of zero to 1 decibels \, the [rmstodb] produces
-logarithmic values between 0 and 100 \, although higher values can
-also be produced.;
-#X obj 151 334 rmstodb;
-#X obj 24 358 max 0;
-#X obj 24 401 max 0;
-#X obj 24 379 expr (100+((20/2.302585092994)*log($f1)));
-#X text 18 136 (100 + ((20/2.302585092994) * log(RMS_value)));
-#X obj 24 278 / 1000;
-#X floatatom 24 310 0 0 0;
-#X msg 101 278 1;
-#X connect 3 0 14 0;
-#X connect 6 0 15 0;
-#X connect 9 0 5 0;
-#X connect 10 0 12 0;
-#X connect 11 0 4 0;
-#X connect 12 0 11 0;
-#X connect 14 0 15 0;
-#X connect 15 0 9 0;
-#X connect 15 0 10 0;
-#X connect 16 0 15 0;
-#X restore 153 249 pd understanding_rmstodb;
-#X text 66 311 -- Decibels to power converter.;
-#X text 66 358 -- power to Decibels converter.;
-#X text 439 17 Please note: I have no idea why it's necessary for PD
-to measure decibels \, rms \, or power. It seems to me that RMS and
-Power are extremely important in the analog world (so that an engineer
-doesn't blow up a transistor)...but in PD \, these things are just
-numbers which have been abstracted from their original analog counterparts.
-I would really appreciate if somebody could help me understand these
-concepts and finish this document. Why are these objects present in
-PD? WHY should they be used and what benefits to they produce in a
-digital process?;
-#N canvas 460 106 429 458 understanding_dbtopow 0;
-#N canvas 0 0 452 302 What_is_a_decibel? 0;
-#X text 24 94 The difficulty in measuring the volume of an instrument
-however is caused by 'distance'. For example \, at one metre away from
-a door bell \, the amplitude might be 70 Decibels \, while at 50 metres
-away the same door bell is just a fraction of that amplitude.;
-#X text 25 33 DECIBELS are units by which we measure amplitude. A human
-voice is approximately 70 Decibels - a snare drum is approximately
-120 Decibels - the threshold of pain for the human ear is approximately
-110 Decibels (poor drummers!);
-#X text 23 174 Literally \, a Decibel is one-tenth of a Bel. A Bel
-\, according to a medical dictionary is approximately the threshold
-of the human ear at 1000 hz. I know that this seems a little vague
-\, and perhaps this isn't the best way to explain it - we might as
-well be measuring "fortnights" and "bunches" and "Alens"! Anyways...I'm
-not an acoustician.;
-#X restore 39 24 pd What_is_a_decibel?;
-#X floatatom 21 205 0 0 0;
-#X floatatom 21 309 0 0 0;
-#X floatatom 148 242 0 0 0;
-#N canvas 0 0 442 244 What_does_power_mean? 0;
-#X text 30 25 What does power mean? I really don't know? I can't determine
-from my own research or from PD's documentation why or how this data
-is used. All that I do know \, is that PD provides these objects for
-a good reason -- I just don't know the reason.;
-#X text 27 103 Having said that \, I would enjoy learning from somebody
-who DOES know more about these objects and their usage. All that I
-can offer is an explanation of the equation used to perform these conversions.
-;
-#X restore 39 47 pd What_does_power_mean?;
-#X text 18 80 [dbtopow] in PD performs the following equation to convert
-the data: Note that incoming values less than 0 or greater than 870
-are considered overflow or underflow and are clipped/ignored.;
-#X obj 148 222 dbtopow;
-#X obj 21 226 max 0;
-#X obj 21 246 min 870;
-#X text 17 149 exp((2.302585092994 * 0.1) * (db_value - 100)) = Power
-;
-#X obj 21 269 expr exp((2.302585092994*0.1)*($f1-100));
-#X connect 1 0 6 0;
-#X connect 1 0 7 0;
-#X connect 6 0 3 0;
-#X connect 7 0 8 0;
-#X connect 8 0 10 0;
-#X connect 10 0 2 0;
-#X restore 154 330 pd understanding_dbtopow;
-#N canvas 348 60 429 458 understanding_powtodb 0;
-#N canvas 0 0 452 302 What_is_a_decibel? 0;
-#X text 24 94 The difficulty in measuring the volume of an instrument
-however is caused by 'distance'. For example \, at one metre away from
-a door bell \, the amplitude might be 70 Decibels \, while at 50 metres
-away the same door bell is just a fraction of that amplitude.;
-#X text 25 33 DECIBELS are units by which we measure amplitude. A human
-voice is approximately 70 Decibels - a snare drum is approximately
-120 Decibels - the threshold of pain for the human ear is approximately
-110 Decibels (poor drummers!);
-#X text 23 174 Literally \, a Decibel is one-tenth of a Bel. A Bel
-\, according to a medical dictionary is approximately the threshold
-of the human ear at 1000 hz. I know that this seems a little vague
-\, and perhaps this isn't the best way to explain it - we might as
-well be measuring "fortnights" and "bunches" and "Alens"! Anyways...I'm
-not an acoustician.;
-#X restore 39 24 pd What_is_a_decibel?;
-#X text 22 241 Example:;
-#X floatatom 22 261 0 0 0;
-#X floatatom 22 363 0 0 0;
-#X floatatom 149 298 0 0 0;
-#N canvas 0 0 442 244 What_does_power_mean? 0;
-#X text 30 25 What does power mean? I really don't know? I can't determine
-from my own research or from PD's documentation why or how this data
-is used. All that I do know \, is that PD provides these objects for
-a good reason -- I just don't know the reason.;
-#X text 27 103 Having said that \, I would enjoy learning from somebody
-who DOES know more about these objects and their usage. All that I
-can offer is an explanation of the equation used to perform these conversions.
-;
-#X restore 39 47 pd What_does_power_mean?;
-#X text 17 81 [powtodb] in PD performs the following equation to convert
-the data: Note that incoming values less than 0 are considered underflow
-and are clipped/ignored.;
-#X text 17 149 (100 + ((10/2.302585092994) * log(POWER_value))) = Debibels
-;
-#X obj 149 278 powtodb;
-#X obj 22 281 max 0;
-#X obj 22 321 expr (100 + ((10/2.302585092994)*log($f1)));
-#X obj 22 342 max 0;
-#X connect 2 0 8 0;
-#X connect 2 0 9 0;
-#X connect 8 0 4 0;
-#X connect 9 0 10 0;
-#X connect 10 0 11 0;
-#X connect 11 0 3 0;
-#X restore 154 377 pd understanding_powtodb;
-#X text 13 415 RELATED OBJECTS;
-#X obj 14 434 dbtopow~;
-#X obj 68 434 dbtorms~;
-#X obj 123 434 rmstodb~;
-#X obj 178 434 powtodb~;
-#X obj 233 434 mtof~;
-#X obj 270 434 ftom~;
-#X obj 14 459 expr;
-#X obj 46 459 expr~;
-#N canvas 0 0 452 302 other_objects_from_related_libraries 0;
-#X obj 26 39 db2v;
-#X obj 65 38 f2note;
-#X obj 115 39 b2db;
-#X obj 150 40 t3_sig~;
-#X obj 205 40 m2f~;
-#X obj 249 41 tmtof;
-#X text 18 96 These objects are offered in PD only if you have downloaded
-and properly installed the appropriate library. These objects may or
-may not exist in a single library.;
-#X text 17 145 The best places to find information about PD's libraries
-is:;
-#X text 14 167 www.puredata.org and click on "Downloads" then "Software"
-;
-#X text 15 183 or;
-#X text 16 197 iem.kug.ac.at/pdb/;
-#X restore 14 494 pd other_objects_from_related_libraries;
-#X obj 90 459 rmstopow~;
-#X obj 154 461 powtorms~;
-#X obj 220 461 sig~;
-#X obj 254 461 snapshot~;
-#X text 14 550 This document was updated for PD version 0.35 test 29
-by Dave Sabine as part of a project called pddp proposed to build comprehensive
-documentation for PD.;
-#X connect 0 0 1 0;
-#X connect 1 0 2 0;
-#X connect 2 0 3 0;
-#X connect 9 0 0 0;
-#X connect 10 0 14 0;
-#X connect 12 0 13 0;
-#X connect 13 0 10 0;
-#X connect 14 0 11 0;
-#X connect 18 0 22 0;
-#X connect 20 0 21 0;
-#X connect 21 0 18 0;
-#X connect 22 0 19 0;
+#N canvas 48 140 862 639 10; +#X obj 12 82 mtof; +#X floatatom 12 105 0 0 0 0 - - -; +#X obj 12 129 ftom; +#X floatatom 12 150 0 0 0 0 - - -; +#X text 47 82 -- MIDI note number to frequency converter.; +#N canvas 37 22 899 659 understanding_mtof 0; +#X text 20 13 [mtof] will convert MIDI note numbers to Wave Freqeuency. +This object exists in PD for the sake of convenience and speed of processing. +; +#X obj 37 165 mtof; +#X floatatom 37 143 5 0 0 0 - - -; +#X text 77 142 Select a MIDI note: (Middle C is 60).; +#X floatatom 37 188 5 0 0 0 - - -; +#X obj 37 207 osc~; +#X floatatom 99 203 0 0 0 0 - - -; +#N canvas 397 146 628 393 output 0; +#X obj 393 156 t b; +#X obj 393 106 f; +#X obj 393 56 inlet; +#X text 399 25 mute; +#X obj 393 181 f; +#X msg 480 174 0; +#X msg 393 81 bang; +#X obj 393 131 moses 1; +#X obj 480 149 t b f; +#X obj 452 113 moses 1; +#X obj 138 144 dbtorms; +#X obj 452 88 r master-lvl; +#X obj 138 38 r master-lvl; +#X obj 393 206 s master-lvl; +#X obj 22 181 inlet~; +#X obj 254 37 inlet; +#X text 254 14 level; +#X obj 254 152 s master-lvl; +#X msg 151 61 set \$1; +#X obj 151 85 outlet; +#X obj 138 190 line~; +#X obj 22 212 *~; +#X obj 138 167 pack 0 50; +#X text 34 159 audio; +#X text 148 106 show level; +#X obj 73 182 inlet~; +#X obj 73 213 *~; +#X obj 22 241 dac~ 1; +#X obj 73 241 dac~ 2; +#X msg 290 82 1; +#X obj 265 59 sel 0; +#X msg 265 119 \; pd dsp \$1; +#X msg 265 82 0; +#X connect 0 0 4 0; +#X connect 1 0 7 0; +#X connect 2 0 6 0; +#X connect 4 0 13 0; +#X connect 5 0 13 0; +#X connect 5 0 31 0; +#X connect 6 0 1 0; +#X connect 7 0 0 0; +#X connect 7 1 8 0; +#X connect 8 0 5 0; +#X connect 9 1 4 1; +#X connect 10 0 22 0; +#X connect 11 0 1 1; +#X connect 11 0 9 0; +#X connect 12 0 10 0; +#X connect 12 0 18 0; +#X connect 14 0 21 0; +#X connect 15 0 17 0; +#X connect 15 0 30 0; +#X connect 18 0 19 0; +#X connect 20 0 21 1; +#X connect 20 0 26 1; +#X connect 21 0 27 0; +#X connect 22 0 20 0; +#X connect 25 0 26 0; +#X connect 26 0 28 0; +#X connect 29 0 31 0; +#X connect 30 0 32 0; +#X connect 30 1 29 0; +#X connect 32 0 31 0; +#X restore 37 232 pd output; +#X msg 128 204 MUTE; +#X text 164 203 <-- Turn up your volume here.; +#X text 15 260 HERE IS THE ALTERNATIVE; +#X obj 36 321 mtof; +#X floatatom 36 281 5 0 0 0 - - -; +#X floatatom 15 345 0 0 0 0 - - -; +#X floatatom 123 461 0 0 0 0 - - -; +#X obj 138 312 <= -1500; +#X obj 138 332 expr 1-$f1; +#X obj 95 352 spigot; +#X obj 95 295 t f f; +#X obj 95 372 min 1499; +#X obj 95 419 expr (8.17579891564*exp(0.0577622650*$f1)); +#X obj 151 352 s zero; +#X obj 123 440 r zero; +#X obj 96 485 bang; +#X obj 36 482 bang; +#X obj 36 502 realtime; +#X floatatom 161 576 0 0 0 0 - - -; +#X obj 204 499 bang; +#X obj 161 499 bang; +#X obj 161 519 realtime; +#X floatatom 161 540 0 0 0 0 - - -; +#X obj 365 389 *; +#X obj 408 342 loadbang; +#X obj 365 408 exp; +#X obj 365 428 *; +#X floatatom 365 448 0 0 0 0 - - -; +#X obj 397 431 r zero; +#X text 79 277 Select a MIDI note here.; +#X obj 477 572 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 +-1; +#X obj 477 12 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 +-1; +#X text 496 123 The examples at the botton left are PD structures which +emulate the source code of the [mtof] object. In one case \, I have +used the [expr] object to perform the necessary calculation. In the +other case \, I used PD's Arithmetic objects to perform the calculation. +; +#X text 498 291 Secondly \, the incoming MIDI note number is translated +into a frequency value by the simple equation:; +#X text 494 330 (8.17579891564 * exp(0.0577622650 * MIDI_note)) = frequency +; +#X text 498 355 For curiosity's sake \, I included a timer to show +how much faster the [mtof] object is compared to the two alternative +methods.; +#X text 162 556 Arithmetic is __?__ milliseconds slower than [mtof]. +; +#X text 159 592 [expr] is __?__ milliseconds slower than [mtof].; +#X text 12 363 RESULT A; +#X text 123 476 RESULT B; +#X text 364 465 RESULT C; +#X msg 408 363 0.0577623; +#X msg 408 403 8.1758; +#X text 504 12 THE ALTERNATIVE EXPLAINED; +#X text 499 33 The [mtof] object is really just a function defined +in PD's source code - which is programmed in "C".; +#X text 497 67 As such \, it operates very quickly. If a similar function +were to be created using PD's arithmetic objects \, the process would +be quite a bit slower. How much slower?; +#X text 498 409 As well \, notice that RESULT C (the output from PD's +basic arithmetic objects) is not as accurate as the other two methods: +[mtof] and/or [expr]. This is because the message boxes and the [*] +object round off the operands because they cannot handle enough decimal +places.; +#X text 498 200 The first order of business performed by these examples +is the filtering out of all numbers less than -1500 and greater than +1499 (Just like the [mtof] source code). In other words \, "overflows +and underflows are clipped" as Miller Puckette stated in the original +documentation for this object.; +#X text 22 62 MIDI notes usually range between 0 and 127 from an incoming +MIDI controller. However \, in PD negative numbers to -1500 and positive +numbers to 1499 are also supported and decimal places can be used to +achive microtonal pitches.; +#X text 11 125 CONVENIENT? YES!; +#X connect 1 0 4 0; +#X connect 2 0 1 0; +#X connect 4 0 5 0; +#X connect 5 0 7 0; +#X connect 6 0 7 2; +#X connect 7 0 6 0; +#X connect 8 0 7 3; +#X connect 11 0 13 0; +#X connect 11 0 24 0; +#X connect 12 0 11 0; +#X connect 12 0 18 0; +#X connect 15 0 16 0; +#X connect 16 0 17 1; +#X connect 16 0 21 0; +#X connect 17 0 19 0; +#X connect 18 0 17 0; +#X connect 18 1 15 0; +#X connect 19 0 20 0; +#X connect 19 0 23 0; +#X connect 19 0 31 0; +#X connect 20 0 14 0; +#X connect 22 0 14 0; +#X connect 23 0 25 1; +#X connect 24 0 25 0; +#X connect 24 0 28 0; +#X connect 25 0 26 0; +#X connect 27 0 29 1; +#X connect 28 0 29 0; +#X connect 29 0 30 0; +#X connect 31 0 33 0; +#X connect 32 0 49 0; +#X connect 32 0 50 0; +#X connect 33 0 34 0; +#X connect 34 0 35 0; +#X connect 34 0 27 0; +#X connect 36 0 35 0; +#X connect 39 0 38 0; +#X connect 49 0 31 1; +#X connect 50 0 34 1; +#X restore 175 99 pd understanding_mtof; +#X text 47 129 -- Frequency to MIDI note number converter.; +#N canvas 118 22 919 630 understanding_ftom 0; +#X floatatom 38 86 5 0 0 0 - - -; +#X floatatom 38 131 5 0 0 0 - - -; +#X text 12 215 HERE IS THE ALTERNATIVE; +#X floatatom 33 236 5 0 0 0 - - -; +#X floatatom 12 300 0 0 0 0 - - -; +#X obj 507 572 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 +-1; +#X obj 507 12 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 +-1; +#X text 9 318 RESULT A; +#X text 534 12 THE ALTERNATIVE EXPLAINED; +#X text 527 67 As such \, it operates very quickly. If a similar function +were to be created using PD's arithmetic objects \, the process would +be quite a bit slower. How much slower?; +#X text 12 68 CONVENIENT? YES!; +#X text 22 14 [ftom] will convert Wave/Signal Frequency to MIDI note +numbers. This object exists in PD for the sake of convenience and speed +of processing.; +#X text 78 85 Select a Frequency: (i.e. 440 hz is an "A" above middle +C); +#X obj 38 108 ftom; +#X obj 38 158 makenote 100 500; +#X obj 38 181 noteout; +#X text 76 232 Select a FREQUENCY here.; +#X obj 33 276 ftom; +#X text 529 33 The [ftom] object is really just a function defined +in PD's source code - which is programmed in "C".; +#X text 526 123 The examples at the botton left are PD structures which +emulate the source code of the [ftom] object. In one case \, I have +used the [expr] object to perform the necessary calculation. In the +other case \, I used PD's Arithmetic objects to perform the calculation. +; +#X obj 64 256 moses 0; +#X msg 64 277 -1500; +#X floatatom 64 408 0 0 0 0 - - -; +#X floatatom 114 346 0 0 0 0 - - -; +#X obj 114 313 * 17.3123; +#X obj 114 273 * 0.122312; +#X obj 114 293 log; +#X obj 101 385 expr (17.3123405046*log(.12231220585*$f1)); +#X text 64 423 RESULT B; +#X text 113 359 RESULT C; +#X obj 93 449 bang; +#X obj 33 446 bang; +#X obj 33 466 realtime; +#X floatatom 158 540 0 0 0 0 - - -; +#X obj 201 463 bang; +#X obj 158 463 bang; +#X obj 158 483 realtime; +#X floatatom 158 504 0 0 0 0 - - -; +#X text 189 520 Arithmetic is __?__ milliseconds slower than [mtof]. +; +#X text 156 556 [expr] is __?__ milliseconds slower than [mtof].; +#X text 528 200 Firstly \, the PD source code "clips" overflows and +underflows. This means simply that frequencies LESS THAN zero cannot +be tranlated into a MIDI note value - so they're ignored completely +and the object responds with "-1500".; +#X text 528 291 Secondly \, the incoming frequency is translated into +a MIDI note value by the simple equation:; +#X text 524 330 (17.3123405046 * log(0.12231220585 * Frequency)) = +MIDI_note; +#X text 528 355 For curiosity's sake \, I included a timer to show +how much faster the [ftom] object is compared to the two alternative +methods.; +#X text 528 409 As well \, notice that RESULT C (the output from PD's +basic arithmetic objects) is not as accurate as the other two methods: +[ftom] and/or [expr]. This is because the message boxes and the [*] +object round off the operands because they cannot handle enough decimal +places.; +#X text 145 119 Note that fractional values have no effect. MIDI controllers +only accept integers. Perhaps a subroutine could be designed to parse +the decimal places and manipulate the pitch bend controller to achieve +microtonal control?; +#X connect 0 0 13 0; +#X connect 1 0 14 0; +#X connect 3 0 17 0; +#X connect 3 0 20 0; +#X connect 4 0 31 0; +#X connect 6 0 5 0; +#X connect 13 0 1 0; +#X connect 14 0 15 0; +#X connect 14 1 15 1; +#X connect 17 0 4 0; +#X connect 20 0 21 0; +#X connect 20 1 25 0; +#X connect 20 1 27 0; +#X connect 21 0 22 0; +#X connect 21 0 23 0; +#X connect 22 0 30 0; +#X connect 23 0 34 0; +#X connect 24 0 23 0; +#X connect 25 0 26 0; +#X connect 26 0 24 0; +#X connect 27 0 22 0; +#X connect 30 0 32 1; +#X connect 31 0 32 0; +#X connect 31 0 35 0; +#X connect 32 0 33 0; +#X connect 34 0 36 1; +#X connect 35 0 36 0; +#X connect 36 0 37 0; +#X restore 174 145 pd understanding_ftom; +#X floatatom 12 61 0 0 0 0 - - -; +#X floatatom 12 231 0 0 0 0 - - -; +#X floatatom 12 276 0 0 0 0 - - -; +#X floatatom 12 187 0 0 0 0 - - -; +#X obj 12 208 dbtorms; +#X obj 12 255 rmstodb; +#N canvas 65 78 423 452 understanding_dbtorms 0; +#N canvas 0 22 452 302 What_is_a_decibel? 0; +#X text 24 94 The difficulty in measuring the volume of an instrument +however is caused by 'distance'. For example \, at one metre away from +a door bell \, the amplitude might be 70 Decibels \, while at 50 metres +away the same door bell is just a fraction of that amplitude.; +#X text 25 33 DECIBELS are units by which we measure amplitude. A human +voice is approximately 70 Decibels - a snare drum is approximately +120 Decibels - the threshold of pain for the human ear is approximately +110 Decibels (poor drummers!); +#X text 23 174 Literally \, a Decibel is one-tenth of a Bel. A Bel +\, according to a medical dictionary is approximately the threshold +of the human ear at 1000 hz. I know that this seems a little vague +\, and perhaps this isn't the best way to explain it - we might as +well be measuring "fortnights" and "bunches" and "Alens"! Anyways...I'm +not an acoustician.; +#X restore 39 24 pd What_is_a_decibel?; +#N canvas 0 22 440 242 What_does_RMS_mean? 0; +#X text 24 21 RMS is an acronym meaning "Root Mean Square".; +#X text 23 43 In the analog realm \, RMS is the result of an equation +performed on electrical flow. It is used to measure voltage or current. +It is important to note however \, that it does NOT measure "power". +It's also important to recognize that our ears perceive changes in +amplitude (decibels) more than we perceive changes in RMS levels.; +#X text 23 133 In the digital realm \, i.e. PD! \, RMS is better defined +as "a measurement of a signal taken by squaring data points along the +curve \, finding the mean \, and then determining the square root of +that mean value.; +#X restore 39 47 pd What_does_RMS_mean?; +#X text 19 80 [dbtorms] in PD performs the following equation to convert +the data: Note that incoming values less than 0 or greater than 485 +are considered overflow or underflow and are clipped/ignored.; +#X text 22 241 Example:; +#X floatatom 24 293 0 0 0 0 - - -; +#X obj 24 313 moses 0; +#X msg 24 333 0; +#X obj 86 352 min 485; +#X text 17 149 (exp((2.302585092994 * 0.05) * (db_value - 100)) = RMS +; +#X floatatom 24 397 0 0 0 0 - - -; +#X obj 151 310 dbtorms; +#X floatatom 151 330 0 0 0 0 - - -; +#X obj 86 372 expr (exp((2.302585092994*0.05)*($f1-100))); +#X text 18 178 On a scale of zero to 100 decibels \, the [dbtorms] +produces exponential values between 0 and 1; +#X msg 24 264 0; +#X msg 57 264 100; +#X obj 61 332 sel 0; +#X connect 4 0 5 0; +#X connect 4 0 10 0; +#X connect 5 0 6 0; +#X connect 5 1 16 0; +#X connect 6 0 9 0; +#X connect 7 0 12 0; +#X connect 10 0 11 0; +#X connect 12 0 9 0; +#X connect 14 0 4 0; +#X connect 15 0 4 0; +#X connect 16 0 6 0; +#X connect 16 1 7 0; +#X restore 155 227 pd understanding_dbtorms; +#X text 66 209 -- Decibels to RMS converter.; +#X text 66 256 -- RMS to Decibels converter.; +#X floatatom 12 357 0 0 0 0 - - -; +#X floatatom 12 402 0 0 0 0 - - -; +#X floatatom 12 313 0 0 0 0 - - -; +#X obj 12 334 dbtopow; +#X obj 12 381 powtodb; +#N canvas 349 60 423 452 understanding_rmstodb 0; +#N canvas 0 22 452 302 What_is_a_decibel? 0; +#X text 24 94 The difficulty in measuring the volume of an instrument +however is caused by 'distance'. For example \, at one metre away from +a door bell \, the amplitude might be 70 Decibels \, while at 50 metres +away the same door bell is just a fraction of that amplitude.; +#X text 25 33 DECIBELS are units by which we measure amplitude. A human +voice is approximately 70 Decibels - a snare drum is approximately +120 Decibels - the threshold of pain for the human ear is approximately +110 Decibels (poor drummers!); +#X text 23 174 Literally \, a Decibel is one-tenth of a Bel. A Bel +\, according to a medical dictionary is approximately the threshold +of the human ear at 1000 hz. I know that this seems a little vague +\, and perhaps this isn't the best way to explain it - we might as +well be measuring "fortnights" and "bunches" and "Alens"! Anyways...I'm +not an acoustician.; +#X restore 39 24 pd What_is_a_decibel?; +#N canvas 0 22 440 242 What_does_RMS_mean? 0; +#X text 24 21 RMS is an acronym meaning "Root Mean Square".; +#X text 23 43 In the analog realm \, RMS is the result of an equation +performed on electrical flow. It is used to measure voltage or current. +It is important to note however \, that it does NOT measure "power". +It's also important to recognize that our ears perceive changes in +amplitude (decibels) more than we perceive changes in RMS levels.; +#X text 23 133 In the digital realm \, i.e. PD! \, RMS is better defined +as "a measurement of a signal taken by squaring data points along the +curve \, finding the mean \, and then determining the square root of +that mean value.; +#X restore 39 47 pd What_does_RMS_mean?; +#X text 22 219 Example:; +#X floatatom 24 259 0 0 0 0 - - -; +#X floatatom 24 422 0 0 0 0 - - -; +#X floatatom 151 354 0 0 0 0 - - -; +#X msg 68 278 0; +#X text 19 80 [rmstodb] in PD performs the following equation to convert +the data: Note that incoming values less than 0 is consider underflow +and is clipped/ignored.; +#X text 18 178 On a scale of zero to 1 decibels \, the [rmstodb] produces +logarithmic values between 0 and 100 \, although higher values can +also be produced.; +#X obj 151 334 rmstodb; +#X obj 24 358 max 0; +#X obj 24 401 max 0; +#X obj 24 379 expr (100+((20/2.302585092994)*log($f1))); +#X text 18 136 (100 + ((20/2.302585092994) * log(RMS_value))); +#X obj 24 278 / 1000; +#X floatatom 24 310 0 0 0 0 - - -; +#X msg 101 278 1; +#X connect 3 0 14 0; +#X connect 6 0 15 0; +#X connect 9 0 5 0; +#X connect 10 0 12 0; +#X connect 11 0 4 0; +#X connect 12 0 11 0; +#X connect 14 0 15 0; +#X connect 15 0 9 0; +#X connect 15 0 10 0; +#X connect 16 0 15 0; +#X restore 153 273 pd understanding_rmstodb; +#X text 66 335 -- Decibels to power converter.; +#X text 66 382 -- power to Decibels converter.; +#N canvas 460 106 429 458 understanding_dbtopow 0; +#N canvas 0 22 452 302 What_is_a_decibel? 0; +#X text 24 94 The difficulty in measuring the volume of an instrument +however is caused by 'distance'. For example \, at one metre away from +a door bell \, the amplitude might be 70 Decibels \, while at 50 metres +away the same door bell is just a fraction of that amplitude.; +#X text 25 33 DECIBELS are units by which we measure amplitude. A human +voice is approximately 70 Decibels - a snare drum is approximately +120 Decibels - the threshold of pain for the human ear is approximately +110 Decibels (poor drummers!); +#X text 23 174 Literally \, a Decibel is one-tenth of a Bel. A Bel +\, according to a medical dictionary is approximately the threshold +of the human ear at 1000 hz. I know that this seems a little vague +\, and perhaps this isn't the best way to explain it - we might as +well be measuring "fortnights" and "bunches" and "Alens"! Anyways...I'm +not an acoustician.; +#X restore 39 24 pd What_is_a_decibel?; +#X floatatom 21 205 0 0 0 0 - - -; +#X floatatom 21 309 0 0 0 0 - - -; +#X floatatom 148 242 0 0 0 0 - - -; +#N canvas 0 22 442 244 What_does_power_mean? 0; +#X text 30 25 What does power mean? I really don't know? I can't determine +from my own research or from PD's documentation why or how this data +is used. All that I do know \, is that PD provides these objects for +a good reason -- I just don't know the reason.; +#X text 27 103 Having said that \, I would enjoy learning from somebody +who DOES know more about these objects and their usage. All that I +can offer is an explanation of the equation used to perform these conversions. +; +#X restore 39 47 pd What_does_power_mean?; +#X text 18 80 [dbtopow] in PD performs the following equation to convert +the data: Note that incoming values less than 0 or greater than 870 +are considered overflow or underflow and are clipped/ignored.; +#X obj 148 222 dbtopow; +#X obj 21 226 max 0; +#X obj 21 246 min 870; +#X text 17 149 exp((2.302585092994 * 0.1) * (db_value - 100)) = Power +; +#X obj 21 269 expr exp((2.302585092994*0.1)*($f1-100)); +#X connect 1 0 6 0; +#X connect 1 0 7 0; +#X connect 6 0 3 0; +#X connect 7 0 8 0; +#X connect 8 0 10 0; +#X connect 10 0 2 0; +#X restore 154 354 pd understanding_dbtopow; +#N canvas 348 60 429 458 understanding_powtodb 0; +#N canvas 0 22 452 302 What_is_a_decibel? 0; +#X text 24 94 The difficulty in measuring the volume of an instrument +however is caused by 'distance'. For example \, at one metre away from +a door bell \, the amplitude might be 70 Decibels \, while at 50 metres +away the same door bell is just a fraction of that amplitude.; +#X text 25 33 DECIBELS are units by which we measure amplitude. A human +voice is approximately 70 Decibels - a snare drum is approximately +120 Decibels - the threshold of pain for the human ear is approximately +110 Decibels (poor drummers!); +#X text 23 174 Literally \, a Decibel is one-tenth of a Bel. A Bel +\, according to a medical dictionary is approximately the threshold +of the human ear at 1000 hz. I know that this seems a little vague +\, and perhaps this isn't the best way to explain it - we might as +well be measuring "fortnights" and "bunches" and "Alens"! Anyways...I'm +not an acoustician.; +#X restore 39 24 pd What_is_a_decibel?; +#X text 22 241 Example:; +#X floatatom 22 261 0 0 0 0 - - -; +#X floatatom 22 363 0 0 0 0 - - -; +#X floatatom 149 298 0 0 0 0 - - -; +#N canvas 0 22 442 244 What_does_power_mean? 0; +#X text 30 25 What does power mean? I really don't know? I can't determine +from my own research or from PD's documentation why or how this data +is used. All that I do know \, is that PD provides these objects for +a good reason -- I just don't know the reason.; +#X text 27 103 Having said that \, I would enjoy learning from somebody +who DOES know more about these objects and their usage. All that I +can offer is an explanation of the equation used to perform these conversions. +; +#X restore 39 47 pd What_does_power_mean?; +#X text 17 81 [powtodb] in PD performs the following equation to convert +the data: Note that incoming values less than 0 are considered underflow +and are clipped/ignored.; +#X text 17 149 (100 + ((10/2.302585092994) * log(POWER_value))) = Debibels +; +#X obj 149 278 powtodb; +#X obj 22 281 max 0; +#X obj 22 321 expr (100 + ((10/2.302585092994)*log($f1))); +#X obj 22 342 max 0; +#X connect 2 0 8 0; +#X connect 2 0 9 0; +#X connect 8 0 4 0; +#X connect 9 0 10 0; +#X connect 10 0 11 0; +#X connect 11 0 3 0; +#X restore 154 401 pd understanding_powtodb; +#X text 13 439 RELATED OBJECTS; +#X obj 14 458 dbtopow~; +#X obj 68 458 dbtorms~; +#X obj 123 458 rmstodb~; +#X obj 178 458 powtodb~; +#X obj 233 458 mtof~; +#X obj 270 458 ftom~; +#X obj 14 483 expr; +#X obj 46 483 expr~; +#N canvas 0 22 452 302 other_objects_from_related_libraries 0; +#X obj 26 39 db2v; +#X obj 65 38 f2note; +#X obj 115 39 b2db; +#X obj 150 40 t3_sig~; +#X obj 205 40 m2f~; +#X obj 249 41 tmtof; +#X text 18 96 These objects are offered in PD only if you have downloaded +and properly installed the appropriate library. These objects may or +may not exist in a single library.; +#X text 17 145 The best places to find information about PD's libraries +is:; +#X text 14 167 www.puredata.org and click on "Downloads" then "Software" +; +#X text 15 183 or; +#X text 16 197 iem.kug.ac.at/pdb/; +#X restore 14 518 pd other_objects_from_related_libraries; +#X obj 90 483 rmstopow~; +#X obj 154 485 powtorms~; +#X obj 220 485 sig~; +#X obj 254 485 snapshot~; +#X obj 5 2 cnv 15 850 20 empty empty all_about_acoustic_conversions +20 10 1 18 -233017 -66577 0; +#X obj 821 3 pddp; +#X text 439 41 Please note: I have no idea why it's necessary for Pd +to measure decibels \, rms \, or power. It seems to me that RMS and +Power are extremely important in the analog world (so that an engineer +doesn't blow up a transistor)...but in Pd \, these things are just +numbers which have been abstracted from their original analog counterparts. +I would really appreciate if somebody could help me understand these +concepts and finish this document. Why are these objects present in +Pd? WHY should they be used and what benefits to they produce in a +digital process?; +#X text 14 574 This document was updated for Pd version 0.35 test 29 +by Dave Sabine as part of a project called pddp proposed to build comprehensive +documentation for Pd.; +#X connect 0 0 1 0; +#X connect 1 0 2 0; +#X connect 2 0 3 0; +#X connect 8 0 0 0; +#X connect 9 0 13 0; +#X connect 11 0 12 0; +#X connect 12 0 9 0; +#X connect 13 0 10 0; +#X connect 17 0 21 0; +#X connect 19 0 20 0; +#X connect 20 0 17 0; +#X connect 21 0 18 0; diff --git a/doc/pddp/all_about_data_types.pd b/doc/pddp/all_about_data_types.pd index a696381b..4f53fda1 100644 --- a/doc/pddp/all_about_data_types.pd +++ b/doc/pddp/all_about_data_types.pd @@ -1,21 +1,18 @@ -#N canvas 310 87 865 646 10; -#X obj 462 499 route; -#X floatatom 102 114 5 0 0 0 - - -; -#X text 141 114 float; -#X symbolatom 193 114 10 0 0 0 - - -; -#X text 274 115 symbol; -#X obj 105 210 symbol; -#X symbolatom 105 257 0 0 0 0 - - -; -#X msg 114 234 word; -#X msg 105 192 test; -#X msg 88 170 symbol this; -#X text 162 212 casting as a symbol; -#X text 179 169 set type directly; -#X text 153 235 does not work (check console messages); -#X floatatom 24 232 5 0 0 0 - - -; -#X msg 29 211 12; -#X msg 12 191 float 83; -#N canvas 770 126 482 332 Related_Objects 0; +#N canvas 220 70 873 654 10; +#X obj 453 470 route; +#X floatatom 93 115 5 0 0 1 "float" - -; +#X symbolatom 184 115 10 0 0 1 "symbol" - -; +#X obj 96 211 symbol; +#X symbolatom 96 258 0 0 0 0 - - -; +#X msg 105 235 word; +#X msg 96 193 test; +#X msg 79 171 symbol this; +#X text 170 170 set type directly; +#X text 144 236 does not work (check console messages); +#X floatatom 15 233 5 0 0 0 - - -; +#X msg 20 212 12; +#X msg 3 192 float 83; +#N canvas 770 126 486 336 Related_Objects 0; #X obj 32 54 ftos; #X obj 68 54 list2symbol; #X text 23 22 data type conversion; @@ -31,102 +28,103 @@ #X obj 158 159 symbol2list; #X obj 247 138 l2s; #X obj 247 158 s2l; -#X restore 706 549 pd Related_Objects; -#X obj 419 19 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 --1; -#X obj 419 594 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 --1; -#X text 436 255 Many objects cast the data they receive when they output +#X restore 433 581 pd Related_Objects; +#X text 427 256 Many objects cast the data they receive when they output it:; -#X text 555 336 Some objects do not cast the data:; -#X obj 453 307 trigger anything; -#X msg 453 282 this is a list without a cast; -#X obj 453 330 print; -#X text 439 390 Some objects need to have the data explicitly declared +#X text 546 337 Some objects do not cast the data:; +#X obj 444 308 trigger anything; +#X msg 444 283 this is a list without a cast; +#X obj 444 331 print; +#X text 430 371 Some objects need to have the data explicitly declared in order to handle it. These are mostly symbol handling objects.; -#X text 439 466 Objects which route data generally can handle explicitly +#X text 430 437 Objects which route data generally can handle explicitly or implicitly defined data.; -#X obj 509 499 trigger; -#X obj 567 499 niagara; -#X obj 455 433 select; -#X text 3 142 symbols need to be declared explicitly \, floats do not -\, but can be:; -#X obj 4 -3 cnv 15 850 20 empty empty all_about_data_types 20 10 1 +#X obj 500 470 trigger; +#X obj 558 470 niagara; +#X obj 446 414 select; +#X obj -5 -2 cnv 15 850 20 empty empty all_about_data_types 20 10 1 18 -233017 -66577 0; -#X obj 820 -2 pddp; -#X text 17 604 by Hans-Christoph Steiner <hans@at.or.at>; -#X text 12 303 the "anything" data type allows anything to pass through -unchanged.; -#X text 441 530 click on these for more info:; -#X text 629 606 updated for Pd version 0.37.1; -#X text 0 290 "anything"; -#X text 0 406 "list"; -#X text 0 392 "float"; -#X text 0 433 "symbol"; -#X text 0 419 "scalar"; -#X text 0 379 "bang"; -#X msg 100 327 anything 1 two three; -#X msg 251 327 one 2 3; -#X obj 156 410 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 +#X obj 811 -1 pddp; +#X text 635 597 updated for Pd version 0.37.1; +#X text -9 291 "anything"; +#X text -9 407 "list"; +#X text -9 393 "float"; +#X text -9 434 "symbol"; +#X text -9 420 "scalar"; +#X text -9 380 "bang"; +#X msg 91 339 anything 1 two three; +#X msg 242 339 one 2 3; +#X obj 147 422 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; -#X obj 160 384 t a b f l p s; -#X obj 190 411 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 +#X obj 151 396 t a b f l p s; +#X obj 181 423 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; -#X msg 253 361 list one 2 3; -#X msg 292 391 1 2 3; -#X obj 453 550 all_about_lists_vs_anythings; -#X obj 452 571 all_about_symbol_construction; -#X obj 668 571 all_about_data_structures; -#X text 206 34 float symbol pointer; -#X text 6 34 atoms (basic data types):; -#X text 6 59 The basic data types are known as 'atoms' in Pd. "float" +#X msg 244 373 list one 2 3; +#X msg 283 403 1 2 3; +#X text 197 35 float symbol pointer; +#X text -3 35 atoms (basic data types):; +#X text -3 60 The basic data types are known as 'atoms' in Pd. "float" and "symbol" atoms have 'atom boxes' for realtime display and control from within a patch. "pointer" atoms are used for accessing data stored in graphical data structures.; -#X obj 450 207 int; -#X obj 458 187 / 5.23; -#X floatatom 458 159 5 0 0 0 - - -; -#X floatatom 491 227 5 0 0 0 - - -; -#X floatatom 450 227 5 0 0 0 - - -; -#X text 439 137 examples of casting:; -#X obj 540 157 tosymbol; -#X obj 604 158 fromsymbol; -#X obj 687 157 list2symbol; -#X obj 691 199 ftos; -#X obj 646 42 symbol; -#X obj 613 85 int; -#X obj 728 42 pointer; -#X obj 473 85 bang; -#X obj 511 86 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 +#X obj 441 208 int; +#X obj 449 188 / 5.23; +#X floatatom 449 160 5 0 0 0 - - -; +#X floatatom 482 228 5 0 0 0 - - -; +#X floatatom 441 228 5 0 0 0 - - -; +#X obj 531 158 tosymbol; +#X obj 595 159 fromsymbol; +#X obj 678 158 list2symbol; +#X obj 682 200 ftos; +#X obj 637 43 symbol; +#X obj 600 96 int; +#X obj 719 43 pointer; +#X obj 460 96 bang; +#X obj 498 97 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; -#X text 528 86 aka [bng]; -#X text 10 508 casting and storage objects:; -#X obj 528 42 float; -#X text 10 526 There a number of objects which are used for storing +#X obj 519 43 float; +#X text 1 527 There a number of objects which are used for storing messages \, or casting messages as a specific data type \, sometimes converting from one data type to another. The right inlet on these objects is stores that value \, which can be later output using a bang. ; -#X obj 641 85 lister; -#X text 464 42 atoms:; -#X text 569 43 aka; -#X obj 595 42 f; -#X connect 5 0 6 0; -#X connect 7 0 6 0; -#X connect 8 0 5 0; -#X connect 9 0 6 0; -#X connect 14 0 13 0; -#X connect 15 0 13 0; -#X connect 17 0 18 0; -#X connect 21 0 23 0; -#X connect 22 0 21 0; -#X connect 42 0 45 0; -#X connect 43 0 45 0; +#X obj 628 96 lister; +#X text 560 44 aka; +#X obj 586 43 f; +#X text 22 613 (C) Copyright 2004 Hans-Christoph Steiner <hans@at.or.at> +; +#X text 239 627 released under the GNU GPL; +#X text 435 614 $Revision: 1.4 $$Date: 2005-04-26 05:34:40 $; +#X text 436 627 $Author: eighthave $; +#X obj 433 517 pddp_open all_about_lists_vs_anythings; +#X obj 433 538 pddp_open all_about_symbol_construction; +#X obj 433 559 pddp_open all_about_data_structures; +#X text 515 97 (aka [bng]); +#X text 3 304 "anything" allows anything to pass through unchanged. +It is not a data type tho.; +#X text -6 143 "symbols" need to be declared explicitly. "floats" do +not need to be declared explicitly \, but can be:; +#X text 153 212 casting as a "symbol"; +#X text 1 509 CASTING AND STORAGE OBJECTS; +#X text 431 498 FOR MORE INFO:; +#X text 430 138 EXAMPLES OF CASTING; +#X text 425 43 atom objects:; +#X text 432 74 other data types:; +#X connect 3 0 4 0; +#X connect 5 0 4 0; +#X connect 6 0 3 0; +#X connect 7 0 4 0; +#X connect 11 0 10 0; +#X connect 12 0 10 0; +#X connect 16 0 18 0; +#X connect 17 0 16 0; +#X connect 33 0 36 0; +#X connect 34 0 36 0; +#X connect 36 0 35 0; +#X connect 36 3 37 0; +#X connect 38 0 36 0; +#X connect 39 0 36 0; +#X connect 43 0 47 0; +#X connect 44 0 43 0; +#X connect 44 0 46 0; #X connect 45 0 44 0; -#X connect 45 3 46 0; -#X connect 47 0 45 0; -#X connect 48 0 45 0; -#X connect 55 0 59 0; -#X connect 56 0 55 0; -#X connect 56 0 58 0; -#X connect 57 0 56 0; diff --git a/doc/pddp/all_about_haptics.pd b/doc/pddp/all_about_haptics.pd index 76a5f267..d3817824 100644 --- a/doc/pddp/all_about_haptics.pd +++ b/doc/pddp/all_about_haptics.pd @@ -1,4 +1,4 @@ -#N canvas 252 88 510 630 10; +#N canvas 252 88 514 634 10; #X obj 12 346 ff-gain; #X obj 12 385 ff-autocenter; #X obj 12 425 ff-spring; @@ -19,8 +19,7 @@ devices used for remote control surgery. Immersion \, Inc. has almost a monopoly on this technology due to a number of patents. These objects all work with Immersion technology \, generally known as "TouchSense". ; -#X text 17 584 by Hans-Christoph Steiner <hans@at.or.at>; -#X text 293 604 updated for Pd version 0.37.1; +#X text 15 606 updated for Pd version 0.37.1; #X text 107 301 Control the pulses and vibrations of a TouchSense (aka iFeel) mouse; #X text 110 349 Set the overall gain for all force effects; @@ -39,3 +38,6 @@ and others make TouchSense game controllers.; #X text 21 261 Currently \, these objects only work on GNU/Linux. For info on how to get it working \, see: http://at.or.at/hans/haptics ; +#X text 88 585 (C) Copyright 2004 Hans-Christoph Steiner <hans@at.or.at> +; +#X text 305 599 released under the GNU GPL; diff --git a/doc/pddp/all_about_hid.pd b/doc/pddp/all_about_hid.pd index 6216e637..1660c8c4 100644 --- a/doc/pddp/all_about_hid.pd +++ b/doc/pddp/all_about_hid.pd @@ -1,4 +1,4 @@ -#N canvas 136 163 868 598 10; +#N canvas 22 63 872 602 10; #X obj 5 2 cnv 15 850 20 empty empty all_about_hid 20 10 1 18 -233017 -66577 0; #X obj 821 3 pddp; @@ -19,9 +19,9 @@ the low end \, or the SensAble PHANTOM 6DOF on the high end.; #X text 16 557 (C) Copyright 2004 Hans-Christoph Steiner <hans@at.or.at> ; #X text 233 571 released under the GNU GPL; -#X text 429 558 $Revision: 1.4 $$Date: 2005-04-18 00:33:26 $; +#X text 429 558 $Revision: 1.5 $$Date: 2005-04-26 05:34:40 $; #X text 430 571 $Author: eighthave $; -#N canvas 0 22 647 451 deprecated 0; +#N canvas 0 22 663 467 deprecated 0; #X text 35 38 The use of these objects is deprecated since the functionality that they provide is available in the [hid] object \, which is a unified \, cross-platform approach.; @@ -48,7 +48,7 @@ many different sources. Here are a bunch whose functionality is available in the [hid] object \, so it is recommended that you do not use these objects any more.; #X text 436 176 device type; -#X text 712 160 latency; +#X text 674 160 latency; #X text 765 176 (Hz); #X text 685 176 (ms); #X text 435 186 -------------------------------------------------------- @@ -126,3 +126,4 @@ to the 'printing' characters. [keyname] reports Shift \, Ctrl \, Alt #X text 435 216 USB mice on Windows or MacOS X; #X obj 85 527 darwinhid; #X obj 166 527 windowshid; +#X text 742 160 refresh rate; diff --git a/doc/pddp/midi-basics.pd b/doc/pddp/all_about_midi_flags.pd index 0950d9a7..220246e1 100644 --- a/doc/pddp/midi-basics.pd +++ b/doc/pddp/all_about_midi_flags.pd @@ -1,45 +1,47 @@ -#N canvas 224 22 443 646 10;
-#X text 59 6 MIDI basics.;
-#X text 11 54 MIDI in PD is handled through the 'raw' midi devices
-(such as /dev/midi*). One could specify which MIDI port PD is supposed
-to use through a command line switch when starting PD \, i.e.:;
-#X text 35 126 pd -midiindev 1 -midioutdev 2;
-#X text 43 287 pd -mididev 1;
-#X text 17 315 This will use the first port for both MIDI input and
-output.;
-#X text 17 397 There is also a little bit of confusion about OSS midi
-(which uses the raw midi - /dev/midi* - devices by default) and ALSA
-(which is becoming very popular). ALSA uses /dev/snd/midiC*D* as their
-raw midi devices. The C* (* = some number) is the device number while
-D* (* = some number) is the port number. Normally the ALSA driver links
-its raw devices to the corresponding /dev/midi* automatically (i.e.:
-/dev/snd/midiC0d0 -> /dev/midi00 \, /dev/snd/midiC0D1 -> /dev/midi01
-etc).;
-#X text 13 150 so \, the above will use the first MIDI device for MIDI
-input (it could be a MIDI controller such as a keyboard \, midi-guitar
-\, midi knob box etc) and the device #2 will be used for outputting
-the MIDI (re)generated or sent by PD.;
-#X text 13 232 For using the same device for MIDI input AND output
-(i.e. when one uses a MIDI keyboard which is also a synthesizer) the
-following command line switch will do:;
-#X text 19 521 MIDI objects in PD (the ones that read and write to
-MIDI ports) take a MIDI channel as an argument. Channels 1-16 use the
-first MIDI device \, 17-32 use the second MIDI device and so on. For
-this to work one must specify which devices PD is supposed to use:
-;
-#X text 39 599 -midiindev 1 \, 2 -- use devices 1 and 2 for input;
-#X text 39 615 -midioutdev 1 \, 2 -- use devices 1 and 2 for output
-;
-#X text 39 631 -mididev 1 \, 2 -- use devices 1 and 2 for input and
-output;
-#X text 17 343 NOTE (Linux): PD counts the MIDI devices starting from
-1 Usually \, the operating system counts them starting with 0 (zero)
-so if you want to use /dev/midi00 \, PD has to be started with -mididev
-1 Always add 1 to the device number.;
-#X text 21 651 NOTE (Windows): -listdev command line option lists all
-available MIDI and audio devices.;
-#X text 19 678 A couple more useful command line options (related to
-MIDI):;
-#X text 21 694 -nomidiin -- do not listen to any midi input;
-#X text 21 706 -nomidiout -- do not send any midi output;
-#X text 21 718 -nomidi -- do not use any MIDI;
+#N canvas 224 22 513 695 10; +#X text 11 34 MIDI in PD is handled through the 'raw' midi devices +(such as /dev/midi*). One could specify which MIDI port PD is supposed +to use through a command line switch when starting PD \, i.e.:; +#X text 35 95 pd -midiindev 1 -midioutdev 2; +#X text 43 236 pd -mididev 1; +#X text 17 264 This will use the first port for both MIDI input and +output.; +#X text 17 346 There is also a little bit of confusion about OSS midi +(which uses the raw midi - /dev/midi* - devices by default) and ALSA +(which is becoming very popular). ALSA uses /dev/snd/midiC*D* as their +raw midi devices. The C* (* = some number) is the device number while +D* (* = some number) is the port number. Normally the ALSA driver links +its raw devices to the corresponding /dev/midi* automatically (i.e.: +/dev/snd/midiC0d0 -> /dev/midi00 \, /dev/snd/midiC0D1 -> /dev/midi01 +etc).; +#X text 13 119 so \, the above will use the first MIDI device for MIDI +input (it could be a MIDI controller such as a keyboard \, midi-guitar +\, midi knob box etc) and the device #2 will be used for outputting +the MIDI (re)generated or sent by PD.; +#X text 13 181 For using the same device for MIDI input AND output +(i.e. when one uses a MIDI keyboard which is also a synthesizer) the +following command line switch will do:; +#X text 19 470 MIDI objects in PD (the ones that read and write to +MIDI ports) take a MIDI channel as an argument. Channels 1-16 use the +first MIDI device \, 17-32 use the second MIDI device and so on. For +this to work one must specify which devices PD is supposed to use: +; +#X text 39 548 -midiindev 1 \, 2 -- use devices 1 and 2 for input; +#X text 39 564 -midioutdev 1 \, 2 -- use devices 1 and 2 for output +; +#X text 39 580 -mididev 1 \, 2 -- use devices 1 and 2 for input and +output; +#X text 17 292 NOTE (Linux): PD counts the MIDI devices starting from +1 Usually \, the operating system counts them starting with 0 (zero) +so if you want to use /dev/midi00 \, PD has to be started with -mididev +1 Always add 1 to the device number.; +#X text 21 600 NOTE (Windows): -listdev command line option lists all +available MIDI and audio devices.; +#X text 19 627 A couple more useful command line options (related to +MIDI):; +#X text 21 643 -nomidiin -- do not listen to any midi input; +#X text 21 655 -nomidiout -- do not send any midi output; +#X text 21 667 -nomidi -- do not use any MIDI; +#X obj 4 4 cnv 15 500 20 empty empty all_about_midi_flags 20 10 1 18 +-233017 -66577 0; +#X obj 471 5 pddp; diff --git a/doc/pddp/all_about_scope_and_locality.pd b/doc/pddp/all_about_scope_and_locality.pd index dd3dcac2..0c937690 100644 --- a/doc/pddp/all_about_scope_and_locality.pd +++ b/doc/pddp/all_about_scope_and_locality.pd @@ -1,11 +1,11 @@ -#N canvas 129 2 606 486 12; -#X text 19 14 WHAT IS THIS ALL ABOUT?; -#X text 31 40 Depending on the complexity of your patches \, you may +#N canvas 166 111 516 471 10; +#X text 9 34 WHAT IS THIS ALL ABOUT?; +#X text 21 60 Depending on the complexity of your patches \, you may need to control whether or not messages will be used by only ONE patch \, or throughout all open patches. The scope of a message is considered either 'local' or 'global'.; #N canvas 146 223 606 389 GLOBAL_SCOPE 0; -#N canvas 0 0 254 169 example_a 0; +#N canvas 0 22 254 169 example_a 0; #X obj 18 9 r foo; #X floatatom 18 34 5 0 0 0 - - -; #X obj 24 96 r a-foo; @@ -55,8 +55,8 @@ only have to be active.; #X connect 7 0 10 0; #X connect 8 0 11 0; #X connect 9 0 12 0; -#X restore 21 137 pd GLOBAL_SCOPE; -#N canvas 146 2 618 662 LOCAL_SCOPE 0; +#X restore 11 157 pd GLOBAL_SCOPE; +#N canvas 146 22 618 662 LOCAL_SCOPE 0; #X text 4 9 LOCAL SCOPE -send and receive messages within a SINGLE PATCH; #X text 13 37 There are many cases where you may want messages to be @@ -105,7 +105,7 @@ you should see:; #X connect 8 0 7 0; #X connect 10 0 14 0; #X connect 13 0 11 0; -#X restore 21 166 pd LOCAL_SCOPE; +#X restore 11 186 pd LOCAL_SCOPE; #N canvas 145 31 610 615 INHERITANCE 0; #X text 20 18 The word "Inherit" means to "receive a characteristic from one's parent".; @@ -157,14 +157,17 @@ or "inheritance-foo".; #X connect 15 0 18 0; #X connect 16 0 20 0; #X connect 19 0 17 0; -#X restore 21 197 pd INHERITANCE; -#X text 26 265 From section 2.6.5 of the PD manual \, Miller Puckette +#X restore 11 217 pd INHERITANCE; +#X text 16 285 From section 2.6.5 of the PD manual \, Miller Puckette says:; -#X text 49 296 "Note that the expansion of variables such as \$0 and +#X text 39 316 "Note that the expansion of variables such as \$0 and \$1 only works at the beginning of the symbol. So \, for instance \, [rats-$1] will not be expanded. Occasionally you may want to have double or triple sustitutions. This can be done one stage at a time by nesting abstractions (with each subpatch adding its own $-variable to the begining of a symbol and passing that on as agrument to a further abstraction." ; -#X text 17 241 MILLER'S WISDOM; +#X text 7 261 MILLER'S WISDOM; +#X obj 4 4 cnv 15 500 20 empty empty all_about_scope_and_locality 20 +10 1 18 -233017 -66577 0; +#X obj 471 5 pddp; diff --git a/doc/pddp/help-key.pd b/doc/pddp/help-key.pd index 19a68f5b..ff0ae4fb 100644 --- a/doc/pddp/help-key.pd +++ b/doc/pddp/help-key.pd @@ -150,7 +150,7 @@ non-printing keys like shift or "F1".; events which can depend on the stacking order of windows and/or the pointer location. This is dependent on the system.; #X text 155 542 - Dave Sabine \, July 11 \, 2003; -#X obj 281 514 all_about_hid; +#X obj 281 514 pddp_open all_about_hid; #X text 105 515 for more on HIDs:; #X connect 17 0 18 0; #X connect 18 0 25 0; diff --git a/doc/pddp/help-makefilename.pd b/doc/pddp/help-makefilename.pd index dc73e3f4..5e9d12cd 100644 --- a/doc/pddp/help-makefilename.pd +++ b/doc/pddp/help-makefilename.pd @@ -1,244 +1,243 @@ -#N canvas 2 0 609 604 12;
-#X obj 104 539 pddp;
-#X obj 8 8 cnv 15 90 553 empty empty empty 20 12 0 14 -233017 -66577
-0;
-#X text 104 463 PD Documentation Chapter 3.6 - doc/1.manual/x3.htm
-;
-#N canvas 85 2 593 608 More_Info 1;
-#X text 17 24 COMMON USES;
-#X text 15 417 INNOVATIVE USES;
-#X text 47 47 I believe that this object was developed first to allow
-PD to generate sequential file names - perhaps to be used in conjunction
-with [soundfiler] or [openpanel]. For example \, an audio loop recorder
-might generate a continuous series of sound files to be saved on a
-hard drive...like below:;
-#X obj 54 136 bng 15 250 50 0 empty empty Bang_me 18 7 0 8 -262144
--1 -1;
-#X obj 54 160 f;
-#X symbolatom 54 215 0 0 0 0 - - -;
-#X text 53 238 This file name could be used when saving the audio data
-to disk.;
-#X obj 87 161 + 1;
-#X obj 54 187 makefilename file-%d.aif;
-#X text 20 280 LIMITATIONS;
-#N canvas 175 3 583 599 spaces_and_multiple_variables 0;
-#X text 25 19 Instead of using spaces \, an underscore will often produce
-a tolerable compromise.;
-#X obj 210 40 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
--1;
-#X obj 210 64 f;
-#X symbolatom 210 119 0 0 0 0 - - -;
-#X obj 243 64 + 1;
-#X obj 210 91 makefilename I_am_%d_years_old.;
-#X text 28 143 With careful planning \, multiple variables can be incorporated
-using a stack of [makefilename]s. In the example below \, let's assume
-that this tool is used to generate file names for an audio loop recorder
-which operates 24 hours per day \, every day.;
-#X obj 31 235 loadbang;
-#X obj 31 280 metro 200;
-#X obj 31 261 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1 1
-;
-#X obj 64 305 + 1;
-#X obj 209 349 route 0 1 2 3 4 5 6;
-#X obj 31 354 mod 24;
-#X floatatom 31 379 5 0 0 0 - - -;
-#X floatatom 31 329 0 0 0 0 - - -;
-#X obj 31 305 f;
-#X obj 53 405 sel 0;
-#X obj 218 269 f;
-#X obj 250 269 + 1;
-#X obj 218 294 mod 7;
-#X obj 218 322 pack f f;
-#X obj 230 498 makefilename Monday_%d.wav;
-#X symbolatom 65 548 0 0 0 0 - - -;
-#X obj 334 374 makefilename Saturday_%d.wav;
-#X obj 314 399 makefilename Friday_%d.wav;
-#X obj 290 326 t b f;
-#X obj 293 424 makefilename Thursday_%d.wav;
-#X obj 272 449 makefilename Wednesday_%d.wav;
-#X obj 251 474 makefilename Tuesday_%d.wav;
-#X obj 209 522 makefilename Sunday_%d.wav;
-#X text 81 377 hour of day;
-#X text 79 330 total hours;
-#X text 199 549 Crude...but effective.;
-#X obj 31 455 s dayHour;
-#X obj 53 430 s weekDay;
-#X obj 218 236 r weekDay;
-#X obj 290 300 r dayHour;
-#X text 284 271 loop through weekdays;
-#X connect 1 0 2 0;
-#X connect 2 0 4 0;
-#X connect 2 0 5 0;
-#X connect 4 0 2 1;
-#X connect 5 0 3 0;
-#X connect 7 0 9 0;
-#X connect 8 0 15 0;
-#X connect 9 0 8 0;
-#X connect 10 0 15 1;
-#X connect 11 0 29 0;
-#X connect 11 1 21 0;
-#X connect 11 2 28 0;
-#X connect 11 3 27 0;
-#X connect 11 4 26 0;
-#X connect 11 5 24 0;
-#X connect 11 6 23 0;
-#X connect 12 0 13 0;
-#X connect 13 0 16 0;
-#X connect 13 0 33 0;
-#X connect 14 0 12 0;
-#X connect 15 0 10 0;
-#X connect 15 0 14 0;
-#X connect 16 0 34 0;
-#X connect 17 0 18 0;
-#X connect 17 0 19 0;
-#X connect 18 0 17 1;
-#X connect 19 0 20 0;
-#X connect 20 0 11 0;
-#X connect 21 0 22 0;
-#X connect 23 0 22 0;
-#X connect 24 0 22 0;
-#X connect 25 0 20 0;
-#X connect 25 1 20 1;
-#X connect 26 0 22 0;
-#X connect 27 0 22 0;
-#X connect 28 0 22 0;
-#X connect 29 0 22 0;
-#X connect 35 0 17 0;
-#X connect 36 0 25 0;
-#X restore 47 445 pd spaces_and_multiple_variables;
-#N canvas 175 4 503 605 help_with_interfaces 1;
-#X text 17 16 Building user interfaces in PD is a difficult balance
-between usability and performance. PD is not winning any awards for
-usability - let's face it: it's powerful \, it's cool \, and that's
-the way we like it. You're not here because you want a colourful \,
-bevelled interface...you want the raw power that object oriented languages
-provide mixed with a few of the conveniences that a graphic environment
-affords.;
-#X obj 17 269 cnv 15 450 300 empty empty empty 20 12 0 14 -261681 -66577
-0;
-#X obj 45 379 tgl 15 0 s_dsp empty DSP 18 7 128 8 -262144 -1 -1 0 1
-;
-#X obj 45 424 vsl 15 128 0 127 0 0 v_slider empty Volume 18 7 128 8
--262144 -1 -1 0 1;
-#X obj 45 401 bng 15 250 50 0 b_panel empty Open_File 18 7 128 8 -262144
--1 -1;
-#X obj 40 280 cnv 15 400 20 empty d_canvas DSP 20 12 64 8 -233017 -66577
-0;
-#X obj 40 302 cnv 15 400 20 empty f_canvas FILE_OPEN 20 12 64 8 -233017
--66577 0;
-#X obj 40 324 cnv 15 400 20 empty v_canvas VOLUME 20 12 64 8 -233017
--66577 0;
-#X text 187 361 The grey canvases above could;
-#X text 189 383 be used like "status bars" to;
-#X text 189 404 write relevant information to;
-#X text 186 460 [makefilename] helps to format;
-#X text 188 484 the information in a meaningful;
-#X text 189 505 way.;
-#X text 187 426 the screen.;
-#N canvas 217 9 470 320 look_inside 0;
-#X obj 199 14 r b_panel;
-#X obj 235 166 r v_slider;
-#X obj 36 236 s d_canvas;
-#X obj 199 114 s f_canvas;
-#X obj 235 263 s v_canvas;
-#X obj 36 80 sel 0;
-#X obj 71 152 symbol ON;
-#X obj 36 128 symbol OFF;
-#X obj 71 103 bang;
-#X msg 36 210 label \$1;
-#X obj 36 184 makefilename DSP:%s;
-#X obj 36 13 r s_dsp;
-#X msg 45 38 \; pd dsp \$1;
-#X obj 199 40 openpanel;
-#X obj 199 65 makefilename FILE_OPEN:%s;
-#X msg 199 90 label \$1;
-#X msg 235 240 label \$1;
-#X obj 235 192 expr ($f1/128)*100;
-#X obj 235 217 makefilename VOLUME:%d/100;
-#X connect 0 0 13 0;
-#X connect 1 0 17 0;
-#X connect 5 0 7 0;
-#X connect 5 1 8 0;
-#X connect 6 0 10 0;
-#X connect 7 0 10 0;
-#X connect 8 0 6 0;
-#X connect 9 0 2 0;
-#X connect 10 0 9 0;
-#X connect 11 0 5 0;
-#X connect 11 0 12 0;
-#X connect 13 0 14 0;
-#X connect 14 0 15 0;
-#X connect 15 0 3 0;
-#X connect 16 0 4 0;
-#X connect 17 0 18 0;
-#X connect 18 0 16 0;
-#X restore 40 350 pd look_inside;
-#X text 18 156 However \, there are times when sacrifices must be made
-in the area of performance to provide users with on-screen reporting
-\, record keeping \, and sometimes even a few 'pleasantries'. Consider
-the following examples - but always weight the pros and cons when incorporating
-these types of interfaces. Performance vs. Usability.;
-#X restore 47 477 pd help_with_interfaces;
-#X text 45 304 This object does not provide advanced formatting and
-parsing abilities. For example \, you cannot use spaces or odd characters
-in the argument - also the argument can only include ONE variable.
-Although \, these limitations can be easily overcome with a little
-ingenuity and compromise -- see below.;
-#X connect 3 0 4 0;
-#X connect 4 0 7 0;
-#X connect 4 0 8 0;
-#X connect 7 0 4 1;
-#X connect 8 0 5 0;
-#X restore 104 513 pd More_Info;
-#N canvas 85 2 393 242 Related_Objects 0;
-#X text 25 8 Native PD Objects;
-#X text 25 92 Externals and other object libraries;
-#X text 35 125 [strcat];
-#X obj 42 46 symbol;
-#X obj 112 46 int;
-#X obj 156 46 openpanel;
-#X text 34 151 [makesymbol];
-#X restore 104 487 pd Related_Objects;
-#X text 38 53 INLETS:;
-#X text 15 197 ARGUMENTS:;
-#X text 29 316 OUTLETS:;
-#X text 22 342 EXAMPLES:;
-#X text 21 462 SEE ALSO:;
-#X obj 5 18 makefilename;
-#X text 115 18 - FORMAT A STRING WITH A VARIABLE FIELD.;
-#X text 104 316 Symbol - The output is formatted like "symbol YOURSTRING".
-;
-#X floatatom 114 346 0 0 0 0 - - -;
-#X obj 114 400 print;
-#X obj 114 373 makefilename soundfile%d.aif;
-#X text 170 400 numbered filenames;
-#X obj 353 431 print;
-#X text 406 433 text examples;
-#X obj 353 380 symbol;
-#X msg 353 343 dave;
-#X msg 412 341 drums;
-#X msg 479 344 PD;
-#X msg 526 355 cool;
-#X obj 353 404 makefilename %s_PD.aif;
-#X text 107 198 This object generates symbols according to a format
-string (the argument) \, for use as a series of filenames \, table
-names \, or whatnot. You can plug in a variable number or symbol by
-putting "%d" or "%s" in the string. If you put "%s" in the string \,
-be sure to send it a symbol and vice versa... there' no checking. Each
-[makefilename] object can have only one variable.;
-#X text 152 540 - Dave Sabine \, April 25 \, 2003;
-#X text 108 53 Integer - If a number is sent to the inlet \, the argument
-should be written with a "%d" which represents the location of the
-incoming variable number in the outgoing symbol. Floats will be converted
-to integers.;
-#X text 107 126 Symbol - If a symbol is sent to the inlet \, the argument
-should be written with a "%s" which represent the location of the incoming
-variable symbol in the outgoing symbol. Lists will be truncated.;
-#X connect 13 0 15 0;
-#X connect 15 0 14 0;
-#X connect 19 0 24 0;
-#X connect 20 0 19 0;
-#X connect 21 0 19 0;
-#X connect 22 0 19 0;
-#X connect 23 0 19 0;
-#X connect 24 0 17 0;
+#N canvas 22 93 613 608 12; +#X obj 104 539 pddp; +#X obj 8 8 cnv 15 90 553 empty empty empty 20 12 0 14 -233017 -66577 +0; +#X text 104 463 PD Documentation Chapter 3.6 - doc/1.manual/x3.htm +; +#N canvas 523 37 597 612 More_Info 0; +#X text 17 24 COMMON USES; +#X text 15 417 INNOVATIVE USES; +#X text 47 47 I believe that this object was developed first to allow +PD to generate sequential file names - perhaps to be used in conjunction +with [soundfiler] or [openpanel]. For example \, an audio loop recorder +might generate a continuous series of sound files to be saved on a +hard drive...like below:; +#X obj 54 136 bng 15 250 50 0 empty empty Bang_me 18 7 0 8 -262144 +-1 -1; +#X obj 54 160 f; +#X symbolatom 54 215 0 0 0 0 - - -; +#X text 53 238 This file name could be used when saving the audio data +to disk.; +#X obj 87 161 + 1; +#X obj 54 187 makefilename file-%d.aif; +#X text 20 280 LIMITATIONS; +#N canvas 175 22 583 599 spaces_and_multiple_variables 0; +#X text 25 19 Instead of using spaces \, an underscore will often produce +a tolerable compromise.; +#X obj 210 40 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 +-1; +#X obj 210 64 f; +#X symbolatom 210 119 0 0 0 0 - - -; +#X obj 243 64 + 1; +#X obj 210 91 makefilename I_am_%d_years_old.; +#X text 28 143 With careful planning \, multiple variables can be incorporated +using a stack of [makefilename]s. In the example below \, let's assume +that this tool is used to generate file names for an audio loop recorder +which operates 24 hours per day \, every day.; +#X obj 31 235 loadbang; +#X obj 31 280 metro 200; +#X obj 31 261 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1 1 +; +#X obj 64 305 + 1; +#X obj 209 349 route 0 1 2 3 4 5 6; +#X obj 31 354 mod 24; +#X floatatom 31 379 5 0 0 0 - - -; +#X floatatom 31 329 0 0 0 0 - - -; +#X obj 31 305 f; +#X obj 53 405 sel 0; +#X obj 218 269 f; +#X obj 250 269 + 1; +#X obj 218 294 mod 7; +#X obj 218 322 pack f f; +#X obj 230 498 makefilename Monday_%d.wav; +#X symbolatom 65 548 0 0 0 0 - - -; +#X obj 334 374 makefilename Saturday_%d.wav; +#X obj 314 399 makefilename Friday_%d.wav; +#X obj 290 326 t b f; +#X obj 293 424 makefilename Thursday_%d.wav; +#X obj 272 449 makefilename Wednesday_%d.wav; +#X obj 251 474 makefilename Tuesday_%d.wav; +#X obj 209 522 makefilename Sunday_%d.wav; +#X text 81 377 hour of day; +#X text 79 330 total hours; +#X text 199 549 Crude...but effective.; +#X obj 31 455 s dayHour; +#X obj 53 430 s weekDay; +#X obj 218 236 r weekDay; +#X obj 290 300 r dayHour; +#X text 284 271 loop through weekdays; +#X connect 1 0 2 0; +#X connect 2 0 4 0; +#X connect 2 0 5 0; +#X connect 4 0 2 1; +#X connect 5 0 3 0; +#X connect 7 0 9 0; +#X connect 8 0 15 0; +#X connect 9 0 8 0; +#X connect 10 0 15 1; +#X connect 11 0 29 0; +#X connect 11 1 21 0; +#X connect 11 2 28 0; +#X connect 11 3 27 0; +#X connect 11 4 26 0; +#X connect 11 5 24 0; +#X connect 11 6 23 0; +#X connect 12 0 13 0; +#X connect 13 0 16 0; +#X connect 13 0 33 0; +#X connect 14 0 12 0; +#X connect 15 0 10 0; +#X connect 15 0 14 0; +#X connect 16 0 34 0; +#X connect 17 0 18 0; +#X connect 17 0 19 0; +#X connect 18 0 17 1; +#X connect 19 0 20 0; +#X connect 20 0 11 0; +#X connect 21 0 22 0; +#X connect 23 0 22 0; +#X connect 24 0 22 0; +#X connect 25 0 20 0; +#X connect 25 1 20 1; +#X connect 26 0 22 0; +#X connect 27 0 22 0; +#X connect 28 0 22 0; +#X connect 29 0 22 0; +#X connect 35 0 17 0; +#X connect 36 0 25 0; +#X restore 47 445 pd spaces_and_multiple_variables; +#N canvas 175 22 507 609 help_with_interfaces 0; +#X text 17 16 Building user interfaces in PD is a difficult balance +between usability and performance. PD is not winning any awards for +usability - let's face it: it's powerful \, it's cool \, and that's +the way we like it. You're not here because you want a colourful \, +bevelled interface...you want the raw power that object oriented languages +provide mixed with a few of the conveniences that a graphic environment +affords.; +#X obj 17 269 cnv 15 450 300 empty empty empty 20 12 0 14 -261681 -66577 +0; +#X obj 45 379 tgl 15 0 s_dsp empty DSP 18 7 0 8 -262144 -1 -1 0 1; +#X obj 45 424 vsl 15 128 0 127 0 0 v_slider empty Volume 18 7 0 8 -262144 +-1 -1 0 1; +#X obj 45 401 bng 15 250 50 0 b_panel empty Open_File 18 7 0 8 -262144 +-1 -1; +#X obj 40 280 cnv 15 400 20 empty d_canvas DSP 20 12 0 8 -233017 -66577 +0; +#X obj 40 302 cnv 15 400 20 empty f_canvas FILE_OPEN 20 12 0 8 -233017 +-66577 0; +#X obj 40 324 cnv 15 400 20 empty v_canvas VOLUME 20 12 0 8 -233017 +-66577 0; +#X text 187 361 The grey canvases above could; +#X text 189 383 be used like "status bars" to; +#X text 189 404 write relevant information to; +#X text 186 460 [makefilename] helps to format; +#X text 188 484 the information in a meaningful; +#X text 189 505 way.; +#X text 187 426 the screen.; +#N canvas 217 22 470 320 look_inside 0; +#X obj 199 14 r b_panel; +#X obj 235 166 r v_slider; +#X obj 36 236 s d_canvas; +#X obj 199 114 s f_canvas; +#X obj 235 263 s v_canvas; +#X obj 36 80 sel 0; +#X obj 71 152 symbol ON; +#X obj 36 128 symbol OFF; +#X obj 71 103 bang; +#X msg 36 210 label \$1; +#X obj 36 184 makefilename DSP:%s; +#X obj 36 13 r s_dsp; +#X msg 45 38 \; pd dsp \$1; +#X obj 199 40 openpanel; +#X obj 199 65 makefilename FILE_OPEN:%s; +#X msg 199 90 label \$1; +#X msg 235 240 label \$1; +#X obj 235 192 expr ($f1/128)*100; +#X obj 235 217 makefilename VOLUME:%d/100; +#X connect 0 0 13 0; +#X connect 1 0 17 0; +#X connect 5 0 7 0; +#X connect 5 1 8 0; +#X connect 6 0 10 0; +#X connect 7 0 10 0; +#X connect 8 0 6 0; +#X connect 9 0 2 0; +#X connect 10 0 9 0; +#X connect 11 0 5 0; +#X connect 11 0 12 0; +#X connect 13 0 14 0; +#X connect 14 0 15 0; +#X connect 15 0 3 0; +#X connect 16 0 4 0; +#X connect 17 0 18 0; +#X connect 18 0 16 0; +#X restore 40 350 pd look_inside; +#X text 18 156 However \, there are times when sacrifices must be made +in the area of performance to provide users with on-screen reporting +\, record keeping \, and sometimes even a few 'pleasantries'. Consider +the following examples - but always weight the pros and cons when incorporating +these types of interfaces. Performance vs. Usability.; +#X restore 47 477 pd help_with_interfaces; +#X text 45 304 This object does not provide advanced formatting and +parsing abilities. For example \, you cannot use spaces or odd characters +in the argument - also the argument can only include ONE variable. +Although \, these limitations can be easily overcome with a little +ingenuity and compromise -- see below.; +#X connect 3 0 4 0; +#X connect 4 0 7 0; +#X connect 4 0 8 0; +#X connect 7 0 4 1; +#X connect 8 0 5 0; +#X restore 104 513 pd More_Info; +#N canvas 85 22 397 246 Related_Objects 0; +#X text 25 8 Native PD Objects; +#X text 25 92 Externals and other object libraries; +#X obj 42 46 symbol; +#X obj 112 46 int; +#X obj 156 46 openpanel; +#X obj 31 126 strcat; +#X obj 32 155 makesymbol; +#X restore 104 487 pd Related_Objects; +#X text 38 53 INLETS:; +#X text 15 197 ARGUMENTS:; +#X text 29 316 OUTLETS:; +#X text 22 342 EXAMPLES:; +#X text 21 462 SEE ALSO:; +#X obj 5 18 makefilename; +#X text 115 18 - FORMAT A STRING WITH A VARIABLE FIELD.; +#X text 104 316 Symbol - The output is formatted like "symbol YOURSTRING". +; +#X floatatom 114 346 0 0 0 0 - - -; +#X obj 114 400 print; +#X obj 114 373 makefilename soundfile%d.aif; +#X text 170 400 numbered filenames; +#X obj 353 431 print; +#X text 406 433 text examples; +#X obj 353 380 symbol; +#X msg 353 343 dave; +#X msg 412 341 drums; +#X msg 479 344 PD; +#X msg 526 355 cool; +#X obj 353 404 makefilename %s_PD.aif; +#X text 107 198 This object generates symbols according to a format +string (the argument) \, for use as a series of filenames \, table +names \, or whatnot. You can plug in a variable number or symbol by +putting "%d" or "%s" in the string. If you put "%s" in the string \, +be sure to send it a symbol and vice versa... there' no checking. Each +[makefilename] object can have only one variable.; +#X text 152 540 - Dave Sabine \, April 25 \, 2003; +#X text 108 53 Integer - If a number is sent to the inlet \, the argument +should be written with a "%d" which represents the location of the +incoming variable number in the outgoing symbol. Floats will be converted +to integers.; +#X text 107 126 Symbol - If a symbol is sent to the inlet \, the argument +should be written with a "%s" which represent the location of the incoming +variable symbol in the outgoing symbol. Lists will be truncated.; +#X connect 13 0 15 0; +#X connect 15 0 14 0; +#X connect 19 0 24 0; +#X connect 20 0 19 0; +#X connect 21 0 19 0; +#X connect 22 0 19 0; +#X connect 23 0 19 0; +#X connect 24 0 17 0; diff --git a/doc/pddp/help-receive.pd b/doc/pddp/help-receive.pd index a78b6897..182960ac 100644 --- a/doc/pddp/help-receive.pd +++ b/doc/pddp/help-receive.pd @@ -30,7 +30,7 @@ #X obj 350 54 value; #X restore 117 499 pd Related_Objects; #N canvas 57 0 649 630 More_Info 0; -#X obj 44 576 all_about_send_n_receive; +#X obj 44 576 pddp_open all_about_send_n_receive; #X text 25 18 MESSAGES AND DATA TYPES; #X text 40 41 PD's [send] and [receive] objects can communicate any data type that is supported by PD: floats \, anythings \, lists \, diff --git a/doc/pddp/help-send.pd b/doc/pddp/help-send.pd index e7cfefdc..9f4c816f 100644 --- a/doc/pddp/help-send.pd +++ b/doc/pddp/help-send.pd @@ -31,7 +31,7 @@ #X text 188 177 [send13~]; #X restore 117 499 pd Related_Objects; #N canvas 90 1 655 636 More_Info 0; -#X obj 44 576 all_about_send_n_receive; +#X obj 44 576 pddp_open all_about_send_n_receive; #X text 27 511 There is a lot of information available about [send] and [receive] \, but that means there's lots to know! Open the abstraction below to learn more...; diff --git a/doc/pddp/help-tabread.pd b/doc/pddp/help-tabread.pd index 4f225fed..27ce6847 100644 --- a/doc/pddp/help-tabread.pd +++ b/doc/pddp/help-tabread.pd @@ -43,7 +43,7 @@ synonymous.; see the help documentation in: doc/2.control.examples/15.arrays.pd
and doc/5.reference/table.pd;
#X text 44 487 Also See:;
-#X obj 123 487 all_about_arrays;
+#X obj 123 487 pddp_open all_about_arrays;
#X text 66 195 3 When you create a table \, an array of 100 elements
is automatically created inside that table. The name of the table and
the name of the array are stored separately. This means \, that although
diff --git a/doc/pddp/help-tabread4.pd b/doc/pddp/help-tabread4.pd index b57ec857..a2f2fcef 100644 --- a/doc/pddp/help-tabread4.pd +++ b/doc/pddp/help-tabread4.pd @@ -31,7 +31,7 @@ #X restore 114 508 pd Related_Objects;
#N canvas 80 0 659 614 More_Info 0;
#X text 46 564 Also See:;
-#X obj 125 564 all_about_arrays;
+#X obj 125 564 pddp_open all_about_arrays;
#X text 21 8 WHAT IS INTERPOLATION?;
#X text 38 34 "Interpolation" is a word which described a sophisticated
way to "connect-the-dots". (This is over simplified \, but effective
diff --git a/doc/pddp/help-tabwrite.pd b/doc/pddp/help-tabwrite.pd index ef8a75c5..2bb10c73 100644 --- a/doc/pddp/help-tabwrite.pd +++ b/doc/pddp/help-tabwrite.pd @@ -31,7 +31,7 @@ #X restore 114 508 pd Related_Objects;
#N canvas 80 0 661 319 More_Info 0;
#X text 28 257 Also See:;
-#X obj 107 257 all_about_arrays;
+#X obj 107 257 pddp_open all_about_arrays;
#X text 26 21 In this help document \, the [tabwrite] object is set
to write values to one of the two arrays you see on your screen. The
[tabwrite] will just as easily write values to tables buried in the
diff --git a/doc/pddp/help-trigger.pd b/doc/pddp/help-trigger.pd index 6cb38f3d..00f0780a 100644 --- a/doc/pddp/help-trigger.pd +++ b/doc/pddp/help-trigger.pd @@ -187,8 +187,8 @@ is:; #X restore 477 435 pd related_objects_from_other_libraries; #X obj 940 5 pddp; #X text 472 463 MORE INFO; -#X obj 479 490 all_about_data_types; -#X obj 480 516 all_about_lists_vs_anythings; +#X obj 479 490 pddp_open all_about_data_types; +#X obj 480 516 pddp_open all_about_lists_vs_anythings; #X obj 822 157 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X text 17 138 "float" = f; diff --git a/doc/pddp/pddp.pd b/doc/pddp/pddp.pd index e3d6144d..8bc1bcaa 100644 --- a/doc/pddp/pddp.pd +++ b/doc/pddp/pddp.pd @@ -1,20 +1,20 @@ -#N canvas 314 54 472 608 10; -#X text 25 77 The PDDP was proposed initially in early 2002 by Krzysztof +#N canvas 298 124 484 620 10; +#X text 25 69 The PDDP was proposed initially in early 2002 by Krzysztof Czaja who suggested that Pure Data was in need of comprehensive documentation. ; -#X text 45 199 - Michal Seta; -#X text 45 172 - Miller Puckette; -#X text 45 185 - Dave Sabine; -#X text 25 126 The project is now managed un-officially by Dave Sabine +#X text 45 191 - Michal Seta; +#X text 45 164 - Miller Puckette; +#X text 45 177 - Dave Sabine; +#X text 25 118 The project is now managed un-officially by Dave Sabine who acts as primary author and editor. The people involved in this project include (alphabetically):; -#X text 14 342 THINGS TO NOTE:; -#X text 25 360 Authors: If you would like to participate in this project +#X text 14 334 THINGS TO NOTE:; +#X text 25 352 Authors: If you would like to participate in this project \, simply gather together information about objects \, tutorials \, examples \, etc. and contact Dave Sabine for info about formatting your documents. All documents should then be forwarded to Dave to be included in the PDDP download which is available at his web site.; -#X text 25 448 Externals and other Libraries: Each PDDP document includes +#X text 25 440 Externals and other Libraries: Each PDDP document includes mention of "related objects from other PD libraries" as well as mention of "related native PD objects". The objects from other libraries are available only if you download those libraries from their respective @@ -22,14 +22,14 @@ authors and integrate them properly into your version of PD. We do not and cannot maintain a complete list of externals - but we try. For more info about externals and other objects \, see http://www.puredata.org/ and the Pure Data Base at http://iem.kug.ac.at/pdb/; -#X text 45 213 - Hans-Christoph Steiner; -#X text 25 283 All comments \, corrections \, etc. regarding the PDDP +#X text 45 205 - Hans-Christoph Steiner; +#X text 25 275 All comments \, corrections \, etc. regarding the PDDP reference files should be directed to the Pd Developers' list: pd-dev@iem.at ; -#X text 26 233 PDDP is now part of the CVS Pd distributions. It was +#X text 26 225 PDDP is now part of the CVS Pd distributions. It was originally available at Dave's web site: http://www.davesabine.com/media/puredata.asp ; #X obj 3 2 cnv 15 450 20 empty empty PDDP 2 12 1 18 -233017 -66577 0; #X text 102 5 Pure Data Documentation Project; -#X msg 26 44 \; pd open table_of_contents.pd ./; +#X obj 25 38 pddp_open table_of_contents; diff --git a/doc/pddp/pddp_open.pd b/doc/pddp/pddp_open.pd new file mode 100644 index 00000000..e9c9f130 --- /dev/null +++ b/doc/pddp/pddp_open.pd @@ -0,0 +1,29 @@ +#N canvas 177 350 518 386 10; +#X obj 110 4 inlet; +#X obj 140 168 pwd; +#X msg 89 227 \; pd open \$1.pd \$2; +#X obj 89 194 pack s s; +#X obj 89 139 symbol; +#X obj 111 113 t a b; +#X obj 4 2 bng 18 250 50 0 empty empty empty 0 -6 0 8 -44926 -1 -1 +; +#X obj 3 63 symbol \$1; +#X obj 61 42 symbol; +#X text 316 348 released under the GNU GPL; +#X text 99 334 (C) Copyright 2005 Hans-Christoph Steiner <hans@at.or.at> +; +#X text 93 65 <-- store the last value so that the GOP bang will open +it; +#X text 26 282 This patch opens a patch either from the first argument +or sent in as a message.; +#X connect 0 0 5 0; +#X connect 0 0 8 0; +#X connect 1 0 3 1; +#X connect 3 0 2 0; +#X connect 4 0 3 0; +#X connect 5 0 4 0; +#X connect 5 1 1 0; +#X connect 6 0 7 0; +#X connect 7 0 5 0; +#X connect 8 0 7 1; +#X coords 0 0 1 1 20 18 1; diff --git a/doc/pddp/table_of_contents.pd b/doc/pddp/table_of_contents.pd index 1833a175..469ed419 100644 --- a/doc/pddp/table_of_contents.pd +++ b/doc/pddp/table_of_contents.pd @@ -1,26 +1,73 @@ -#N canvas 106 77 480 616 10; -#X obj 3 2 cnv 15 450 20 empty empty PDDP 2 12 1 18 -233017 -66577 +#N canvas 282 141 514 633 10; +#X obj 3 2 cnv 15 500 20 empty empty pddp 2 12 1 18 -233017 -66577 0; -#X text 102 5 Table of Contents; -#X obj 10 80 all_about_arrays; -#X obj 10 100 all_about_cyclone; -#X obj 10 120 all_about_data_structures; -#X obj 10 140 all_about_data_types; -#X obj 10 160 all_about_haptics; -#X obj 10 180 all_about_hid; -#X obj 10 200 all_about_lists_vs_anythings; -#X obj 10 220 all_about_looping; -#X obj 10 240 all_about_scope_and_locality; -#X obj 10 260 all_about_send_n_receive; -#X obj 10 280 all_about_symbol_construction; -#X text 240 81 comment; -#X text 240 101 comment; -#X text 240 121 comment; -#X text 240 141 comment; -#X text 240 161 comment; -#X text 240 181 comment; -#X text 240 201 comment; -#X text 240 221 comment; -#X text 240 241 comment; -#X text 240 261 comment; -#X text 240 281 comment; +#X obj 9 580 pddp_open; +#X msg 10 100 acoustic_conversions; +#X msg 10 120 arrays; +#X msg 10 140 cyclone; +#X msg 10 160 data_structures; +#X msg 10 180 data_types; +#X msg 10 200 haptics; +#X msg 10 220 hid; +#X msg 10 240 hid_mapping; +#X msg 10 260 lists_vs_anythings; +#X msg 10 280 looping; +#X msg 10 320 scope_and_locality; +#X msg 10 340 send_n_receive; +#X msg 10 360 symbol_construction; +#X msg 10 460 pddp-style-guide; +#X msg 10 490 dynamic_sends; +#X msg 10 520 time_measurements; +#X text 170 121 comment; +#X text 170 141 comment; +#X text 170 181 comment; +#X text 170 321 comment; +#X text 170 341 comment; +#X text 170 361 comment; +#N canvas 0 22 462 312 guts 0; +#X obj 79 119 inlet; +#X obj 75 258 outlet; +#X obj 78 168 symbol; +#X obj 75 221 makefilename all_about_%s; +#X text 46 28 this opens the "all_about_" patches; +#X connect 0 0 2 0; +#X connect 2 0 3 0; +#X connect 3 0 1 0; +#X restore 10 395 pd guts; +#X text 316 608 released under the GNU GPL; +#X text 99 594 (C) Copyright 2005 Hans-Christoph Steiner <hans@at.or.at> +; +#X text 170 101 audio power and RMS \, MIDI and frequency; +#X text 170 221 physically interfacing with humans; +#X text 170 281 making all sorts of loops; +#X msg 10 300 midi_flags; +#X text 170 201 controlling force and vibration feedback; +#X text 170 241 mapping data from human interface devices; +#X text 170 301 command line flags for using MIDI devices; +#X obj 471 3 pddp; +#X text 170 460 style recommendations for pddp patches; +#X text 170 490 (unfinished); +#X text 170 520 (unfinished); +#X text 170 161 (unfinished); +#X text 170 261 (unfinished); +#X text 22 35 TABLE OF CONTENTS; +#X text 7 56 pddp provides a number of overview patches called "all_about_" +patches. Here is a listing of them:; +#X connect 2 0 24 0; +#X connect 3 0 24 0; +#X connect 4 0 24 0; +#X connect 5 0 24 0; +#X connect 6 0 24 0; +#X connect 7 0 24 0; +#X connect 8 0 24 0; +#X connect 9 0 24 0; +#X connect 10 0 24 0; +#X connect 11 0 24 0; +#X connect 12 0 24 0; +#X connect 13 0 24 0; +#X connect 14 0 24 0; +#X connect 15 0 1 0; +#X connect 16 0 1 0; +#X connect 17 0 1 0; +#X connect 24 0 1 0; +#X connect 30 0 24 0; |