Modulating with noise

crispypancakes's icon

I'm attempting to get a noise~ object to randomly modulate a carrier frequ.

however when i look at the number~ object connected to my noise~ the values are fractional, how can i get these values scaled up to between -1 and 1, the scale~ object seems to not deal with this and as the numbers are erratic coming from my noise~ object i don't know their definate status to put them in...

any ideas?

Wetterberg's icon

Here's the output of the following patch:

noise~
snapshot~ 200
print

print: -0.414183
print: -0.754546
print: -0.352599
print: 0.564973
print: -0.001830
print: -0.053008
print: 0.411439
print: -0.608489
print: 0.887208
print: 0.898530
print: -0.574523
print: 0.468049
print: 0.026246
print: 0.100068
print: 0.689515
print: -0.205413
print: -0.584716
print: -0.448394
print: 0.203553
print: -0.628875
print: -0.945678
print: -0.746855
print: -0.032408
print: -0.802336
print: 0.943361
print: -0.795317
print: -0.018370
print: -0.725798
print: -0.917601
print: -0.593779
print: 0.245668
print: -0.399260
print: -0.528563
print: -0.142241
print: 0.759706
print: 0.177278
print: 0.110475
print: 0.559297
print: -0.476256
print: -0.996184
print: 0.999513
print: -0.489165
print: 0.537782
print: 0.080354
print: 0.138551
print: 0.712373
print: -0.198180
print: -0.593108
print: -0.472411
print: 0.163911
print: -0.684142
print: 0.983430
print: -0.833373
print: -0.134551
print: -0.920104
print: 0.809968
print: -0.944335
print: -0.183013
print: -0.906066
print: 0.886506

These numbers are what you'd expect; noise between -1 and 1.
Note that the snapshot~here is behaving like a sample and hold, really.

If you connect noise~ directly as a modulation source you will get... not "random", but a noise on everything.

if you want "random" modulation, you'll want noise~ -> sah~ or similar, and then sample the noise at some interval - hell, that interval could be randomized as well.

Floating Point's icon
Max Patch
Copy patch and select New From Clipboard in Max.

this might be along the way you want to go-- you can also use pink~ instead of noise~ and you might want to low-pass filter the modulating noise instead of using sah~ there's millions of variations; just remember to somehow scale your modulation source to a useful range (using mult and add in this patch, but use scale~ if you've got max 6)

crispypancakes's icon

this is outstanding! i'm loving the help on this forum, thank you kindly sir!