Hi, its been a while since ive been here.
Im trying to send random floats to an array on the y axis between -1 and 1, my idea for this is to use waveshaping and i want the waveform to be changing constantly while i change other parameters.
Ive used [randomF] but it only goes from 0 to 1... is there a way to make it count between -1 and 1? is there another object that does what i want? id apreciatte your help very much.
-
Send random floats between -1 and 1???
-
oh nevermind i found a way...
-
can you post your patch?
so that others who find this topic looking for an answer will be happy too
..o(blog: http://az.zankapfel.org )( github pd: https://github.com/noreabu/pd )o..
-
Hi az, check:
[bang(
|
[random 200]
|
[/ 100]
|
[- 1]
|
[outlet]So you 've got initially some random values between [0, 200] .Dividing with 100 these values are forced to be between [0, 2] and subracting 1 , you are in [-1, 1]
-
you can obviously be more accurate in decimal values choosing [random 2000] and [/ 1000]
Cheers!
-
you could also samphold~ or unsig~ or snapshot~ a noise~ which is random and goes from -1 to 1, those might be slightly more cpu heavy though.
-
thanks noizehack! your solution works great, i just uploaded the patch i was working on, nothing fancy.
i was thinking of using this patch as an lfo to modulate other stuff in a bigger instrument im trying to build.http://www.pdpatchrepo.info/hurleur/waveshaping_fm_synthesis.pd