Forums > MaxMSP

### someone explain the drunk object please

Apr 01 2008 | 7:53 pm

helu

If someone explain me the common use of the drunk object , I be greatful! ( what you use it for)

This is how it is explained in the help file ;

Drunk takes two optional arguments. The first argument is a range specification, the second is a step size. Drunk does a random walk, constrained between zero and the range (here 128) and step of up to one less than the maximum step size. The maximum step size can be changed via the inlet with an int and int output is produced by inputting a bang in the inlet. The default range is 128, the default current value is 64, and the default step size is 2 (steps of 0 and 1 are allowed). A negative step size is the same as a positive one, except that steps of size 0 are never made.

Thanks

Apr 01 2008 | 8:12 pm

– range : the distance you may cover between the whisky bar and any
destination (west, east, north, south, and others)
– step : a number which can be synchronized with the number of
bottles you have (in your stomach or in your pocket), which defines
how fast you will go from one side of the street to the other one
– result : may vary a lot according to the above

Now try to imagine yourself as a MIDI note, a collection of samples,

On 1 avr. 08, at 21:53, petterdass wrote:

>
> helu
>
> If someone explain me the common use of the drunk object , I be
> greatful! ( what you use it for)
>
> This is how it is explained in the help file ;
>
> Drunk takes two optional arguments. The first argument is a range
> specification, the second is a step size. Drunk does a random walk,
> constrained between zero and the range (here 128) and step of up to
> one less than the maximum step size. The maximum step size can be
> changed via the inlet with an int and int output is produced by
> inputting a bang in the inlet. The default range is 128, the
> default current value is 64, and the default step size is 2 (steps
> of 0 and 1 are allowed). A negative step size is the same as a
> positive one, except that steps of size 0 are never made.
>
>
>
>
> Thanks
>

Apr 01 2008 | 8:54 pm

The drunk walk model is a stochastic model nominally following the path of a drunk who has just left the bar. He will take a step to the left or to the right at random (not knowing whence he has come nor to where he wishes to go). After the first step, his next step is chosen at random, either to the left or right. And so on. In the mathematical model the drunk never sobers up (whereas in real life he will be found at dawn by the police who will either take him home or put him in the clink). And interesting phenomenon of the model is that the drunk keeps on returning to his starting place.

The model is a form of Brownian notion (check that out on wikipedia for more gory details).

What to use it for? I don’t because there’s something called Litter Power that I generally use. Drunk is a kind of semi-controlled randomness, technically a species of 1/f^2 noise, and it sounds different from white randomness or pink randomness and other random models.

Litter Power has some examples that demonstrate the difference in sound of different "colored" random number sources (white, pink, brown, black). You might want to give them a listen. URL below.

Best — Peter

Viewing 3 posts - 1 through 3 (of 3 total)

Forums > MaxMSP