pySoundToolbox.py
def genSine(frequency=1.0, amplitude=1.0, phaseShift=0.0):
    """
    Generates complex signal.

    @param frequency frequency of the wave in Hz
    @param amplitude amplitude of the sine
    @param phaseShift phase shift of the wave
    @return A function with a parameter t. t is the time which needs to be a float
        or an numpy array of floats. The function returns a float, which is the value of the wave
        at time t or a numpy array with the value of the wave for all given values in t.
    """

    # -j is convetion to keep the vector in the complex plane moving clockwise, when a positive frequency is given
    return lambda t: amplitude * np.exp(-1j * 2 * np.pi * frequency * t + phaseShift)

    Generates complex signal.

    @param frequency frequency of the wave in Hz
    @param amplitude amplitude of the sine
    @param phaseShift phase shift of the wave
    @return A function with a parameter t. t is the time which needs to be a float
        or an numpy array of floats. The function returns a float, which is the value of the wave
        at time t or a numpy array with the value of the wave for all given values in t.
    
Generates complex signal.
@param frequency frequency of the wave in Hz
@param amplitude amplitude of the sine
@param phaseShift phase shift of the wave
@return A function with a parameter t. t is the time which needs to be a float
or an numpy array of floats. The function returns a float, which is the value of the wave
at time t or a numpy array with the value of the wave for all given values in t.
Generates complex signal . @param frequency frequency of the wave in Hz @param amplitude amplitude of the sine @param phaseShift phase shift of the wave @return A function with a parameter t . t is the time which needs to be a float or an numpy array of floats . The function returns a float which is the value of the wave at time t or a numpy array with the value of the wave for all given values in t .
def genSine(frequency=1.0, amplitude=1.0, phaseShift=0.0):
    return lambda t: amplitude * np.exp(-1j * 2 * np.pi * frequency * t + phaseShift)
def genSine ( frequency = 1.0 , amplitude = 1.0 , phaseShift = 0.0 ) : return lambda t : amplitude * np . exp ( - 1j * 2 * np . pi * frequency * t + phaseShift )
Generates complex signal.
Generates complex signal .
"""
    Generates complex signal.

    @param frequency frequency of the wave in Hz
    @param amplitude amplitude of the sine
    @param phaseShift phase shift of the wave
    @return A function with a parameter t. t is the time which needs to be a float
        or an numpy array of floats. The function returns a float, which is the value of the wave
        at time t or a numpy array with the value of the wave for all given values in t.
    """ # -j is convetion to keep the vector in the complex plane moving clockwise, when a positive frequency is given
frequency
amplitude
phaseShift