letalker.utils#
Utility Functions
The letalker.utils
module defines utility functions to complement the
synthesis functionality of pyLeTalker.
compute non-uniform sampling indices for the strobe effect |
- class letalker.utils.strobe_timing(fr, fo, duration=None, *, fstrobe=1.2, n0=0)#
compute non-uniform sampling indices for the strobe effect
Parameters#
- fr
framerate of the video in frames/second
- fo
Either a function generator or a sequence of the fundamental frequency at the simulation sampling rate or a float if fo is fixed. Fundamental frequency is specified in Hz. TODO: If a periodicity is lost at any point, the fundamental frequency may be <=0 or
nan
.- duration, optional
duration of the video in seconds. Required if
fo
is not a sequence, by default None- fstrobe, optional
strobe rate, the number of cycles to show per second, by default 2
- n0, optional
starting time for
fun
, by default 0
Returns#
time indices of the output samples of
fun
Functions
|
compute non-uniform sampling indices for the strobe effect |