SigTo(value, time=0.03, init=0.00, mul=1, add=0)
Convert numeric value to PyoObject signal with portamento.
When `value` attribute is changed, a ramp is applied from the current value to the new value.
Parent class : PyoObject
Parameters:
value : float Numerical value to convert. time : float, optional Ramp time, in seconds, to reach the new value. Defaults to 0.025. init : float, optional Initial value of the internal memory. Defaults to 0.
Methods:
setValue(x) : Changes the value of the signal stream. setTime(x) : Changes the ramp time.
Attributes:
value : float. Numerical value to convert. time : float. Ramp time.
Notes:
The out() method is bypassed. SigTo's signal can not be sent to audio outs.
Examples:
>>> s = Server().boot() >>> fr = SigTo(value=400, time=.5, init=400) >>> a = Sine(freq=fr, mul=.5).out() >>> s.start() >>> fr.value = 800
Methods details:
SigTo.setValue(x): Changes the value of the signal stream. Parameters: x : float Numerical value to convert. SigTo.setTime(x): Changes the ramp time of the object. Parameters: x : float New ramp time.