CtrlMarkov Op

CtrlMarkov

This op is deprecated!

It will not receive any updates

Represents a Markov Chain


CtrlMarkov represents a Markov Chain where each call to next will move to the next state. If the next state choice is an array, the next state is chosen randomly with even probability for all of the choices. For a weighted probability of the next choices, pass in an object with state and probability attributes. The probabilities will be normalized and then chosen. If no next options are given for the current state, the state will stay there. Markov Chains can be used for many things, e.g. generating music or visuals.


Full Name
  • Ops.Extension.Deprecated.CtrlMarkov
Visibility
  •  Extension Op - Visible to all users
License
  • MIT
AuthorgithubMaintained by TeamJavascript Libraries








No op example found on this server

INPUT PORTS


Values (Object)

An object with state values, e.g. { "beginning" : [ "end", "middle"], "middle" : "end" }

Start Value (Number: string)

Which value to start with (optional), e.g. "beginning"

Next (Trigger)

Sets the output port Next Value

OUTPUT PORTS


Next Value (stringNumber)

The next value in the chain after calling Next


Patches using CtrlMarkov

  • Examples
  • Public
  • My Patches