Jump to content

gen-brownian-motion inside lower and upper limit


Recommended Posts

21 hours ago, opmo said:

do you mean:

(vector-round 0.0 6.0 (gen-brownian-motion 128))

 

Is this calculation really reflecting the brownian motion at the limits before a new step is calculated or it is just mapping the result into a specified range?

Link to comment
Share on other sites

6 hours ago, erka said:

How would a tendency mask be different to this?

(progn
 (setf bw (gen-brownian-motion 128 :seed 425))
 (setf env1 '(-5.1 -2.3 1.5 -0.8 4.6 10.6))
 (setf env2 '(1.0 1.2 -1.1 2.1 -0.3 -2.5))
 (list-plot (vector-to-envelope2 env1 env2 bw))
 )

 

For me, I think that's perfect !

 

I know many of the OM functions but totally forgot about that one.

 

Thank you for the trick !

 

Best

 

S.

Link to comment
Share on other sites

I had another look at it.

Yes , it is a trick . But not what born wanted:

"brownian motion to be reflected within a lower and an upper (maybe even changing) limit"

Vector-round and vector-to-envelope2 almost ignore :amp and :output of gen-brownian-motion.

They just squeeze and move the result.

I understand that born wanted that when a walk goes upward to a limit it returns at the limit but keeps the :amp and :output.

So you have a :amp 4 and you reach 5.0 you don't move above 5.0 but return.

vector-to-envelope2 doesn't do that. But squeezes the :amps after the walk. So I think there is a difference to a tendency mask .

 

@born: Are the solutions offered good enough or not really addressing what you wanted.

 

Link to comment
Share on other sites

Join the conversation

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

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

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

×
×
  • Create New...

Important Information

Terms of Use Privacy Policy