Continuous function inside Choose

Hello people,
I have a panning choose like this

# pan (choose[0, 0.5, 0.5, 0.5, 0.5, 1])

And I want to have a pan sweep from left to right on random moments.
I reckon that choose accepts a number of floats so a "pattern" (if a sweep is that) doesn't work inside choose.

How would you go about it?

could you do something like?

d1 $ sometimes (const $ (s "cp*16" # pan (range 0 1 $ slow 16 sine))) $ s "cp*16" # pan (choose [0, 0.5, 0.5, 0.5, 0.5, 1])
2 Likes

Could you describe what you want to happen a bit more @terumi?

You could have a look at perlin e.g. pan (slow 4 perlin)