First time here? Check out the FAQ!
x

HotValue as Boolean

0 votes
239 views
Good afternoon everybody,

I hope you are all doing fine in these crazy times.

I am trying to controlt the REVERSE field of a Sample form a Script and I would like to control it with an HotValue.

but if I put a green variable in the REVERSE field, it needs a boolean in the script.

so how can I convert an HotValue into a Boolean? is that possible or is there any turnaround?

peace and love.

d
asked Apr 27, 2020 in Capytalk & Smalltalk by domenico-cipriani (Master) (3,110 points)

1 Answer

0 votes
To reverse a Sample using an EventValue, change the sign of the expression in the Frequency field to be negative. For example, you could write something like this:

Default hz * (!Reverse of: #(1 -1))

or this

!KeyPitch nn hz * (!Reverse true: -1 false: 1)
answered Apr 28, 2020 by ssc (Savant) (127,060 points)
...