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.


Edit Documentation

Full Name
  • Ops.Deprecated.WebAudio.Lib.Tonejs.Control.CtrlMarkov
Visibility
  • Core Op - Official cables op
License
  • MIT
AuthorJavascript Libraries


 

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 (string Number)

The next value in the chain after calling Next


Patches using CtrlMarkov

  • Examples
  • Public
  • My Patches