First time here? Check out the FAQ!
x

Matrix4Switched sound: how to randomly switch the buttons on/off?

0 votes
233 views

Hello everyone

I was looking for a way to automate the button's on/off switch in a Matrix4Switched sound. In the VCS it can be achieved just by pushing the "r" key, I know, but at this stage I would like to automate that kind of selecting/triggering process (later, I would experiment other ways to address it). It could be also extremely useful that the transitions - between triggering - could be as smooth as possible.

Any idea?

Thank You.

asked Mar 25, 2017 in Capytalk & Smalltalk by vincenzo-gualtieri (280 points)

1 Answer

0 votes
 
Best answer
You could use {(!Dur s random seeded asLogicValue) smooth: !SmoothDur s} The curly braces are needed because the parameter fields are arrays. You need four of these for each InsToOut field. Or you collect them at once for each field: {1 to: 4 collect: [ :i | (!Dur s random seeded asLogicValue) smooth: !SmoothDur s]} Every Dur s a new random value is generated. If it's positive it will be 1, otherwise 0. The Transition time can be adjusted using SmoothDur. If you just want to avoid clicks you could also use smoothed. Hope that helps! Gustav
answered Mar 25, 2017 by kymaguy (Virtuoso) (10,580 points)
selected Mar 25, 2017 by vincenzo-gualtieri
sorry about the formatting, used my phone and wasn't able to do it better...
Many thanks, Gustav!!
...