-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
247 additions
and
62 deletions.
There are no files selected for viewing
87 changes: 87 additions & 0 deletions
87
Examples/Part.04-Control/14-Triggers-LFO-LFNoise/4.Pulse.count.div copy.pd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
#N canvas 690 82 752 494 12; | ||
#X declare -path else; | ||
#X obj 280 25 declare -path else; | ||
#X text 389 287 divided count, f 7; | ||
#X text 607 125 whole count, f 6; | ||
#X obj 582 131 else/display~; | ||
#X obj 459 289 else/display~; | ||
#X obj 582 90 pulsecount~ 4; | ||
#X obj 459 262 pulsecount~ 4; | ||
#X obj 582 177 match~ 1 2 3 4; | ||
#X obj 582 272 trig2bang~; | ||
#X obj 605 248 trig2bang~; | ||
#X obj 629 224 trig2bang~; | ||
#X obj 653 201 trig2bang~; | ||
#X obj 582 45 randpulse~ 3; | ||
#X obj 459 231 pulsediv~ 4; | ||
#X obj 459 318 match~ 1 2 3 4; | ||
#X obj 459 413 trig2bang~; | ||
#X obj 459 441 bng 17 500 250 0 empty empty empty 17 7 0 10 -228856 | ||
-1 -1; | ||
#X obj 482 389 trig2bang~; | ||
#X obj 506 365 trig2bang~; | ||
#X obj 530 342 trig2bang~; | ||
#X obj 582 300 bng 17 500 250 0 empty empty empty 17 7 0 10 -228856 | ||
-1 -1; | ||
#X obj 605 300 bng 17 500 250 0 empty empty empty 17 7 0 10 -228856 | ||
-1 -1; | ||
#X obj 629 300 bng 17 500 250 0 empty empty empty 17 7 0 10 -228856 | ||
-1 -1; | ||
#X obj 653 300 bng 17 500 250 0 empty empty empty 17 7 0 10 -228856 | ||
-1 -1; | ||
#X obj 482 441 bng 17 500 250 0 empty empty empty 17 7 0 10 -228856 | ||
-1 -1; | ||
#X obj 506 441 bng 17 500 250 0 empty empty empty 17 7 0 10 -228856 | ||
-1 -1; | ||
#X obj 530 441 bng 17 500 250 0 empty empty empty 17 7 0 10 -228856 | ||
-1 -1; | ||
#X text 28 63 The [pulsecount~] object is used to count triggers. You | ||
can furtherly use [match~] to send impulses to different destinations | ||
depending on the count (see example to the right). If an argument is | ||
given \, the count restarts from 1 after reaching that value \, so | ||
it loops!, f 56; | ||
#X obj 258 277 pulsediv~ 4; | ||
#X obj 153 394 out~; | ||
#X text 28 143 The [pulsediv~] object is a pulse divider. It outputs | ||
impulses but only after a given number of triggers. Below and to the | ||
right \, it sends an impulse at every 4 triggers. The Check the help | ||
file of both., f 56; | ||
#X obj 111 324 brown~; | ||
#X obj 153 363 *~; | ||
#X obj 171 323 decay~ 50; | ||
#X obj 171 237 tempo~ 120 -on; | ||
#X obj 240 363 *~; | ||
#X obj 271 336 osc~ 440; | ||
#X obj 258 311 decay~ 150; | ||
#X connect 3 0 7 0; | ||
#X connect 4 0 14 0; | ||
#X connect 5 0 3 0; | ||
#X connect 6 0 4 0; | ||
#X connect 7 0 8 0; | ||
#X connect 7 1 9 0; | ||
#X connect 7 2 10 0; | ||
#X connect 7 3 11 0; | ||
#X connect 8 0 20 0; | ||
#X connect 9 0 21 0; | ||
#X connect 10 0 22 0; | ||
#X connect 11 0 23 0; | ||
#X connect 12 0 5 0; | ||
#X connect 12 0 13 0; | ||
#X connect 13 0 6 0; | ||
#X connect 14 0 15 0; | ||
#X connect 14 1 17 0; | ||
#X connect 14 2 18 0; | ||
#X connect 14 3 19 0; | ||
#X connect 15 0 16 0; | ||
#X connect 17 0 24 0; | ||
#X connect 18 0 25 0; | ||
#X connect 19 0 26 0; | ||
#X connect 28 0 37 0; | ||
#X connect 31 0 32 0; | ||
#X connect 32 0 29 0; | ||
#X connect 33 0 32 1; | ||
#X connect 34 0 28 0; | ||
#X connect 34 0 33 0; | ||
#X connect 35 0 29 1; | ||
#X connect 36 0 35 0; | ||
#X connect 37 0 35 1; |
132 changes: 70 additions & 62 deletions
132
Examples/Part.04-Control/14-Triggers-LFO-LFNoise/7.[clock].pd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,79 +1,87 @@ | ||
#N canvas 503 63 703 663 12; | ||
#N canvas 503 63 691 626 12; | ||
#X declare -path else; | ||
#X obj 466 33 declare -path else; | ||
#X obj 158 320 tgl 20 0 empty empty empty 17 7 0 10 #dfdfdf #000000 | ||
#X obj 491 34 declare -path else; | ||
#X obj 103 319 tgl 20 0 empty empty empty 17 7 0 10 #dfdfdf #000000 | ||
#000000 0 1; | ||
#X floatatom 232 327 5 0 0 0 - - - 0; | ||
#X obj 201 553 out~; | ||
#X obj 125 320 bng 20 250 50 0 empty empty empty 17 7 0 10 #dfdfdf | ||
#X floatatom 156 326 5 0 0 0 - - - 0; | ||
#X obj 126 534 out~; | ||
#X obj 70 319 bng 20 250 50 0 empty empty empty 17 7 0 10 #dfdfdf #000000 | ||
#000000; | ||
#X obj 103 393 bng 17 250 50 0 empty empty empty 17 7 0 10 #dfdfdf | ||
#000000 #000000; | ||
#X obj 158 411 bng 17 250 50 0 empty empty empty 17 7 0 10 #dfdfdf | ||
#X obj 213 393 bng 17 250 50 0 empty empty empty 17 7 0 10 #dfdfdf | ||
#000000 #000000; | ||
#X obj 288 411 bng 17 250 50 0 empty empty empty 17 7 0 10 #dfdfdf | ||
#X obj 302 393 bng 17 250 50 0 empty empty empty 17 7 0 10 #dfdfdf | ||
#000000 #000000; | ||
#X obj 407 411 bng 17 250 50 0 empty empty empty 17 7 0 10 #dfdfdf | ||
#000000 #000000; | ||
#X obj 158 440 else/impseq~; | ||
#X obj 288 440 else/impseq~; | ||
#X obj 407 440 else/impseq~; | ||
#X obj 376 327 else/display 4; | ||
#X msg 376 252 1/3; | ||
#X msg 365 230 4/3; | ||
#X msg 390 301 0.75; | ||
#X msg 384 277 1.5; | ||
#X obj 488 327 else/display 4; | ||
#X msg 477 230 3/2; | ||
#X msg 488 252 0.333333; | ||
#X msg 502 301 3/4; | ||
#X msg 496 277 2/3; | ||
#X obj 288 365 else/clock -s \$0-clock 2, f 13; | ||
#X obj 407 365 clock -s \$0-clock 3/2, f 12; | ||
#X obj 158 516 else/drive~ 5; | ||
#X obj 407 487 else/resonant~ 2350 200, f 14; | ||
#X obj 158 470 else/resonant~ 450 300, f 14; | ||
#X obj 288 487 else/resonant~ 1050 200, f 14; | ||
#X obj 158 365 else/clock \$0-clock 60, f 11; | ||
#X obj 288 320 tgl 20 0 empty empty empty 17 7 0 10 #dfdfdf #000000 | ||
#X obj 280 326 else/display 4; | ||
#X msg 280 251 1/3; | ||
#X msg 269 229 4/3; | ||
#X msg 294 300 0.75; | ||
#X msg 288 276 1.5; | ||
#X obj 383 326 else/display 4; | ||
#X msg 372 229 3/2; | ||
#X msg 383 251 0.333333; | ||
#X msg 397 300 3/4; | ||
#X msg 391 276 2/3; | ||
#X obj 213 325 tgl 20 0 empty empty empty 17 7 0 10 #dfdfdf #000000 | ||
#000000 0 1; | ||
#X text 43 80 A [clock] object sends bangs at a regular tempo and controls | ||
other synced [clock] objects with a relative tempo. This is similar | ||
to the last example with [pimpmul~] \, because when you change the | ||
relative tempo \, you can't keep them in sync anymore., f 87; | ||
#X obj 327 320 bng 20 250 50 0 empty empty empty 17 7 0 10 #dfdfdf | ||
#X obj 242 325 bng 20 250 50 0 empty empty empty 17 7 0 10 #dfdfdf | ||
#000000 #000000; | ||
#X text 43 136 This would be a control equivalent \, but now we have | ||
a single object \, that can be either a "master" or a "slave". We've | ||
seen this term when studying "hard sync" and it's worth noting that | ||
despite old literature uses these terms there's an understanding we | ||
should stop using them. One option is to use "main" and "synced" instead. | ||
See the help file of the object., f 87; | ||
#X connect 1 0 27 0; | ||
#X connect 2 0 27 1; | ||
#X connect 4 0 27 0; | ||
#X connect 5 0 8 0; | ||
#X connect 6 0 9 0; | ||
#X connect 7 0 10 0; | ||
#X connect 8 0 25 0; | ||
#X connect 9 0 26 0; | ||
#X connect 10 0 24 0; | ||
#X connect 11 0 21 1; | ||
#X connect 12 0 11 0; | ||
#X connect 13 0 11 0; | ||
#X connect 14 0 11 0; | ||
#X connect 15 0 11 0; | ||
#X connect 16 0 22 1; | ||
#X connect 17 0 16 0; | ||
#X connect 18 0 16 0; | ||
#X connect 19 0 16 0; | ||
#X connect 20 0 16 0; | ||
#X connect 21 0 6 0; | ||
#X connect 22 0 7 0; | ||
#X connect 23 0 3 0; | ||
#X connect 24 0 3 1; | ||
#X connect 25 0 23 0; | ||
#X connect 26 0 3 1; | ||
#X connect 27 0 5 0; | ||
#X connect 28 0 21 0; | ||
#X connect 28 0 22 0; | ||
#X connect 30 0 21 0; | ||
#X connect 30 0 22 0; | ||
#X obj 103 364 clock 60; | ||
#X obj 213 364 clock -s 2; | ||
#X obj 302 364 clock -s 3/2; | ||
#X obj 508 489 tap; | ||
#X obj 508 452 bng 17 250 50 0 empty empty empty 17 7 0 10 #dfdfdf | ||
#000000 #000000; | ||
#X floatatom 508 525 7 0 0 0 - - - 0; | ||
#X text 444 387 See also the [tap] object that can set a tempo from | ||
"tapping" on a bang., f 25; | ||
#X obj 103 421 impseq~; | ||
#X obj 213 421 impseq~; | ||
#X obj 302 421 impseq~; | ||
#X obj 302 458 resonant~ 2350 200, f 9; | ||
#X obj 213 458 resonant~ 1050 200, f 9; | ||
#X obj 103 497 drive~ 5; | ||
#X obj 103 451 resonant~ 450 300, f 9; | ||
#X connect 1 0 22 0; | ||
#X connect 2 0 22 1; | ||
#X connect 4 0 22 0; | ||
#X connect 5 0 29 0; | ||
#X connect 6 0 30 0; | ||
#X connect 7 0 31 0; | ||
#X connect 8 0 23 1; | ||
#X connect 9 0 8 0; | ||
#X connect 10 0 8 0; | ||
#X connect 11 0 8 0; | ||
#X connect 12 0 8 0; | ||
#X connect 13 0 24 1; | ||
#X connect 14 0 13 0; | ||
#X connect 15 0 13 0; | ||
#X connect 16 0 13 0; | ||
#X connect 17 0 13 0; | ||
#X connect 18 0 23 0; | ||
#X connect 18 0 24 0; | ||
#X connect 20 0 23 0; | ||
#X connect 20 0 24 0; | ||
#X connect 22 0 5 0; | ||
#X connect 23 0 6 0; | ||
#X connect 24 0 7 0; | ||
#X connect 25 0 27 0; | ||
#X connect 26 0 25 0; | ||
#X connect 29 0 35 0; | ||
#X connect 30 0 33 0; | ||
#X connect 31 0 32 0; | ||
#X connect 32 0 3 1; | ||
#X connect 33 0 3 1; | ||
#X connect 34 0 3 0; | ||
#X connect 35 0 34 0; |
90 changes: 90 additions & 0 deletions
90
Examples/Part.04-Control/14-Triggers-LFO-LFNoise/9.Seed.pd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
#N canvas 578 23 536 728 12; | ||
#X declare -path else; | ||
#X obj 262 486 random 100; | ||
#X obj 262 442 bng 16 250 50 0 empty empty empty 17 7 0 10 -228856 | ||
-1 -1; | ||
#X obj 366 486 random 100; | ||
#X msg 366 436 seed 123; | ||
#X obj 262 517 display; | ||
#X obj 366 518 display; | ||
#X obj 134 483 noise~; | ||
#X obj 134 518 print~; | ||
#X obj 105 485 bng 15 250 50 0 empty empty empty 17 7 0 10 -228856 | ||
-1 -1; | ||
#X msg 134 450 seed 3e+06; | ||
#X obj 225 339 display~; | ||
#X obj 374 336 display~; | ||
#X msg 374 198 507; | ||
#X obj 62 256 display~; | ||
#X obj 225 205 nbx 5 14 -1e+37 1e+37 0 0 empty empty empty 0 -8 0 10 | ||
-228856 -1 -1 0 256; | ||
#X obj 62 206 pinknoise~ 1039; | ||
#X obj 62 342 display~; | ||
#X obj 62 292 pinknoise~ 1039; | ||
#X text 400 197 <= set seed; | ||
#X obj 225 295 downsample~ 1; | ||
#X obj 374 295 downsample~ 1; | ||
#X obj 62 317 downsample~ 1; | ||
#X obj 62 231 downsample~ 1; | ||
#X obj 225 261 brown~; | ||
#X obj 374 256 brown~; | ||
#X text 64 54 Random generators usually have a "seed" parameter \, | ||
used to generate an initial random value. If two different instances | ||
of the same object have the same seed \, they can be synced together | ||
to generate the same sequence. As an example \, we set the seed of | ||
[pinknoise~] and [brown~] \, which go through [downsample~] and become | ||
low frequency noise generators. We could also use [gray~] \, from ELSE | ||
\, and [noise~] to downsample and use as low frequency noise generators. | ||
; | ||
#X text 78 564 And so do the random generators from ELSE.; | ||
#X obj 83 609 bng 16 250 50 0 empty empty empty 17 7 0 10 -228856 -1 | ||
-1; | ||
#X obj 83 672 display; | ||
#X obj 83 641 rand.i 20 50; | ||
#X obj 180 640 rand.i~ 20 50; | ||
#X obj 180 674 display~; | ||
#X obj 298 608 bng 16 250 50 0 empty empty empty 17 7 0 10 -228856 | ||
-1 -1; | ||
#X obj 298 671 display; | ||
#X obj 395 673 display~; | ||
#X obj 298 640 rand.f 20 50; | ||
#X obj 395 639 rand.f~ 20 50; | ||
#X msg 180 602 seed 500; | ||
#X msg 395 601 seed 500; | ||
#X obj 343 19 declare -path else; | ||
#X text 55 391 The native objects [noise~] and [random] also take a | ||
seed value via a seed message:; | ||
#X connect 0 0 4 0; | ||
#X connect 1 0 0 0; | ||
#X connect 1 0 2 0; | ||
#X connect 2 0 5 0; | ||
#X connect 3 0 0 0; | ||
#X connect 3 0 2 0; | ||
#X connect 6 0 7 0; | ||
#X connect 8 0 7 0; | ||
#X connect 9 0 6 0; | ||
#X connect 9 0 8 0; | ||
#X connect 12 0 23 0; | ||
#X connect 12 0 24 0; | ||
#X connect 14 0 23 0; | ||
#X connect 14 0 24 0; | ||
#X connect 15 0 22 0; | ||
#X connect 17 0 21 0; | ||
#X connect 19 0 10 0; | ||
#X connect 20 0 11 0; | ||
#X connect 21 0 16 0; | ||
#X connect 22 0 13 0; | ||
#X connect 23 0 19 0; | ||
#X connect 24 0 20 0; | ||
#X connect 27 0 29 0; | ||
#X connect 27 0 30 0; | ||
#X connect 29 0 28 0; | ||
#X connect 30 0 31 0; | ||
#X connect 32 0 35 0; | ||
#X connect 32 0 36 0; | ||
#X connect 35 0 33 0; | ||
#X connect 36 0 34 0; | ||
#X connect 37 0 29 0; | ||
#X connect 37 0 30 0; | ||
#X connect 38 0 35 0; | ||
#X connect 38 0 36 0; |