Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 56 lines (55 sloc) 2.679 kb
cd3a91c5 »
2011-10-09 occupy github
1 #N canvas 343 22 1097 685 10;
2 #X obj 25 12 cnv 15 400 35 empty empty bl-init.mmb 20 12 0 14 -4160
3 -203904 0;
4 #X obj 25 48 cnv 15 400 70 empty empty empty 20 12 0 14 -203904 -66577
5 0;
6 #X msg 492 143 48000;
7 #X obj 492 205 bl-init.mmb \$0;
8 #X text 45 48 This object contains the wavetables used by the [bl-*.mmb~]
9 family of bandlimited oscillators. YOU ARE NOT REQUIRED TO CREATE IT.
10 ;
11 #X text 464 52 arg1 <optional>: An ID that other [bl-*.mmb~] objects
12 with the same argument use to know which [bl-init.mmb] to read from.
13 Can be anything but 0;
14 #X obj 493 408 bl-saw.mmb~ \$0;
15 #X floatatom 493 345 5 0 0 0 - - -;
16 #X obj 493 367 mtof;
17 #N canvas 0 22 450 300 (subpatch) 0;
18 #X array \$0-spectrum 512 float 0;
19 #X coords 0 1 512 0 400 100 1;
20 #X restore 656 327 graph;
21 #X obj 493 451 spectrum.mmb~ \$0-spectrum;
22 #X text 534 138 <-- click this to regenerate the tables for a max sample
23 rate of 48000 Hz. THIS WILL TAKE A FEW MINUTES \, SO BE PATIENT. You
24 will see a message in the Pd window when it is done.;
25 #X text 671 438 Change the sample rate and restart dsp to see that
26 there is never aliasing below Nyquist of the sample rate \, but harmonics
27 will not extend past Nyquist of the sample rate given to [bl-init.mmb]
28 ;
29 #X msg 493 314 72;
30 #X obj 493 282 loadbang;
31 #X text 45 165 [bl-init.mmb] is an abstraction that contains precalculated
32 wavetables that are used by the [bl-*.mmb~] family of bandlimited oscillators.
33 It does not have to be explicity created \, however \, because all
34 the [bl-*.mmb~] oscillators check to see if there is an instance of
35 it on creation. If there isn't one \, then the oscillator will internally
36 dynamically patch one in. However \, if you delete the oscillator that
37 patched it in \, other [bl-*.mmb~] oscillators will stop producing
38 sound until you restart DSP. So \, if you're doing any live coding
39 or dynamic patching with these oscillators \, it might be a good idea
40 to explicitly create [bl-init.mmb] first (with no argument).;
41 #X text 44 364 The only time it is absolutely necessary to create this
42 object yourself is if you are working in a sample rate above 44100
43 Hz \, and you want the highest harmonic to extend past 22050 Hz (you
44 might not want this \, even at a higher samplerate). In this case \,
45 you can send a samplerate to [bl-init.mmb] \, and it will regenerate
46 the wavetables after a few minutes. NOTE: if you are working at a lower
47 sample rate \, you don't need to do this! The oscillators will not
48 generate harmonics above the Nyquist frequency (1/2 sample rate) of
49 whatever sample rate you are working with.;
50 #X connect 2 0 3 0;
51 #X connect 6 0 10 0;
52 #X connect 7 0 8 0;
53 #X connect 8 0 6 0;
54 #X connect 13 0 7 0;
55 #X connect 14 0 13 0;
Something went wrong with that request. Please try again.