sine_controllers

this module provides objects that produce controller sine-waves

for given frequencies. they use elapsed time to calculate the value for any given moment in which the get_value-methods are called

class roqba.utilities.sine_controllers.MultiSine(freqs, equal_power=True)[source]

a controller object for multiple overlaid sine-waves

assemble_funnel()[source]

assembles a list of get_value function objects

get_value()[source]

returns the combined (added) value of the

multiple sine controllers

get_value_as_factor(variation)[source]

returns scaled value oscillating around one

set_freqs(freqs)[source]

set new frequencies for the controller

(note that the number of frequencies must be equal to the original number if frequencies)

class roqba.utilities.sine_controllers.Sine(freq, range=[-1, 1])[source]

a single frequency sine-wave controller object

get_value()[source]

returns the controller value at the moment it is called

set_freq(freq)[source]