Random voltages probability distribution patch

Anything modular synth related that is not format specific.

Moderators: Kent, lisa, luketeaford, Joe.

Post Reply
User avatar
microfauna
Super Deluxe Wiggler
Posts: 1032
Joined: Mon Jul 11, 2011 10:58 am
Location: Edinburgh, fUcKed

Random voltages probability distribution patch

Post by microfauna » Mon Mar 31, 2014 3:35 pm

Random voltages probability distribution patch

This is a patch which creates random voltages where the probability distribution can be defined. There are two probability parameters which can be controlled manually or by cv:

Distribution about 0v.
This defines what the probability will be for a voltage as it gets further away (+ve or –ve) from 0v. It can go from equal probability to low probability, a bit like the distribution for the Buchla Stored Random Voltages but a lot steeper.

+ve/-ve probability
This defines if a voltage is more likely to +ve or –ve. It can go from equal probability to 100% +ve or –ve.

For the patch you will need (Euro examples):
Voltage controlled slope (Maths Ch1)
Linear VCA (Doepfer A-132-3)
Sample and hold (Doepfer A-148)
VCO with PWM (Analogue Systems RS-95e)

VCS looping at low audio rate
VCS out>attenuator (VCA for cv control)>VCS both In (to adjust change from linear to exponential)
VCS out>VCA cv in
VCO pulse out>VCA in
VCA out>to S&H
A slight refinement if the S&H is being triggered by a regular pulse is to feed a little of the S&H output to VCS rise, both or fall ins and VCO 1v/oct or FM in.

Adusting of the VCS slope creates the distribution about 0v. Linear is equal probability.
Adjusting PWM creates the +ve/-ve probability. 50/50 duty cycle is 50/50. +ve/-ve probability



Demo random voltage to a VCO, going from equal probability,100% -ve, 100% +ve, equal probability, lower probability for voltages further from 0v, equal probability.

http://soundcloud.com/microfauna-uk/pro ... stribution

http://soundcloud.com/microfauna-uk/pro ... stribution
Last edited by microfauna on Mon Apr 07, 2014 4:16 am, edited 3 times in total.

User avatar
Opus110
Ultra Wiggler
Posts: 841
Joined: Sun Feb 03, 2013 10:11 am
Location: Montreal

Post by Opus110 » Mon Mar 31, 2014 4:12 pm

Man I can't wait to get home tonight! Been working on different applications of random, and this fits wonderfully. Thanks!
“The purpose of music is to quiet and sober the mind, thus making it susceptible to divine influences.” Gita Sarabhai to John Cage

User avatar
microfauna
Super Deluxe Wiggler
Posts: 1032
Joined: Mon Jul 11, 2011 10:58 am
Location: Edinburgh, fUcKed

Post by microfauna » Mon Mar 31, 2014 4:51 pm

Addenda:

1) VCS out>attenuverter>VCS both in
If you have the attenuverter -ve you can have low probability around 0v and high for voltages further away from 0v. Check that the VCS is still looping at audio rate.

2)If you're using Maths set the slope shape to LIN

User avatar
Navs
Super Deluxe Wiggler
Posts: 4282
Joined: Fri Sep 18, 2009 3:49 am
Location: Berlin, Germany

Post by Navs » Sat Apr 05, 2014 5:26 am

Respect for pushing the patches, Microfauna :tu:

I had to read the description a couple of times to understand the role the shape of the envelope plays. Have I got it right - the contour controls how much sample fodder escapes from the VCA?

If you have another S&H or ASR you could feed some of the (delayed) result back the slope, VCO or VCA.

User avatar
square_wave
Common Wiggler
Posts: 184
Joined: Tue Jan 08, 2013 1:13 am
Location: San Francisco

Post by square_wave » Sat Apr 05, 2014 11:21 am

Very interesting patch. Thank you for posting!

:beer:
Enclosures are molds, distinct castings, but controls are a modulation... -Gilles Deleuze

User avatar
microfauna
Super Deluxe Wiggler
Posts: 1032
Joined: Mon Jul 11, 2011 10:58 am
Location: Edinburgh, fUcKed

Post by microfauna » Sat Apr 05, 2014 11:38 am

Navs wrote:I had to read the description a couple of times to understand the role the shape of the envelope plays. Have I got it right - the contour controls how much sample fodder escapes from the VCA?
The looping (audio rate) voltage controlled slope is controlling the voltage of what is coming out of the VCA, the input being the pulse wave (ie a fixed level either +ve or -ve) which controls the +ve/-ve weighting. The shape of the voltage controlled slope is creating the probability distribution. If you have a 0-5v linear slope (pure saw or tri) the probability of any given voltage will be equal. If it is an exponential slope the slope spends more time around 0v than at 5v, ie the probability of any given voltage decreases as you get nearer to 5v.

The next instalment of this patch is on the way with control for centre, max, min for the probability distribution.

User avatar
microfauna
Super Deluxe Wiggler
Posts: 1032
Joined: Mon Jul 11, 2011 10:58 am
Location: Edinburgh, fUcKed

Post by microfauna » Mon Apr 07, 2014 4:10 am

Here are basic module idea, extended patch and distribution examples.

Module
Spread is master control for distribution which brings Min and Max towards the Centre value as it is turned ccw.
Weighting controls the probability that the random voltage will be less than (<C) or greater than (>C) the Centre value.
If Min is set higher or Max is set lower than Centre, the Centre value will be outputted for <C and >C respectively.

Image

Patch
Voltage control for the parameters can be added with extra VCAs.

Image

Distribution examples
X axis voltage, Y axis probability

Image

User avatar
Navs
Super Deluxe Wiggler
Posts: 4282
Joined: Fri Sep 18, 2009 3:49 am
Location: Berlin, Germany

Post by Navs » Mon Apr 07, 2014 1:23 pm

In the module and distribution examples, is your logarithmic representation the right way round? Shouldn't it be bowed?

User avatar
microfauna
Super Deluxe Wiggler
Posts: 1032
Joined: Mon Jul 11, 2011 10:58 am
Location: Edinburgh, fUcKed

Post by microfauna » Mon Apr 07, 2014 1:45 pm

Navs wrote:In the module and distribution examples, is your logarithmic representation the right way round? Shouldn't it be bowed?
No, I think it is correct. The logarithmic curve will spend more time around +5 or -5 volts than around 0, therefore the probability of any given voltage decreases as you get nearer to 0. ie this is the opposite of the probability distribution for the exponential curve.

If you picture what unipolar 0-5v logarithmic curve is it is easier to picture the above idea. The +ve and -ve element is not created by the VCS so this might be a distraction.

Post Reply

Return to “Modular Synth General Discussion”