Skip to content

Commit

Permalink
oscbank
Browse files Browse the repository at this point in the history
  • Loading branch information
porres committed Aug 6, 2023
1 parent 567ed6f commit 6cb2794
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 16 deletions.
47 changes: 34 additions & 13 deletions Documentation/Help-files/oscbank2~-help.pd
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#N canvas 482 23 565 522 10;
#N canvas 542 49 562 554 10;
#X obj 5 266 cnv 3 550 3 empty empty inlets 8 12 0 13 #dcdcdc #000000 0;
#X obj 5 373 cnv 3 550 3 empty empty outlets 8 12 0 13 #dcdcdc #000000 0;
#X obj 83 382 cnv 17 3 17 empty empty 0 5 9 0 16 #dcdcdc #9c9c9c 0;
#X text 153 382 signal;
#X obj 5 384 cnv 3 550 3 empty empty outlets 8 12 0 13 #dcdcdc #000000 0;
#X obj 83 393 cnv 17 3 17 empty empty 0 5 9 0 16 #dcdcdc #9c9c9c 0;
#X text 153 393 signal;
#X obj 4 4 cnv 15 301 42 empty empty oscbank2~ 20 20 2 37 #e0e0e0 #000000 0;
#X obj 308 5 cnv 15 250 40 empty empty empty 12 13 0 18 #7c7c7c #e0e4dc 0;
#N canvas 0 22 450 278 (subpatch) 0;
Expand Down Expand Up @@ -35,26 +35,47 @@
#X connect 3 0 5 0;
#X connect 4 0 5 0;
#X connect 5 0 0 0;
#X restore 466 232 pd example;
#X restore 466 202 pd example;
#X text 201 276 - list of frequencies for all oscillators in the bank;
#X text 201 293 - list of amplitudes for all oscillators in the bank;
#X text 201 331 - list of ramp time for all oscillators in the bank;
#X text 202 382 - the oscillator bank output;
#X text 202 393 - the oscillator bank output;
#X text 118 312 phase <list>;
#X text 201 312 - list of phases (0-1) for all oscillators in the bank;
#X text 33 164 see also:;
#X obj 5 492 cnv 15 552 21 empty empty empty 20 12 0 14 #e0e0e0 #202020 0;
#X obj 5 405 cnv 3 550 3 empty empty flags 8 12 0 13 #dcdcdc #000000 0;
#X text 104 426 -amp <list>: sets list of amplitudes for all oscillators, f 57;
#X text 104 442 -phase <list>: sets list of phases for all oscillators, f 57;
#X text 104 457 -ramp <list>: sets ramp time for all oscillators, f 70;
#X text 104 411 -freq <list>: sets list of frequencies for all oscillators;
#X obj 5 522 cnv 15 552 21 empty empty empty 20 12 0 14 #e0e0e0 #202020 0;
#X obj 5 416 cnv 3 550 3 empty empty flags 8 12 0 13 #dcdcdc #000000 0;
#X text 104 437 -amp <list>: sets list of amplitudes for all oscillators, f 57;
#X text 104 453 -phase <list>: sets list of phases for all oscillators, f 57;
#X text 104 468 -ramp <list>: sets ramp time for all oscillators, f 70;
#X text 104 422 -freq <list>: sets list of frequencies for all oscillators;
#X obj 32 184 else/oscbank~;
#X obj 32 236 else/resonbank~;
#X text 100 348 rampall <float>;
#X text 201 348 - sets ramp time for all oscillators;
#X text 104 473 -rampall <float>: sets a ramp time for all oscillators (default all 10), f 71;
#X text 104 484 -rampall <float>: sets a ramp time for all oscillators (default all 10), f 71;
#X text 61 86 [oscbank2~] is a bank made of [sine~] objects. You can set any number of oscillators and control their parameters. If you use flags \, the number of elements in the list (such as amplitude list) sets the number of oscillators in the bank \, and you must not use regular arguments in this case., f 72;
#X obj 32 210 else/osc.mc~;
#X obj 190 152 else/oscbank2~ -freq 360 440 590 720 -amp 0.9 0.5 0.5 0.6, f 36;
#X text 136 363 mc float>;
#X text 201 363 - non zero sets to multichannel output, f 44;
#X text 105 499 -mc: sets to multichannel output, f 48;
#N canvas 744 134 581 416 multichannel 0;
#X obj 109 281 else/out~;
#X obj 109 240 else/xselect.mc~ 200 1;
#X obj 145 165 hradio 16 1 0 4 empty empty empty 0 -8 0 10 #dfdfdf #000000 #000000 0;
#X floatatom 145 188 4 0 0 0 - - - 0;
#X obj 145 210 + 1;
#X msg 109 86 mc \$1;
#X obj 109 58 tgl 18 0 empty empty empty 0 -8 0 10 #dfdfdf #000000 #000000 0 1;
#X text 174 42 The "-mc" flag or message sets to multichannel output \, where each oscillator in the bank is in a different channel., f 30;
#X obj 109 116 else/oscbank2~ -freq 360 440 590 720 -amp 0.9 0.5 0.5 0.6 -mc, f 37;
#X connect 1 0 0 0;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 4 0 1 0;
#X connect 5 0 8 0;
#X connect 6 0 5 0;
#X connect 8 0 1 0;
#X restore 436 225 pd multichannel;
#X connect 41 0 16 0;
7 changes: 4 additions & 3 deletions Documentation/Help-files/oscbank~-help.pd
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
#X restore 454 265 pd example;
#X text 239 450 - the oscillator bank output, f 44;
#X text 148 377 phase <list>;
#X text 25 244 see also:;
#X text 35 216 see also:;
#X obj 4 475 cnv 3 550 3 empty empty flags 8 12 0 13 #dcdcdc #000000 0;
#X text 148 347 ratio <list>;
#X text 238 362 - list of amplitudes for all oscillators, f 44;
Expand All @@ -58,8 +58,8 @@
#X text 73 559 -rampall <float>: sets a ramp time for all oscillators (default all 10), f 73;
#X text 130 408 rampall <float>;
#X text 238 408 - sets ramp time for all oscillators, f 44;
#X obj 26 292 else/resonbank~;
#X obj 26 268 else/oscbank2~;
#X obj 37 289 else/resonbank~;
#X obj 36 240 else/oscbank2~;
#X text 73 545 -freq <float>: sets fundamental frequency in hz (default 0), f 73;
#X text 238 332 - fundamental frequency in hz, f 44;
#X text 62 84 [oscbank~] is a bank made of [sine~] objects. You can set any number of oscillators and control their parameters. Unlike [oscbank2~] \, you have a fundamental frequency input and the frequency of each oscillator is specified as a ratio of that frequency. If you use flags \, the number of elements in the list (such as amplitude list) sets the number of oscillators in the bank \, and you must not use regular arguments in this case., f 71;
Expand All @@ -86,6 +86,7 @@
#X text 73 573 -mc: sets to multichannel output, f 48;
#X text 166 423 mc float>;
#X text 238 423 - non zero sets to multichannel output, f 44;
#X obj 37 264 else/osc.mc~;
#X connect 31 0 47 0;
#X connect 32 0 47 0;
#X connect 47 0 30 0;

0 comments on commit 6cb2794

Please sign in to comment.