chooseInWith
  1. pat
  2. xs

As with {chooseWith}, but the structure comes from the chosen values, rather than the pattern you're using to choose with.

// Because the structure comes from the chosen values (the notes, here)
// The choosing pattern will only advance once per cycle (not 3 times per cycle)
note(chooseInWith("<0 0.5 1>*3", ["c3", "b3", "d3"]))
// Here, the chosen values have a structure such that the choosing pattern will advance 3 times per cycle
note(chooseInWith("<0 0.5 1>*3", ["c3*3", "b3*3", "d3*3"]))
parametertype
pat
xs
  • any
returns