# [PD] help with oscillator modulation

oliver oliver at klingt.org
Mon Oct 1 23:15:10 CEST 2018

```Carl S wrote:
> A couple problems with the patch I posted. Any of the bob~ objects need
> the message [saturation 1( sent to them to function the way I intended.
>
> Also, turns out I was totally wrong about the through zero concept- you
> need to clip the frequency input of the modulated osc at 0Hz. Attached
> is a patch that demonstrates this. one of the examples shows use of bob~
> to restrict values

hi, carl !

first, thank you very very much for your kind help. all of your
suggestions are interesting to study and all have a distinct modulation
"flavour". i have to confess that i don't fully understand the [bob~]
approach, but the rectifying example was very clear.

after a little tweaking i came to a solution that sounded the closest to
the effect i was looking for. the difference in my approach is to clip
the frequency input of the modulated osc not at 0 Hz but at the carrier
frequency.

example attached

thanks again for your examples !

best

oliver
-------------- next part --------------
#N canvas 917 114 473 530 10;
#X obj 170 245 osc~;
#X obj 71 360 +~;
#X obj 71 413 osc~;
#X obj 105 342 *~, f 4;
#X obj 72 275 sig~;
#X obj 170 274 *~;
#X obj 72 215 mtof;
#X obj 170 219 mtof;
#X obj 170 190 r modfreq;
#X obj 72 191 r carfreq;
#X obj 69 81 hsl 128 15 0 127 0 0 empty empty empty -2 -8 0 10 -262144
-1 -1 3600 1;
#X obj 69 100 hsl 128 15 0 127 0 0 empty empty empty -2 -8 0 10 -262144
-1 -1 3600 1;
#X obj 66 125 s modfreq;
#X obj 66 145 s carfreq;
#X obj 246 80 hsl 128 15 0 127 0 0 empty empty empty -2 -8 0 10 -262144
-1 -1 0 1;
#X obj 243 123 t f f;
#X obj 243 146 *;
#X obj 70 463 hip~ 5;
#X obj 61 489 dac~;
#X obj 105 304 *~ 4;
#X obj 71 388 clip~ 0 44100;
#X floatatom 126 276 5 0 0 0 - - -, f 5;
#X obj 243 100 / 127;
#X floatatom 274 213 5 0 0 0 - - -, f 5;
#X obj 243 236 *~;
#X floatatom 66 60 5 0 0 0 - - -, f 5;
#X obj 209 274 lop~ 10;
#X obj 274 235 sig~ 4;
#X msg 66 38 36;
#X obj 71 439 *~ 0.1, f 10;
#X msg 124 412 0;
#X msg 151 412 0.1;
#X text 246 58 modulation intensity;
#X msg 387 474 \; pd dsp 1;
#X connect 0 0 5 0;
#X connect 1 0 21 0;
#X connect 2 0 30 0;
#X connect 3 0 1 1;
#X connect 4 0 1 0;
#X connect 4 0 20 0;
#X connect 5 0 3 0;
#X connect 6 0 4 0;
#X connect 6 0 21 1;
#X connect 7 0 0 0;
#X connect 8 0 7 0;
#X connect 9 0 6 0;
#X connect 10 0 13 0;
#X connect 11 0 14 0;
#X connect 12 0 29 0;
#X connect 15 0 23 0;
#X connect 16 0 17 0;
#X connect 16 1 17 1;
#X connect 17 0 25 0;
#X connect 18 0 19 0;
#X connect 18 0 19 1;
#X connect 20 0 3 1;
#X connect 21 0 2 0;
#X connect 22 0 20 1;
#X connect 23 0 16 0;
#X connect 24 0 28 0;
#X connect 25 0 27 0;
#X connect 26 0 10 0;
#X connect 26 0 11 0;
#X connect 27 0 5 1;
#X connect 28 0 25 1;
#X connect 29 0 26 0;
#X connect 30 0 18 0;
#X connect 31 0 30 1;
#X connect 32 0 30 1;
```