Reference

Here, you can see the documentation for each function provided by AuditorySignalUtils.jl.

Synthesis

Synthesize stimuli. Right now just ramps and pure tones.

AuditorySignalUtils.pure_toneFunction
pure_tone(freq, phase, dur, fs)

Synthesizes a pure tone with specified frequency, phase offset (in radians), duration, and sampling rate

source
AuditorySignalUtils.cosine_rampFunction
cosine_ramp(signal, dur_ramp, fs)

Applies a raised-cosine ramp to the input signal, where dur_ramp is the duration of each samp segment in seconds

source

Digital signal processing tools

Various functions to handle things like calculating rms, setting levels, etc.

AuditorySignalUtils.amplifyFunction
amplify(signal, dB)

Amplifies a signal (in terms of power) by an amount in dB (or attenuates the signal if dB is negative)

source

A few functions include in-place versions to optimize performance. These versions are marked with a trailing exclamation mark (!) per standard Julia style.

AuditorySignalUtils.amplify!Function
amplify!(signal, dB)

Amplifies a signal (in terms of power) by an amount in dB (or attenuates the signal if dB is negative).

Note, this version of the function operates in-place (i.e., no extra memory is allocated and the input is modified in-place)

source

Other utilities

Various functions I frequently need and don't want to redefine in every file.