waveform_editor.tendencies.periodic.sine_wave.SineWaveTendency¶
- class waveform_editor.tendencies.periodic.sine_wave.SineWaveTendency(**kwargs)¶
Bases:
PeriodicBaseTendencyA tendency representing a sine wave.
- __init__(**kwargs)¶
Methods
__init__(**kwargs)get_derivative(time)Get the values of the derivatives at the provided time array.
get_value([time])Get the tendency values at the provided time array.
set_next_tendency(next_tendency)Sets the next tendency as a param.
set_previous_tendency(prev_tendency)Sets the previous tendency as a param.
Attributes
allow_zero_durationannotationsdurationendend_derivativeend_valueis_first_repeatedline_numbernamenext_tendencyparamprev_tendencystartstart_derivativestart_valuestart_value_settimes_changeduser_amplitudeuser_baseuser_durationuser_enduser_frequencyuser_maxuser_minuser_perioduser_phaseuser_startvalues_changed- get_derivative(time: ndarray) ndarray¶
Get the values of the derivatives at the provided time array.
-
get_value(time: ndarray | None =
None) tuple[numpy.ndarray, numpy.ndarray]¶ Get the tendency values at the provided time array. If no time array is provided, a linearly spaced time array will be generated from the start to the end of the tendency.
- set_next_tendency(next_tendency)¶
Sets the next tendency as a param.
- Parameters:
- next_tendency¶
The tendency follows the current tendency.
- set_previous_tendency(prev_tendency)¶
Sets the previous tendency as a param.
- Parameters:
- prev_tendency¶
The tendency precedes the current tendency.