sin_wave_patch

function of dascore.examples source

sin_wave_patch(
    sample_rate ,
    frequency: Sequence[float] | float ,
    time_min ,
    channel_count ,
    duration ,
    amplitude ,
)

Return a Patch composed of simple 1 second sin waves.

This is useful for debugging output to audio formats.

Parameters

Parameter Description
sample_rate The sample rate in Hz.
frequency The frequency of the sin wave.
time_min The start time in the metadata.
channel_count The number of distance channels to include.
duration Duration of signal in seconds.
amplitude The amplitude of the sin wave.