# Function: gen-walk

## Recommended Posts

Hi,

I was looking at the documentation of "gen-walk" function and have a doubt. It is my understanding that the probability of "forward" and probability of "backward" can each range from 0 to 1, but the sum cannot be greater than 1. However, the sum could be less than 1.

So, I think it is not correct to have forward probability as 1 and backward probability as 0.7. This would make the total exceed 1. However, it is OK to have forward probability as 0.3 and backward probability as 0.4. In this case the stationary probability would be 1 - 0.3 - 0.4 = 0.3

Am I correct in my understanding? If this is correct, then there is a mistake in the documentation of the function. There is an example with forward probability as 0.9 and backward probability as 0.3.

Kindly clarify.

Regards,

Rangarajan

##### Share on other sites

Hi,

I have written a new article outlining the use of "gen-walk" function to create music in Opusmodus. You can check it out here.

Hope you find it useful.

Regards,

Rangarajan

##### Share on other sites

In order to prevent use errors the function internally will adjust the probability proportionally.

##### Share on other sites

Is that right? OK. For instance, if my forward prob is 0.9 and backward prob is 0.8, what will be the actual probabilities used internally? Also, what will be the "stationary" prob in that case?

Regards,

Rangarajan

## Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

×   Pasted as rich text.   Paste as plain text instead

Only 75 emoji are allowed.

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×

• Lessons