First time here? Check out the FAQ!
x

repeatingTriangle values

0 votes
51 views
Hello and happy new year!

why if put this expression on a SoundToGlobalController:

(1 repeatingTriangle: 5 s) eq: 1

it never becomes 1?
asked Jan 5 in Capytalk & Smalltalk by domenico-cipriani (Adept) (2,570 points)

1 Answer

0 votes

It becomes 1, but it doesn't stay at that value for very long. Do you want to use it as a trigger/gate? Maybe test for an interval of values rather than exactly equal to 1, for example

(1 repeatingTriangle: 5 s) gt: 0.99

or

(1 repeatingTriangle: 5 s) gt: !OnDur

which would let you adjust the fraction of time each cycle is on.

 


 

answered Jan 5 by ssc (Savant) (107,900 points)
...