powered by
Internal soundgen function
silenceSegments(x, samplingRate, na_seg, attackLen = 50)
sound as a numeric vector
sampling rate, Hz
dataframe containing columns "start_prop" and "end_prop"
attack length, ms
Fills specified segments with silence (0) and fades in-out the ends of the silenced segment.
s = runif(4000) * 2 - 1 s1 = soundgen:::silenceSegments(s, 16000, na_seg = data.frame(prop_start = c(.1, .5), prop_end = c(.2, .85)), attackLen = c(5, 15)) osc(s1)
Run the code above in your browser using DataLab